| | |
| | | @ResponseBody |
| | | public R autoEmptyIn(@RequestBody LocTypeDto locTypeDto){ |
| | | // 源站点状态检测 |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(12, true); |
| | | BasDevp sourceStaNo = basDevpService.checkSiteStatus(801, true); |
| | | |
| | | // 检索库位 |
| | | FindLocNoAttributeVo findLocNoAttributeVo = new FindLocNoAttributeVo(); |
| | | |
| | | StartupDto dto = commonService.getLocNo( 10, 12, findLocNoAttributeVo, locTypeDto); |
| | | StartupDto dto = commonService.getLocNo( 10, 801, findLocNoAttributeVo, locTypeDto); |
| | | Date now = new Date(); |
| | | // 生成工作档 |
| | | WrkMast wrkMast = new WrkMast(); |
| | |
| | | return R.error("库存没有空板"); |
| | | } |
| | | EmptyPlateOutParam emptyPlateOutParam = new EmptyPlateOutParam(); |
| | | emptyPlateOutParam.setOutSite(12); |
| | | emptyPlateOutParam.setOutSite(301); |
| | | emptyPlateOutParam.setLocNos(new ArrayList<String>(){{add(locMast.getLocNo()+"");}}); |
| | | WrkMast wrkMast = workService.emptyPlateOut(emptyPlateOutParam); |
| | | return R.ok(!Cools.isEmpty(wrkMast)? R.ok("自动空托出库成功,工作号:" + wrkMast.getWrkNo()) : R.error("生成自动空托出库失败")); |
| | |
| | | wrkMast.setMemo("自动3号堆垛机移栽"); |
| | | for (WrkDetl item : wrkDetls) { |
| | | WrkDetl newDetl = new WrkDetl(); |
| | | newDetl.sync(item); // 假设 sync 是深拷贝属性 |
| | | newDetl.sync(item); |
| | | newDetl.setWrkNo(wrkMast.getWrkNo()); |
| | | newDetl.setIoTime(wrkMast.getIoTime()); |
| | | newDetl.setAppeTime(now); |