|
@@ -20,9 +20,7 @@ import com.github.zuihou.business.externalApi.entity.AgvHikOrderInfo;
|
|
|
import com.github.zuihou.business.externalApi.service.AgvHikOrderInfoService;
|
|
|
import com.github.zuihou.business.externalApi.service.ExternalApiService;
|
|
|
import com.github.zuihou.business.operationManagementCenter.dao.*;
|
|
|
-import com.github.zuihou.business.operationManagementCenter.entity.TTask;
|
|
|
-import com.github.zuihou.business.operationManagementCenter.entity.TWorkpiece;
|
|
|
-import com.github.zuihou.business.operationManagementCenter.entity.TaskNode;
|
|
|
+import com.github.zuihou.business.operationManagementCenter.entity.*;
|
|
|
import com.github.zuihou.business.operationManagementCenter.service.TaskNodeService;
|
|
|
import com.github.zuihou.business.operationManagementCenter.service.WorkpieceService;
|
|
|
import com.github.zuihou.business.productionReadyCenter.dao.AAutoNodeLogMapper;
|
|
@@ -384,6 +382,24 @@ public class TaskWorkNode {
|
|
|
//不用调接口,直接返回成功
|
|
|
conMap.put("result", true);
|
|
|
msgUtil.redis_set(CacheKey.TASK_CURRENT_NODE_STATUS + "_" + taskNode.getId(), "0");
|
|
|
+ // 自定义订单内部加工设备节点执行确认判断处理 判断成功直接更新状态
|
|
|
+ if(taskNode.getNodeName().equals("执行确认")){
|
|
|
+ taskNode.setExeStatus("3").setExeResult("1").setEndTime(new Date());
|
|
|
+ taskNodeService.updateById(taskNode);
|
|
|
+ tTask.setStatus("3").setEndTime(new Date());
|
|
|
+ taskMapper.updateAllById(tTask);
|
|
|
+ TWorkpiece currWorkpiece = workpieceService.getWorkPiece(taskNode.getId());
|
|
|
+ currWorkpiece.setIsEnd("1");
|
|
|
+ workpieceService.updateById(currWorkpiece);
|
|
|
+ Plan plan = planMapper.selectById(tTask.getPlanId());
|
|
|
+ plan.setProduceStatus("4").setPlanStatus("3");
|
|
|
+ planMapper.updateById(plan);
|
|
|
+ Order order = orderMapper.selectById(tTask.getOrderId());
|
|
|
+ order.setCompleteNum(1).setProduceStatus("3");//完成
|
|
|
+ orderMapper.updateAllById(order);
|
|
|
+ //机床刀具位上下料处理
|
|
|
+
|
|
|
+ }
|
|
|
} else {
|
|
|
Map queryMap = Maps.newHashMap();
|
|
|
queryMap.put("bizType", bizType);
|
|
@@ -600,8 +616,8 @@ public class TaskWorkNode {
|
|
|
|
|
|
//todo $需要换地址$
|
|
|
HttpEntity<String> formEntity = new HttpEntity<String>(jsonParam, headers);
|
|
|
- returnData = restTemplate.postForObject(instructionUrl, formEntity, String.class);
|
|
|
- //returnData = "{\"result\": \"true\"}";
|
|
|
+ //returnData = restTemplate.postForObject(instructionUrl, formEntity, String.class);
|
|
|
+ returnData = "{\"result\": \"true\"}";
|
|
|
|
|
|
}
|
|
|
|