| | |
| | | pla.setQtyAnfme(pla.getQtyAnfme() + pla.getOrderWeight()); |
| | | pla.setHandlerBy(getUser().getUsername()); |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_2); |
| | | log.warn("修改为待出库,地址:{},数据:{}","/pla/sellout/auth", pla); |
| | | log.info("修改为待出库,地址:{},数据:{}","/pla/sellout/auth", pla); |
| | | pla.setModifyTime(new Date()); |
| | | pla.setPakoutTime(pla.getPakoutTime().split("\\(")[0]); |
| | | //生成此次作业信息 |
| | |
| | | }else { |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_3); |
| | | } |
| | | log.warn("pla出库v1,更新为待出库或则全部出库,pla:{},anfme:{}",pla,anfme); |
| | | log.info("pla出库v1,更新为待出库或则全部出库,pla:{},anfme:{}",pla,anfme); |
| | | plaService.updateById(pla); |
| | | SaasUtils.insertLog(1,locNo,pla.getBrand(),anfme,null,null, |
| | | pla.getBatch(),pla.getPackageNo(),pla.getOwner(),pla.getWorkshop(),null); |
| | |
| | | throw new CoolException("当前物料剩余库存不足"); |
| | | } |
| | | |
| | | log.warn("无订单拣货出库,更新为待出库或则全部出库,pla:{},anfme:{}",pla,anfme); |
| | | log.info("无订单拣货出库,更新为待出库或则全部出库,pla:{},anfme:{}",pla,anfme); |
| | | pla.setWeightAnfme(pla.getWeightAnfme() - anfme); |
| | | if(pla.getWeightAnfme() > 0){ |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_3); |