| | |
| | | BeanUtils.copyProperties(plaSave,plaLog); |
| | | plaLog.setId(null); |
| | | plaLog.setCreateTime(new Date()); |
| | | plaLog.setModifyUser(getUser().getUsername()); |
| | | plaLogService.insert(plaLog); |
| | | |
| | | }); |
| | |
| | | BeanUtils.copyProperties(plaSave,plaLog); |
| | | plaLog.setId(null); |
| | | plaLog.setCreateTime(new Date()); |
| | | plaLog.setModifyUser(getUser().getUsername()); |
| | | plaLogService.insert(plaLog); |
| | | |
| | | }); |
| | |
| | | //还原旧物料状态 |
| | | Pla plaOld = plaService.selectByBatchAndPackageNo(manPakOut.getBatch(), Integer.parseInt(manPakOut.getBarcode()), manPakOut.getMaktx()); |
| | | |
| | | //更新新物料信息 |
| | | plaNew.setQtyAnfme(plaOld.getQtyAnfme()); |
| | | plaNew.setStatus(plaOld.getStatus()); |
| | | plaService.updateById(plaNew); |
| | | |
| | | plaOld.setStatus(GlobleParameter.PLA_STATUS_1); |
| | | plaOld.setQtyAnfme(0.0); |
| | | plaOld.setQtyAnfme(plaOld.getQtyAnfme() - manPakOut.getCount()); |
| | | |
| | | plaService.updateById(plaOld); |
| | | |