|
@@ -4,6 +4,7 @@ import com.steerinfo.dil.mapper.QmsQueueListMapper;
|
|
|
import com.steerinfo.dil.mapper.QmsQueueSpellingListMapper;
|
|
|
import com.steerinfo.dil.mapper.QueuingRulesMapper;
|
|
|
import com.steerinfo.dil.util.DataChange;
|
|
|
+import com.steerinfo.dil.util.SaleLogUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
@@ -32,6 +33,9 @@ public class QueueDealWithAsync {
|
|
|
@Autowired
|
|
|
private QmsQueueSpellingListMapper qmsQueueSpellingListMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SaleLogUtil saleLogUtil;
|
|
|
+
|
|
|
/**
|
|
|
* 单拼
|
|
|
* @param nowTime
|
|
@@ -42,6 +46,8 @@ public class QueueDealWithAsync {
|
|
|
List<Map<String, Object>> listListMap = queuingRulesMapper.getAllSureTimeList();
|
|
|
for (Map<String, Object> map : listListMap) {
|
|
|
if((nowTime - ((Date) map.get("entrySureTime")).getTime()) > 5400000){
|
|
|
+ //记录日志
|
|
|
+ saleLogUtil.logOrder(map,"超过勾选时间30分钟,自动回滚到队列最后",SaleLogUtil.UPDATE);
|
|
|
//如果超过勾选时间30分钟 自动回滚到队列最后--修改为1个小时
|
|
|
BigDecimal listId = DataChange.dataToBigDecimal(map.get("listId"));
|
|
|
Integer maxListNodeOrder = qmsQueueListMapper.getMaxListNodeOrder(map);
|
|
@@ -68,6 +74,8 @@ public class QueueDealWithAsync {
|
|
|
List<Map<String, Object>> allSureTimeSpellingList = queuingRulesMapper.getAllSureTimeSpellingList();
|
|
|
for (Map<String, Object> map : allSureTimeSpellingList) {
|
|
|
if ((nowTime - ((Date) map.get("entrySureTime")).getTime()) > 5400000) {
|
|
|
+ //记录日志
|
|
|
+ saleLogUtil.logOrder(map,"超过勾选时间30分钟,自动回滚到队列最后",SaleLogUtil.UPDATE);
|
|
|
BigDecimal spellingResultId = DataChange.dataToBigDecimal(map.get("spellingResultId"));
|
|
|
//如果超过勾选时间30分钟 自动回滚到队列最后
|
|
|
queuingRulesMapper.updateSpellingListToLast(spellingResultId);
|