| | |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.core.common.Cools; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.Pla; |
| | | import com.zy.asrs.entity.PlaQty; |
| | |
| | | Pla pla = this.selectByBatchAndPackageNo(plaQty.getBatch(), plaQty.getPackageNo()); |
| | | //pla.setStatus(GlobleParameter.PLA_STATUS_0); |
| | | |
| | | pla.setWeightAnfme(plaQty.getOrderWeight()); |
| | | pla.setWeightAnfme(pla.getWeightAnfme() + plaQty.getOrderWeight()); |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_1); |
| | | this.updateById(pla); |
| | | |
| | |
| | | |
| | | }); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void viladate(List<Pla> plas, User user) { |
| | | plas.forEach(pla -> { |
| | | if(!pla.getStatus().equals(GlobleParameter.PLA_STATUS_00)){ |
| | | throw new CoolException("选中的数据不是暂入库状态,请核对状态"); |
| | | } |
| | | pla = this.selectById(pla.getId()); |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_0); |
| | | this.updateById(pla); |
| | | }); |
| | | } |
| | | } |