| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/basLocType/add/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "库位状态添加") |
| | | public R add(BasLocType basLocType) { |
| | | basLocType.setModiUser(getUserId()); |
| | | basLocType.setModiTime(new Date()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/basLocType/update/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "库位状态修改") |
| | | public R update(BasLocType basLocType){ |
| | | if (Cools.isEmpty(basLocType) || null==basLocType.getLocSts()){ |
| | | return R.error(); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/basLocType/delete/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "库位状态删除") |
| | | public R delete(@RequestParam String param){ |
| | | List<BasLocType> list = JSONArray.parseArray(param, BasLocType.class); |
| | | if (Cools.isEmpty(list)){ |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/basLocType/export/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "库位状态导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<BasLocType> wrapper = new EntityWrapper<>(); |