| | |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.utils.MatUtils; |
| | | import com.zy.asrs.utils.OrderInAndOutUtil; |
| | | import com.zy.asrs.utils.Utils; |
| | | import com.zy.common.constant.MesConstant; |
| | | import com.zy.common.entity.Parameter; |
| | | import com.zy.common.model.DetlDto; |
| | | import com.zy.common.model.LocDto; |
| | | import com.zy.common.model.MesCombParam; |
| | | import com.zy.common.model.enums.WorkNoType; |
| | | import com.zy.common.service.CommonService; |
| | |
| | | @Override |
| | | @Transactional |
| | | public void kittingCall(String locNo, Long userId) { |
| | | try{ |
| | | List<StockOutParam.LocDetl> locDetls = new ArrayList<>(); |
| | | |
| | | |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locNo)); |
| | | if (locMast.getLocSts().equals("F")){ |
| | | List<LocDetl> locDetlList = locDetlService.selectList(new EntityWrapper<LocDetl>().eq("loc_no", locNo)); |
| | | for (LocDetl locDetl:locDetlList){ |
| | | StockOutParam.LocDetl locDto = new StockOutParam.LocDetl(); |
| | | locDto.setLocNo(locDetl.getLocNo()); |
| | | locDto.setMatnr(locDetl.getMatnr()); |
| | | locDto.setBatch(locDetl.getBatch()); |
| | | locDto.setBrand(locDetl.getBrand()); |
| | | locDto.setCount(locDetl.getAnfme()); |
| | | locDto.setStandby1(locDetl.getStandby1()); |
| | | locDto.setStandby2(locDetl.getStandby2()); |
| | | locDto.setStandby3(locDetl.getStandby3()); |
| | | locDto.setBoxType1(locDetl.getBoxType1()); |
| | | locDto.setBoxType2(locDetl.getBoxType2()); |
| | | locDto.setBoxType3(locDetl.getBoxType3()); |
| | | locDetls.add(locDto); |
| | | } |
| | | } |
| | | StockOutParam param = new StockOutParam(); |
| | | param.setOutSite(101); |
| | | param.setLocDetls(locDetls); |
| | | WorkService workService = SpringUtils.getBean(WorkService.class); |
| | | workService.locCheckOut(param,userId); |
| | | } catch (Exception e){ |
| | | throw new CoolException("盘点启动失败!!!"); |
| | | } |
| | | } |
| | | |
| | | @Override |