| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.*; |
| | |
| | | // if (!flowLogService.insert(flowLog)) { |
| | | // throw new CoolException("同步半成品调拨单流水记录失败"); |
| | | // } |
| | | log.info("53添加库存日志:{},{}", updateAnfme,JSON.toJSON(agvLocDetl)); |
| | | log.info("53添加库存日志:{},{}", updateAnfme, JSON.toJSON(agvLocDetl)); |
| | | agvLocDetlService.updateAnfme(updateAnfme, agvLocDetl.getLocNo(), agvLocDetl.getMatnr(), agvLocDetl.getBatch(), agvLocDetl.getThreeCode(), agvLocDetl.getDeadTime()); |
| | | } |
| | | //AgvLocDetl agvLocDetl = agvLocDetlService.selectLocdetl(agvWrkMast.getLocNo(),agvWrkDetl.getMatnr(),agvWrkDetl.getBatch(),agvWrkDetl.getThreeCode(),agvWrkDetl.getDeadTime()); |
| | |
| | | agvLocDetl.sync(agvWrkDetl); |
| | | agvLocDetl.setModiTime(now); |
| | | agvLocDetl.setAppeTime(now); |
| | | log.info("57添加库存日志:{}",JSON.toJSON(agvLocDetl)); |
| | | log.info("57添加库存日志:{}", JSON.toJSON(agvLocDetl)); |
| | | if (!agvLocDetlService.insert(agvLocDetl)) { |
| | | throw new CoolException("保存工作明细失败"); |
| | | } |
| | |
| | | locDetl.setLocNo(agvWrkMast.getLocNo()); |
| | | locDetl.sync(agvWrkDetl); |
| | | locDetl.setModiTime(new Date()); |
| | | log.info("112添加库存日志:{}",JSON.toJSON(locDetl)); |
| | | log.info("112添加库存日志:{}", JSON.toJSON(locDetl)); |
| | | agvLocDetlService.insert(locDetl); |
| | | } |
| | | // 接驳位 -- 库位 |
| | |
| | | reportMesPakinOrder(agvWrkMast, agvWrkDetls); |
| | | } |
| | | } |
| | | if (OUT_TYPE_List.contains(agvWrkMast.getIoType())) { |
| | | reportMesPakoutOrder(agvWrkMast, agvWrkDetls); |
| | | try { |
| | | if (OUT_TYPE_List.contains(agvWrkMast.getIoType())) { |
| | | reportMesPakoutOrder(agvWrkMast, agvWrkDetls); |
| | | } |
| | | if (MOVE_TYPE_List.contains(agvWrkMast.getIoType())) { |
| | | generateMesParam(agvWrkMast, agvWrkDetls); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | if (MOVE_TYPE_List.contains(agvWrkMast.getIoType())) { |
| | | generateMesParam(agvWrkMast, agvWrkDetls); |
| | | } |
| | | |
| | | } |
| | | |
| | | private void reportMesPakinOrder(AgvWrkMast agvWrkMast, List<AgvWrkDetl> agvWrkDetls) { |