| | |
| | | //直接更新pla的库存 |
| | | Pla pla = this.selectByBatchAndPackageNo(plaQty.getBatch(), plaQty.getPackageNo()); |
| | | //pla.setStatus(GlobleParameter.PLA_STATUS_0); |
| | | pla.setModifyTime(new Date()); |
| | | |
| | | pla.setWeightAnfme(pla.getWeightAnfme() + plaQty.getOrderWeight()); |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_1); |
| | |
| | | throw new CoolException("选中的数据不是暂入库状态,请核对状态"); |
| | | } |
| | | pla = this.selectById(pla.getId()); |
| | | pla.setModifyTime(new Date()); |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_0); |
| | | this.updateById(pla); |
| | | }); |
| | | } |
| | | |
| | | @Override |
| | | public List<Pla> selectToHistory() { |
| | | return this.selectList(new EntityWrapper<Pla>().eq("status",GlobleParameter.PLA_STATUS_4)); |
| | | } |
| | | } |