只看今天和昨天的检验任务

master
zhaoxiaolin 9 months ago
parent efa426825e
commit b5121fd2ab

@ -50,6 +50,10 @@
left join qc_check_type qc on qct.check_type = qc.order_code
left join qc_check_task_user qctu on qctu.belong_to = qct.record_id
where qct.check_status = '0' and qctu.check_man_code = #{checkManCode}
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)
)
group by qct.check_type,qc.check_name
union all
select '','',
@ -58,6 +62,10 @@
from qc_check_unqualified qcu
left join qc_check_task qct on qcu.task_id = qct.record_id
where qcu.status != '2' and qct.check_man_code = #{checkManCode}
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)
)
</select>
<insert id="insertQcCheckType" parameterType="QcCheckType">
insert into qc_check_type

Loading…
Cancel
Save