|  | @@ -2,10 +2,11 @@ package com.usky.fire.controller.web;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import com.usky.common.core.bean.ApiResult;
 |  |  import com.usky.common.core.bean.ApiResult;
 | 
											
												
													
														|  | -import com.usky.common.core.bean.CommonPage;
 |  | 
 | 
											
												
													
														|  |  import com.usky.fire.domain.PatrolInspectionArea;
 |  |  import com.usky.fire.domain.PatrolInspectionArea;
 | 
											
												
													
														|  |  import com.usky.fire.service.PatrolInspectionAreaService;
 |  |  import com.usky.fire.service.PatrolInspectionAreaService;
 | 
											
												
													
														|  |  import com.usky.fire.service.vo.PatrolInspectionAreaVo;
 |  |  import com.usky.fire.service.vo.PatrolInspectionAreaVo;
 | 
											
												
													
														|  | 
 |  | +import com.usky.fire.controller.web.BaseController;
 | 
											
												
													
														|  | 
 |  | +import com.usky.fire.controller.web.page.TableDataInfo;
 | 
											
												
													
														|  |  import org.springframework.beans.factory.annotation.Autowired;
 |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  |  import org.springframework.web.bind.annotation.*;
 |  |  import org.springframework.web.bind.annotation.*;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -19,7 +20,7 @@ import java.util.List;
 | 
											
												
													
														|  |   */
 |  |   */
 | 
											
												
													
														|  |  @RestController
 |  |  @RestController
 | 
											
												
													
														|  |  @RequestMapping("/patrolInspectionArea")
 |  |  @RequestMapping("/patrolInspectionArea")
 | 
											
												
													
														|  | -public class PatrolInspectionAreaController {
 |  | 
 | 
											
												
													
														|  | 
 |  | +public class PatrolInspectionAreaController extends BaseController {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private PatrolInspectionAreaService patrolInspectionAreaService;
 |  |      private PatrolInspectionAreaService patrolInspectionAreaService;
 | 
											
										
											
												
													
														|  | @@ -70,10 +71,10 @@ public class PatrolInspectionAreaController {
 | 
											
												
													
														|  |       * @return
 |  |       * @return
 | 
											
												
													
														|  |       */
 |  |       */
 | 
											
												
													
														|  |      @GetMapping("patrolInspectionAreaList")
 |  |      @GetMapping("patrolInspectionAreaList")
 | 
											
												
													
														|  | -    public ApiResult<CommonPage<PatrolInspectionArea>> patrolInspectionAreaList(@RequestParam(value = "areaName", required = false) String areaName,
 |  | 
 | 
											
												
													
														|  | -                                                                                @RequestParam(value = "pageNum", required = false, defaultValue = "0") Integer pageNum,
 |  | 
 | 
											
												
													
														|  | -                                                                                @RequestParam(value = "pageSize", required = false, defaultValue = "10") Integer pageSize,
 |  | 
 | 
											
												
													
														|  | -                                                                                @RequestParam(value = "id", required = false, defaultValue = "0") Integer id) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +    public ApiResult< List<PatrolInspectionArea>> patrolInspectionAreaList(@RequestParam(value = "areaName", required = false) String areaName,
 | 
											
												
													
														|  | 
 |  | +                                                             @RequestParam(value = "pageNum", required = false, defaultValue = "0") Integer pageNum,
 | 
											
												
													
														|  | 
 |  | +                                                             @RequestParam(value = "pageSize", required = false, defaultValue = "10") Integer pageSize,
 | 
											
												
													
														|  | 
 |  | +                                                             @RequestParam(value = "id", required = false, defaultValue = "0") Integer id) {
 | 
											
												
													
														|  |          return ApiResult.success(patrolInspectionAreaService.patrolInspectionAreaList(id, areaName, pageNum, pageSize));
 |  |          return ApiResult.success(patrolInspectionAreaService.patrolInspectionAreaList(id, areaName, pageNum, pageSize));
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -88,5 +89,4 @@ public class PatrolInspectionAreaController {
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -}
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +}
 |