| | |
| | | } |
| | | } |
| | | |
| | | List<String> outerLoc = Utils.getGroupOuterSingleLoc(locNo); |
| | | List<String> outerLocs = Utils.getGroupOuterSingleLoc(locNo); |
| | | Double wrkPri = 15D; |
| | | for (LocMast locMast : locMastService.selectByLocNos(outerLoc)) { |
| | | for (String outerLoc : outerLocs) { |
| | | LocMast locMast = locMastService.selectById(outerLoc); |
| | | if (locMast == null) { |
| | | continue; |
| | | } |
| | | |
| | | if (!locMast.getLocSts().equals("F")) { |
| | | continue; |
| | | } |
| | |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setSpecs(locDetl.getSpecs()); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setSpecs(detlDto.getLocDetl().getSpecs()); |
| | | wrkDetl.setMatType(detlDto.getLocDetl().getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | wrkDetl.setAppeUser(userId); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | wrkDetl.setAppeUser(userId); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | wrkDetl.setAppeUser(9527L); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(9527L); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |