| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/waitPakin/update/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth |
| | | public R update(WaitPakin waitPakin){ |
| | | if (Cools.isEmpty(waitPakin)){ |
| | | return R.error(); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/waitPakin/update/beBatch/auth") |
| | | @ManagerAuth |
| | | public R updateBeBatch(@RequestBody Map<String, Object> param) { |
| | | String zpallet = (String) param.get("zpallet"); |
| | | Integer beBatch = Integer.parseInt(param.get("beBatch").toString()); |
| | | |
| | | if (Cools.isEmpty(zpallet)) { |
| | | return R.error("托盘码不能为空"); |
| | | } |
| | | |
| | | boolean result = waitPakinService.updateBeBatchByZpallet(zpallet, beBatch); |
| | | |
| | | if (result) { |
| | | return R.ok("修改成功"); |
| | | } else { |
| | | return R.error("修改失败"); |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/waitPakin/delete/auth") |
| | | @ManagerAuth |
| | | @Transactional |