| | |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.dao.business.dto.InsuranceApplyOptDTO; |
| | | import com.doumee.dao.business.dto.InsuranceApplyQueryDTO; |
| | | import com.doumee.dao.business.model.InsuranceApply; |
| | | import com.doumee.service.business.InsuranceApplyService; |
| | |
| | | return ApiResponse.success(insuranceApplyService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("列表") |
| | | @PostMapping("/findListByDTO") |
| | | @RequiresPermissions("business:insuranceapply:query") |
| | | public ApiResponse<List<InsuranceApply>> findListByDTO (@RequestBody InsuranceApplyQueryDTO insuranceApplyQueryDTO) { |
| | | return ApiResponse.success(insuranceApplyService.findListByDTO(insuranceApplyQueryDTO)); |
| | | } |
| | | |
| | | @ApiOperation("导出Excel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:insuranceapply:exportExcel") |
| | |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:insuranceapply:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(insuranceApplyService.findById(id)); |
| | | return ApiResponse.success(insuranceApplyService.findDetail(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("申请记录状态处理") |
| | | @PostMapping("/applyOpt") |
| | | public ApiResponse applyOpt (@RequestBody InsuranceApplyOptDTO insuranceApplyOptDTO) { |
| | | insuranceApplyService.applyOpt(insuranceApplyOptDTO); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | } |