Browse Source

积分判断规则 天月年修改

feature/syp_points
songyunpeng 5 years ago
parent
commit
5758fa23bb
  1. 6
      esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsLogsDao.xml

6
esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsLogsDao.xml

@ -60,13 +60,13 @@
and OPERATION_TIME between date_add(now() , interval -1 hour ) and now() and OPERATION_TIME between date_add(now() , interval -1 hour ) and now()
</if> </if>
<if test="operationFlag == 2"> <if test="operationFlag == 2">
and OPERATION_TIME between date_add(now() , interval -1 day ) and now() and date_format(OPERATION_TIME,'%d') = date_format(now(),'%d')
</if> </if>
<if test="operationFlag == 3"> <if test="operationFlag == 3">
and OPERATION_TIME between date_add(now() , interval -1 month ) and now() and date_format(OPERATION_TIME,'%m') = date_format(now(),'%m')
</if> </if>
<if test="operationFlag == 4"> <if test="operationFlag == 4">
and OPERATION_TIME between date_add(now() , interval -1 year ) and now() and date_format(OPERATION_TIME,'%Y') = date_format(now(),'%Y')
</if> </if>
group by OPERATION_TYPE)a group by a.BEHAVIOR_CODE; group by OPERATION_TYPE)a group by a.BEHAVIOR_CODE;
</select> </select>

Loading…
Cancel
Save