|
@@ -2,6 +2,7 @@ package com.github.zuihou.business.operationManagementCenter.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -1580,6 +1581,16 @@ public class TaskNodeServiceImpl extends SuperServiceImpl<TaskNodeMapper, TaskNo
|
|
|
String repeatVal = mulCache? taskNodeId +"_0" : taskNodeId;
|
|
|
msgUtil.redis_set(String.valueOf(repeatKey), String.valueOf(repeatVal), 2, TimeUnit.DAYS);
|
|
|
}
|
|
|
+ //排产过程处理重复提交
|
|
|
+ if(StringUtil.isNotEmpty(cacheUid)) {
|
|
|
+ List object = msgUtil.redis_get_list(YunjianConstant.YUNJIAN_SCHEDULE_LIST);
|
|
|
+ List scheduleList = (object!=null)?msgUtil.redis_get_list(YunjianConstant.YUNJIAN_SCHEDULE_LIST): Lists.newArrayList();
|
|
|
+ if(!scheduleList.contains(cacheUid)){
|
|
|
+ msgUtil.redis_set_list(YunjianConstant.YUNJIAN_SCHEDULE_LIST, cacheUid);
|
|
|
+ }else{
|
|
|
+ return R.fail(-5,"回调"+cacheUid+"已有重复");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
// begin add by yejian on 20220503 for yj on 如果排产中先等待排产完成后继续执行(防止重复发送回调)
|
|
|
while (null != msgUtil.redis_get(YunjianConstant.YUNJIAN_SHEDULE_FLAG)) {
|