|
|
|
@ -383,14 +383,14 @@ public class QcCheckTaskProduceServiceImpl implements IQcCheckTaskProduceService
|
|
|
|
|
for(QcCheckTaskProduce productTask:works){
|
|
|
|
|
productTask.setCheckType("checkTypeSCXJ");//过程检验-巡检
|
|
|
|
|
productTask.setOrderNo(productTask.getWorkorderCode());
|
|
|
|
|
Date nowTime = DateUtils.getNowDate();
|
|
|
|
|
Date startTime = productTask.getCreateTime();
|
|
|
|
|
// Date nowTime = DateUtils.getNowDate();
|
|
|
|
|
// Date startTime = productTask.getCreateTime();
|
|
|
|
|
|
|
|
|
|
long mins = DateUtil.between(startTime, nowTime, DateUnit.MINUTE);
|
|
|
|
|
if(mins>=60){
|
|
|
|
|
// long mins = DateUtil.between(startTime, nowTime, DateUnit.MINUTE);
|
|
|
|
|
// if(mins>=60){
|
|
|
|
|
int m = insertQcCheckTaskProduce(productTask);
|
|
|
|
|
logger.info("++++++++++++过程检验巡检任务生成" + m + "++++++++++++++");
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
logger.info("++++++++++++" + poolName + "++++过程检验巡检结束++++++++++");
|
|
|
|
|
}
|
|
|
|
|