| | |
| | | |
| | | Pla pla = plaService.selectByBatchAndPackageNo(batch, packageNo,brand); |
| | | if ((Cools.isEmpty(pla))){ |
| | | return R.error("该包物料未录入,无法查询到相关信息"); |
| | | return R.error("该包物料未录入,无法查询到相关信息").add(pla); |
| | | } |
| | | if(!(Cools.eq(pla.getStatus(), GlobleParameter.PLA_STATUS_0) || Cools.eq(pla.getStatus(), GlobleParameter.PLA_STATUS_00)) && type != 2){ |
| | | return R.error("该包物料不为待入库状态,无法进行入库操作"); |
| | | return R.error("该包物料的状态为" + pla.getStatus() +",无法进行入库操作").add(pla); |
| | | } |
| | | return R.ok(pla); |
| | | } |
| | |
| | | throw new CoolException("该包物料未录入,无法查询到相关信息"); |
| | | } |
| | | if(!Cools.eq(pla.getStatus(),GlobleParameter.PLA_STATUS_1) && !Cools.eq(pla.getStatus(),GlobleParameter.PLA_STATUS_3)){ |
| | | throw new CoolException("该包物料状态不为入库状态,无法转移"); |
| | | throw new CoolException("该包物料的状态为" + pla.getStatus() +",无法进行入库操作"); |
| | | } |
| | | |
| | | String sourceLocNo = pla.getLocNo(); |