| | |
| | | }else if (Cools.isEmpty(param.getWeight())){ |
| | | throw new CoolException("参数:物料重量 wright为空"); |
| | | } |
| | | if (param.getDevNo()==131){ |
| | | param.setDevNo(130); |
| | | } else if (param.getDevNo()==126){ |
| | | param.setDevNo(125); |
| | | } |
| | | |
| | | List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>().eq("matnr", param.getMatnr()).eq("weight", param.getWeight()).eq("color", param.getColor())); |
| | | ArrayList<LocDetl> locDetlArrayList = new ArrayList<>(); |
| | | List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>().eq("matnr", param.getMatnr()).eq("weight", param.getWeight())); |
| | | if (locDetls.isEmpty()){ |
| | | locDetls = new ArrayList<LocDetl>(); |
| | | } |
| | | if (locDetls.isEmpty()){ |
| | | for (LocDetl locDetl:locDetls){ |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locDetl.getLocNo())); |
| | | if (locMast.getLocSts().equals("F")){ |
| | | locDetlArrayList.add(locDetl); |
| | | break; |
| | | } |
| | | } |
| | | if (locDetlArrayList.isEmpty()){ |
| | | throw new CoolException("未找到符合条件的物料明细:品号==》matnr:"+param.getMatnr()+";重量==》wright:"+param.getWeight()+";颜色==》color:"+param.getColor()); |
| | | } |
| | | for (LocDetl locDetl : locDetls){ |
| | | for (LocDetl locDetl : locDetlArrayList){ |
| | | StockOutParam stockOutParam = new StockOutParam(param,locDetl); |
| | | workService.startupFullTakeStore(stockOutParam, userId); |
| | | return; |
| | |
| | | |
| | | } |
| | | |
| | | public Integer getStaEnd(Integer staNo){ |
| | | switch (staNo){ |
| | | case 118: |
| | | case 119: |
| | | return 131; |
| | | case 120: |
| | | case 121: |
| | | return 135; |
| | | default: |
| | | return staNo; |
| | | } |
| | | } |
| | | |
| | | /*...........................亳州煜星..............以上.............亳州煜星...........................*/ |
| | | } |