From b5121fd2ab39d156f12d48300ca6f365be4d712a Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Fri, 19 Apr 2024 20:45:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E7=9C=8B=E4=BB=8A=E5=A4=A9=E5=92=8C?= =?UTF-8?q?=E6=98=A8=E5=A4=A9=E7=9A=84=E6=A3=80=E9=AA=8C=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/quality/QcCheckTypeMapper.xml | 8 ++++++++ 1 file changed, 8 insertions(+) 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