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