| | |
| | | log.info("任务执行参数回写:{}", JSON.toJSONString(params)); |
| | | if (params.getMsgType().equals("task_complete") || params.getMsgType().equals("station_out_task_run_complete")) { |
| | | JSONObject json = JSONObject.parseObject(params.getData()); |
| | | log.info(params.getSuperTaskNo() + "==============>{}", json); |
| | | if (mast.getIoType() == 1 || mast.getIoType() == 11 || mast.getIoType() == 10 || mast.getIoType() == 53 || mast.getIoType() == 54 || mast.getIoType() == 57) { |
| | | if (params.getMsgType().equals("task_complete")) { |
| | | if (mast.getIoType() == 53 && !Objects.isNull(json) && json.getInteger("ioType") == 1) { |
| | |
| | | } |
| | | } |
| | | mast.setWrkSts(4L); |
| | | } else if ((mast.getIoType() == 54 || mast.getIoType() == 57) ) { |
| | | } else if ((mast.getIoType() == 54 || mast.getIoType() == 57) && !Objects.isNull(json) && json.getInteger("ioType") == 1 ) { |
| | | mast.setWrkSts(4L); |
| | | } else if (mast.getIoType() != 53 ) { |
| | | } else if (mast.getIoType() != 53 && mast.getIoType() != 54 && mast.getIoType() != 57) { |
| | | mast.setWrkSts(4L); |
| | | } |
| | | } |