| | |
| | | taskOverToWms.setEquipmentCode(String.valueOf(taskWrk.getCrnNo())); //设备编码 |
| | | taskOverToWms.setTargetLocationCode(taskWrk.getOriginTargetPoint()); //目标库位 |
| | | Date now = new Date(); |
| | | //更新库位状态 |
| | | LocMast locMast = locMastService.selectByLocNo(taskWrk.getStartPoint()); |
| | | locMast.setLocSts("K");//O.空库位 |
| | | locMast.setBarcode("");//托盘码 |
| | | locMast.setModiTime(now); |
| | | locMast.setModiUser(9999L); |
| | | locMastService.updateById(locMast); |
| | | |
| | | //更新库位状态 |
| | | LocMast locMast2 = locMastService.selectByLocNo(taskWrk.getTargetPoint()); |
| | | locMast2.setLocSts("Z");//F.在库 |
| | | locMast2.setBarcode(taskWrk.getBarcode());//托盘码 |
| | | locMast2.setModiTime(now); |
| | | locMast2.setModiUser(9999L); |
| | | locMastService.updateById(locMast2); |
| | | // //更新库位状态 |
| | | // LocMast locMast = locMastService.selectByLocNo(taskWrk.getStartPoint()); |
| | | // locMast.setLocSts("K");//O.空库位 |
| | | // locMast.setBarcode("");//托盘码 |
| | | // locMast.setModiTime(now); |
| | | // locMast.setModiUser(9999L); |
| | | // locMastService.updateById(locMast); |
| | | // |
| | | // //更新库位状态 |
| | | // LocMast locMast2 = locMastService.selectByLocNo(taskWrk.getTargetPoint()); |
| | | // locMast2.setLocSts("Z");//F.在库 |
| | | // locMast2.setBarcode(taskWrk.getBarcode());//托盘码 |
| | | // locMast2.setModiTime(now); |
| | | // locMast2.setModiUser(9999L); |
| | | // locMastService.updateById(locMast2); |
| | | } |
| | | |
| | | taskOverToWms.setTaskStatus("done"); //任务状态 |
| | |
| | | }catch (Exception e){ |
| | | log.error("堆垛机任务完成,请求wms任务完成接口失败"); |
| | | } |
| | | ApiLogService apiLogService = SpringUtils.getBean(ApiLogService.class); |
| | | // ApiLogService apiLogService = SpringUtils.getBean(ApiLogService.class); |
| | | apiLogService.save("Wms任务完成接口" |
| | | ,"10.32.53.195:8080"+"/wcsManager/wcsInterface/taskStatusFeedback" |
| | | ,null |
| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0 0 1 * * ? ") |
| | | public void clearApiLog(){ |
| | | try { |
| | | apiLogService.clearWeekBefore(); |
| | | } catch (Exception e) { |
| | | log.error("第三方接口日志自动清除失败(范围:一周之前", e); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |