Commit 16b96143 sunke

关闭两天前的未完成需求单

1 个父辈 dbf9616d
......@@ -443,21 +443,17 @@ public class OutInfoCache {
List<OutInfo> unEndOutInfoList = outInfoDao.findUnEndOutInfos();
long now = System.currentTimeMillis();
for (OutInfo outInfo : unEndOutInfoList) {
// if(now - outInfo.getMdate().getTime() > 10 * 24 * 60 * 60 * 1000){
// //10天前的需求单(非紧急料),关闭,并解绑
// if(!outInfo.isUrgentAction()){
// String so = outInfo.getSo();
// String mDataStr = DateUtil.toDateString(outInfo.getMdate(),"yyyy-MM-dd HH:mm");
// log.info("需求单hSerial=["+outInfo.gethSerial()+"]工单so=["+so+"]soseq=["+outInfo.getSoseq()+"]的必须出库日期["+mDataStr+"]为10天前,关闭并解绑工单");
// closeSoSeq(outInfo.getSoseq());
// }
//
// }else{
// addOutInfo(outInfo);
// updateSendStatus(outInfo.gethSerial());
// }
addOutInfo(outInfo);
updateSendStatus(outInfo.gethSerial());
if(now - outInfo.getCreateDate().getTime() > 2 * 24 * 60 * 60 * 1000){
//2天前的需求单,关闭,并解绑
log.info("需求单hSerial=["+outInfo.gethSerial()+"]为2天前,关闭并解绑工单");
closeHSerial(outInfo.gethSerial());
}else{
addOutInfo(outInfo);
updateSendStatus(outInfo.gethSerial());
}
// addOutInfo(outInfo);
// updateSendStatus(outInfo.gethSerial());
}
}
......@@ -891,6 +887,12 @@ public class OutInfoCache {
// continue;
// }
// }
if(now.getTime() - outInfo.getCreateDate().getTime() > 2 * 24 * 60 * 60 * 1000){
//2天前的需求单,关闭,并解绑
log.info("需求单hSerial=["+outInfo.gethSerial()+"]为2天前,关闭并解绑工单");
closeHSerial(outInfo.gethSerial());
continue;
}
if(outInfo.getFirstExecuteTime() == 0){
boolean needToWaitQueue = false;
......
......@@ -239,7 +239,7 @@
<div class="page-footer-inner">
2016&copy; <a href="">SMD BOX</a>
</div>
<span class="right" style="color: #a3a3a3;">Version: 1.8.1110</span>
<span class="right" style="color: #a3a3a3;">Version: 1.9.1418</span>
<div class="scroll-to-top">
<i class="icon-arrow-up"></i>
</div>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!