package com.gkhy.safePlatform.emergency.controller; import com.gkhy.safePlatform.commons.query.PageQuery; import com.gkhy.safePlatform.commons.utils.PageUtils; import com.gkhy.safePlatform.commons.vo.ResultVO; import com.gkhy.safePlatform.emergency.model.dto.resp.EmergencyPlanPageRespDTO; import com.gkhy.safePlatform.emergency.query.EmergencyPlanQuery; import com.gkhy.safePlatform.emergency.service.EmergencyPlanService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; @RestController @RequestMapping("/emergencyPlan") public class EmergencyPlanController { @Autowired private EmergencyPlanService emergencyPlanService; /** * 应急预案列表 */ @RequestMapping(value = "/page/list" ,method = RequestMethod.POST) private ResultVO> list (@RequestBody PageQuery pageQuery){ PageUtils.checkCheck(pageQuery.getPageIndex(), pageQuery.getPageSize()); return emergencyPlanService.selectEmergencyPlanList(pageQuery); } }