检验任务只保留当天和昨天的

master
zhaoxiaolin 9 months ago
parent f27d2dcbe9
commit 1706f6be9b

@ -275,6 +275,10 @@
<if test="checkType != null and checkType != ''">and qct.check_type = #{checkType}</if>
<if test="checkManCode != null and checkManCode != ''">and qctu.check_man_code = #{checkManCode}</if>
<if test="checkStatus != null and checkStatus != ''">and qct.check_status in (${checkStatus})</if>
and (
CONVERT(varchar(10),qct.create_time, 120) = CONVERT(varchar(10),GETDATE(), 120)
or CONVERT(varchar(10),qct.create_time, 120) = CONVERT(varchar(10),DATEADD(DAY, -1, GETDATE()), 120)
)
</where>
order by qct.create_time desc
</select>

Loading…
Cancel
Save