|
@@ -14,7 +14,9 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.beust.jcommander.internal.Maps;
|
|
|
import com.github.zuihou.authority.dto.priority.TaskNodePriorityDto;
|
|
|
+import com.github.zuihou.authority.service.common.ParameterService;
|
|
|
import com.github.zuihou.base.R;
|
|
|
import com.github.zuihou.base.service.SuperServiceImpl;
|
|
|
import com.github.zuihou.business.DemoLine.DemoCacheKey;
|
|
@@ -30,6 +32,7 @@ import com.github.zuihou.business.edgeLibrary.service.StockInfoService;
|
|
|
import com.github.zuihou.business.edgeLibrary.service.StockLogService;
|
|
|
import com.github.zuihou.business.edgeLibrary.service.StorgeService;
|
|
|
import com.github.zuihou.business.externalApi.dto.ManualInfo;
|
|
|
+import com.github.zuihou.business.externalApi.entity.MesNotice;
|
|
|
import com.github.zuihou.business.operationManagementCenter.dao.*;
|
|
|
import com.github.zuihou.business.operationManagementCenter.dto.TaskNodeCallBackDTO;
|
|
|
import com.github.zuihou.business.operationManagementCenter.entity.*;
|
|
@@ -49,10 +52,7 @@ import com.github.zuihou.business.util.DynamicRabbitMq;
|
|
|
import com.github.zuihou.business.util.ManualTaskOperatorUtil;
|
|
|
import com.github.zuihou.business.util.MsgUtil;
|
|
|
import com.github.zuihou.business.util.ZplPrinter;
|
|
|
-import com.github.zuihou.common.constant.BizConstant;
|
|
|
-import com.github.zuihou.common.constant.CacheKey;
|
|
|
-import com.github.zuihou.common.constant.CodeRuleModule;
|
|
|
-import com.github.zuihou.common.constant.DictionaryKey;
|
|
|
+import com.github.zuihou.common.constant.*;
|
|
|
import com.github.zuihou.common.util.DateUtil;
|
|
|
import com.github.zuihou.common.util.StringUtil;
|
|
|
import com.github.zuihou.context.BaseContextHandler;
|
|
@@ -206,6 +206,9 @@ public class TaskNodeServiceImpl extends SuperServiceImpl<TaskNodeMapper, TaskNo
|
|
|
@Autowired
|
|
|
private StockLogService stockLogService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MesNoticeService mesNoticeService;
|
|
|
+
|
|
|
//总控IP
|
|
|
private String ZK_ip = "192.168.1.41";
|
|
|
|
|
@@ -249,6 +252,9 @@ public class TaskNodeServiceImpl extends SuperServiceImpl<TaskNodeMapper, TaskNo
|
|
|
@Autowired
|
|
|
private CutterTestDataService cutterTestDataService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ParameterService parameterService;
|
|
|
+
|
|
|
private static Logger logger = LoggerFactory.getLogger(TaskNodeServiceImpl.class);
|
|
|
|
|
|
//获取子二级节点
|
|
@@ -1968,6 +1974,19 @@ public class TaskNodeServiceImpl extends SuperServiceImpl<TaskNodeMapper, TaskNo
|
|
|
order.setCompleteNum((order.getCompleteNum() == null ? 0 : order.getCompleteNum()) + 1);
|
|
|
order.setProduceStatus("3");//完成
|
|
|
orderMapper.updateAllById(order);
|
|
|
+ if(order.getSource().equals("2")){
|
|
|
+ MesNotice mesNotice = mesNoticeService.getOne(new LbqWrapper<MesNotice>().eq(MesNotice::getBatchNo, order.getBatchNo()).last("limit 1"));
|
|
|
+ //报工判断处理
|
|
|
+ String hostSystemUrl = parameterService.getValue(ParameterKey.ECSSYSTEMURL, null);
|
|
|
+ String mesTaskCompletionURL = mesNotice.getApiType().equals("QUALITYREPORT")? hostSystemUrl + "/externalApi/qualityResultReport" : hostSystemUrl + "/externalApi/order/mesProcessReports";
|
|
|
+ Map<String, String> map = Maps.newHashMap();
|
|
|
+ if(mesNotice.getApiType().equals("QUALITYREPORT")){
|
|
|
+
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+ msgUtil.httpForPost(mesTaskCompletionURL, JSONObject.toJSONString(map));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//设置计划结束
|