|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/wrkMast/add/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | @ManagerAuth(memo = "工作档添加") | 
|---|
|  |  |  | public R add(WrkMast wrkMast) { | 
|---|
|  |  |  | wrkMast.setModiUser(getUserId()); | 
|---|
|  |  |  | wrkMast.setModiTime(new Date()); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/wrkMast/update/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | @ManagerAuth(memo = "工作档修改") | 
|---|
|  |  |  | public R update(WrkMast wrkMast){ | 
|---|
|  |  |  | if (Cools.isEmpty(wrkMast) || null==wrkMast.getWrkNo()){ | 
|---|
|  |  |  | return R.error(); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/wrkMast/delete/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | @ManagerAuth(memo = "工作档删除") | 
|---|
|  |  |  | public R delete(@RequestParam String param){ | 
|---|
|  |  |  | List<WrkMast> list = JSONArray.parseArray(param, WrkMast.class); | 
|---|
|  |  |  | if (Cools.isEmpty(list)){ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/wrkMast/export/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | @ManagerAuth(memo = "工作档导出") | 
|---|
|  |  |  | public R export(@RequestBody JSONObject param){ | 
|---|
|  |  |  | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); | 
|---|
|  |  |  | EntityWrapper<WrkMast> wrapper = new EntityWrapper<>(); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/wrkMast/add/pri/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | @ManagerAuth(memo = "工作档增加优先级") | 
|---|
|  |  |  | public R addPri(@RequestBody List<WrkMast> list) { | 
|---|
|  |  |  | if (list.isEmpty()) { | 
|---|
|  |  |  | return R.error("请至少选择一行数据"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | for (WrkMast entity : list){ | 
|---|
|  |  |  | entity.setIoPri(entity.getIoPri() + 1); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/wrkMast/red/pri/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | @ManagerAuth(memo = "工作档降低优先级") | 
|---|
|  |  |  | public R redPri(@RequestBody List<WrkMast> list) { | 
|---|
|  |  |  | if (list.isEmpty()) { | 
|---|
|  |  |  | return R.error("请至少选择一行数据"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | for (WrkMast entity : list){ | 
|---|
|  |  |  | entity.setIoPri(entity.getIoPri() - 1); | 
|---|
|  |  |  | } | 
|---|