| | |
| | | * 应急预案列表 |
| | | */ |
| | | @RequestMapping(value = "/page/list" ,method = RequestMethod.POST) |
| | | private ResultVO<List<EmergencyPlanPageRespDTO>> list (@RequestBody PageQuery<EmergencyPlanQuery> pageQuery){ |
| | | private ResultVO<List<EmergencyPlanPageRespDTO>> list (Authentication authentication,@RequestBody PageQuery<EmergencyPlanQuery> pageQuery){ |
| | | PageUtils.checkCheck(pageQuery); |
| | | return emergencyPlanService.selectEmergencyPlanList(pageQuery); |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | return emergencyPlanService.selectEmergencyPlanList(currentUser.getUid(),pageQuery); |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 应急预案删除/批量删除 |
| | | */ |
| | | @RequestMapping(value = "/batchDelete/{ids}",method = RequestMethod.GET) |
| | | public ResultVO batchDeleteEmergencyPlan(@PathVariable("ids")String ids){ |
| | | @RequestMapping(value = "/batchDelete",method = RequestMethod.POST) |
| | | public ResultVO batchDeleteEmergencyPlan(@RequestBody Long[] ids){ |
| | | return emergencyPlanService.batchDeleteEmergencyPlan(ids); |
| | | } |
| | | |
| | | /** |
| | | * 应急预案废止/还原 |
| | | */ |
| | | @RequestMapping(value = "/updateAbolish",method = RequestMethod.GET) |
| | | public ResultVO updateAbolish(Long id ,Boolean abolishStatus){ |
| | | return emergencyPlanService.updateAbolish(id,abolishStatus); |
| | | } |
| | | |
| | | } |