| | |
| | | @ManagerAuth |
| | | public R update(TrayCode trayCode){ |
| | | if (Cools.isEmpty(trayCode) || null==trayCode.getId()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | trayCodeService.updateById(trayCode); |
| | | return R.ok(); |
| | |
| | | public R delete(@RequestParam String param){ |
| | | List<TrayCode> list = JSONArray.parseArray(param, TrayCode.class); |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | for (TrayCode entity : list){ |
| | | trayCodeService.delete(new EntityWrapper<>(entity)); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/trayCode/print/auth") |
| | | @ManagerAuth(memo = "托盘码打印") |
| | | @ManagerAuth(memo = "货架码打印") |
| | | public R print(@RequestParam String startNo, |
| | | @RequestParam Integer count, |
| | | @RequestParam Integer type){ |