diff --git a/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTypeMapper.xml b/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTypeMapper.xml index 0a130ef1..910b8f9e 100644 --- a/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTypeMapper.xml +++ b/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTypeMapper.xml @@ -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) + ) insert into qc_check_type