|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("启用禁用") | 
|---|
|  |  |  | @PostMapping("/updateStatus") | 
|---|
|  |  |  | @RequiresPermissions("business:insurance:update") | 
|---|
|  |  |  | public ApiResponse updateStatus(@RequestBody Insurance insurance) { | 
|---|
|  |  |  | insuranceService.updateStatus(insurance); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("分页查询") | 
|---|
|  |  |  | @PostMapping("/page") | 
|---|
|  |  |  | @RequiresPermissions("business:insurance:query") | 
|---|
|  |  |  | public ApiResponse<PageData<Insurance>> findPage (@RequestBody PageWrap<Insurance> pageWrap) { | 
|---|
|  |  |  | return ApiResponse.success(insuranceService.findPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("查询列表") | 
|---|
|  |  |  | @PostMapping("/list") | 
|---|
|  |  |  | @RequiresPermissions("business:insurance:query") | 
|---|
|  |  |  | public ApiResponse<List<Insurance>> findList (@RequestBody  Insurance pageWrap) { | 
|---|
|  |  |  | return ApiResponse.success(insuranceService.findList(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("导出Excel") | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiOperation("根据ID查询") | 
|---|
|  |  |  | @GetMapping("/{id}") | 
|---|
|  |  |  | @RequiresPermissions("business:insurance:query") | 
|---|
|  |  |  | public ApiResponse findById(@PathVariable Integer id) { | 
|---|
|  |  |  | return ApiResponse.success(insuranceService.findById(id)); | 
|---|
|  |  |  | public ApiResponse findById(@PathVariable Integer id,Integer type) { | 
|---|
|  |  |  | return ApiResponse.success(insuranceService.findByIdAndType(id,type)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|