| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/staDesc/add/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "站点路径添加") |
| | | public R add(StaDesc staDesc) { |
| | | staDesc.setModiUser(getUserId()); |
| | | staDesc.setModiTime(new Date()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/staDesc/update/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "站点路径修改") |
| | | public R update(StaDesc staDesc){ |
| | | if (Cools.isEmpty(staDesc) || null==staDesc.getCrnNo()){ |
| | | if (Cools.isEmpty(staDesc) || null==staDesc.getTypeId()){ |
| | | return R.error(); |
| | | } |
| | | staDesc.setModiUser(getUserId()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/staDesc/delete/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "站点路径删除") |
| | | public R delete(@RequestParam String param){ |
| | | List<StaDesc> list = JSONArray.parseArray(param, StaDesc.class); |
| | | if (Cools.isEmpty(list)){ |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/staDesc/export/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "站点路径导出") |
| | | public R export(@RequestBody JSONObject param){ |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | EntityWrapper<StaDesc> wrapper = new EntityWrapper<>(); |