| | |
| | | wrkDetl.setAppeUser(userId); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setOwner(locDetl.getOwner()); |
| | | wrkDetl.setPayment(locDetl.getPayment()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | @Override |
| | | @Transactional |
| | | public void turnOverOutPayment(EmptyPlateOutParam param, Long userId) { |
| | | if (Cools.isEmpty(param.getPayment())){ |
| | | throw new CoolException("请选择目标货物形态"); |
| | | } |
| | | log.info("更新货物形态:目标货物形态:"+param.getPayment$(param.getPayment())+";更改货物信息:"+param.getLocDetls()); |
| | | try { |
| | | if (param.getLocDetls().size()<=0){ |
| | | throw new CoolException("请提取明细"); |
| | |
| | | if (locNo1[1].equals("平库")){ |
| | | List<ManLocDetl> manLocDetls = manLocDetlService.selectList(new EntityWrapper<ManLocDetl>().eq("loc_no", locNo)); |
| | | for (ManLocDetl manLocDetl:manLocDetls){ |
| | | manLocDetl.setPayment(1); |
| | | manLocDetl.setPayment(param.getPayment()); |
| | | try{ |
| | | manLocDetlService.update(manLocDetl,new EntityWrapper<ManLocDetl>().eq("loc_no", locNo).eq("matnr",manLocDetl.getMatnr())); |
| | | }catch (Exception e){ |
| | |
| | | }else if (locNo1[1].equals("立库")){ |
| | | List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>().eq("loc_no", locNo)); |
| | | for (LocDetl locDetl:locDetls){ |
| | | locDetl.setPayment(1); |
| | | locDetl.setPayment(param.getPayment()); |
| | | try{ |
| | | locDetlService.update(locDetl,new EntityWrapper<LocDetl>().eq("loc_no", locNo).eq("matnr",locDetl.getMatnr())); |
| | | }catch (Exception e){ |