From 686cb7a025823c7750ecdf4520f8060fc5ec05d5 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期四, 22 八月 2019 09:47:48 +0800 Subject: [PATCH] 明细扣除 --- fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskRecordMapper.xml | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskRecordMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskRecordMapper.xml index 83a42b3..93e8239 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskRecordMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskRecordMapper.xml @@ -174,12 +174,13 @@ <if test="maxTime!=null"> and #{maxTime}>ir_create_time </if> - </select> + </select> + <select id="countByTaskIdTodayNum" resultType="Integer"> SELECT IFNULL(COUNT(tr.`ir_id`),0) FROM yeshi_ec_integral_task_record tr WHERE tr.ir_uid = #{uid} AND tr.`ir_task_id`= #{tid} - AND TO_DAYS(tr.ir_create_time) = TO_DAYS(${date}) AND tr.ir_create_time <![CDATA[<=]]>${date} + AND TO_DAYS(tr.ir_create_time) = TO_DAYS('${date}') AND tr.ir_create_time <![CDATA[<=]]>'${date}' </select> -</mapper> +</mapper> \ No newline at end of file -- Gitblit v1.8.0