+时间处理

This commit is contained in:
wuyu 2023-11-30 11:19:43 +08:00
parent 68b137e0b9
commit 8b4a586d22

View File

@ -6,7 +6,7 @@
select * from (
<if test="isNowDay">
SELECT * from (SELECT * FROM pending_message_record WHERE DATE(create_at) <![CDATA[<]]> DATE(#{selectDate})
AND (state = ('HAS_BEEN_SENT') or (state = ('COMPLETED') and update_at = DATE(#{selectDate})))
AND (state = ('HAS_BEEN_SENT') or (state = ('COMPLETED') and DATE(update_at) = DATE(#{selectDate})))
AND is_delete = 0
AND executor_person_id=#{personId} AND template_code IN<foreach collection="pendingCalendarCodeDTO.allCodes" index="index" item="item" open="(" separator="," close=")">
#{item}