| | |
| | | public R plaDetlCheck(@RequestBody JSONObject json){ |
| | | String batch = json.get("batch").toString(); |
| | | Integer packageNo = Integer.parseInt(json.get("packageNo").toString()); |
| | | Integer type = Integer.parseInt(json.get("type").toString()); |
| | | if(Cools.isEmpty(batch) || Cools.isEmpty(packageNo)){ |
| | | return R.error("有参数为空,无法入库"); |
| | | } |
| | |
| | | if ((Cools.isEmpty(pla))){ |
| | | return R.error("该包物料未录入,无法查询到相关信息"); |
| | | } |
| | | if(!Cools.eq(pla.getStatus(), GlobleParameter.PLA_STATUS_0)){ |
| | | if(!Cools.eq(pla.getStatus(), GlobleParameter.PLA_STATUS_0) && type != 2){ |
| | | return R.error("该包物料不为待入库状态,无法进行入库操作"); |
| | | } |
| | | return R.ok(pla); |
| | |
| | | pla移库 |
| | | */ |
| | | @RequestMapping("/plaDetl/move/v1") |
| | | @ManagerAuth |
| | | public R plaDetlMove(@RequestBody JSONObject json){ |
| | | |
| | | String batch = json.get("batch").toString(); |
| | |
| | | if ((Cools.isEmpty(pla))){ |
| | | return R.error("该包物料未录入,无法查询到相关信息"); |
| | | } |
| | | if(!Cools.eq(pla.getStatus(),GlobleParameter.PLA_STATUS_1)){ |
| | | return R.error("该包物料状态不为已入库状态,无法转移"); |
| | | } |
| | | |
| | | Node node = nodeService.selectByUuid(locNo); |
| | | if(Cools.isEmpty(node)){ |