巡检任务会多一条

master
zhaoxiaolin 11 months ago
parent 93d33895e7
commit adbf632d74

@ -391,10 +391,6 @@ public class OpenServiceImpl implements OpenService {
}
/**qc_check_task**/
if("checkTypeSCXJ".equals(qcCheckTaskProduce.getCheckType())){
//巡检要求8-20点准点产生巡检任务。要求8点之前开始生产那么第一条上位机触发的就当成模板
qcCheckTaskProduce.setDelFlag("1");
}
qcCheckTaskProduce.setRecordId(beLongId);
qcCheckTaskProduce.setFactoryCode(factoryCode);
qcCheckTaskProduce.setCreateTime(nowDate);

@ -179,7 +179,7 @@
qct.confirm_man_name confirmManName
from qc_check_task qct
left join pro_order_workorder pow on qct.order_no = pow.workorder_code
where qct.check_type = 'checkTypeSCXJ' <!--and qct.del_flag = '0' 因为开始巡检第一个是删除标识的模板del_flag=1-->
where qct.check_type = 'checkTypeSCXJ' and qct.del_flag = '0'
and pow.del_flag = '0'
and CONVERT(varchar(10),income_time, 120) = CONVERT(varchar(10),GETDATE(), 120)
and pow.status = 'w2' and pow.parent_order = '0'

Loading…
Cancel
Save