| | |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void comb(CombParam param, Long userId) { |
| | |
| | | manPakOutService.updateById(manPakOut); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public List<Pla> pdaSelectInfmt(String barcode) { |
| | | EntityWrapper<Pla> plaEntityWrapper = new EntityWrapper<>(); |
| | | String[] split = barcode.split(";"); |
| | | if (split.length == 4){ |
| | | plaEntityWrapper.eq("brand",split[0]); |
| | | plaEntityWrapper.eq("batch",split[1]); |
| | | plaEntityWrapper.eq("package_no",split[2]); |
| | | plaEntityWrapper.eq("line",split[3]); |
| | | }else if (split.length == 1){ |
| | | Node node = nodeService.selectOne(new EntityWrapper<Node>().eq("name", barcode)); |
| | | if (Cools.isEmpty(node)){ |
| | | throw new CoolException("请检查输入的库位码"); |
| | | } |
| | | plaEntityWrapper.eq("loc_no",barcode); |
| | | |
| | | }else { |
| | | throw new CoolException("条码信息有误!"); |
| | | } |
| | | |
| | | |
| | | List<Pla> plaList = plaService.selectList(plaEntityWrapper); |
| | | if (Cools.isEmpty(plaList)){ |
| | | throw new CoolException("未查询到库存物料信息"); |
| | | } |
| | | return plaList; |
| | | } |
| | | } |