From 4001e7479d33cd3fa5a8e00d07ae191ee95c5793 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期三, 03 四月 2024 19:02:07 +0800 Subject: [PATCH] git ch --- server/shop/src/main/java/com/doumee/api/business/ApplyChangeController.java | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/server/shop/src/main/java/com/doumee/api/business/ApplyChangeController.java b/server/shop/src/main/java/com/doumee/api/business/ApplyChangeController.java index 9bf62a2..12b3293 100644 --- a/server/shop/src/main/java/com/doumee/api/business/ApplyChangeController.java +++ b/server/shop/src/main/java/com/doumee/api/business/ApplyChangeController.java @@ -6,7 +6,9 @@ import com.doumee.core.model.ApiResponse; import com.doumee.core.model.PageData; import com.doumee.core.model.PageWrap; +import com.doumee.dao.business.dto.ApplyChangeOptDTO; import com.doumee.dao.business.model.ApplyChange; +import com.doumee.dao.business.model.InsuranceApply; import com.doumee.service.business.ApplyChangeService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -113,6 +115,14 @@ return ApiResponse.success(applyChangeService.findPageForCompany(pageWrap)); } + @ApiOperation("鍒楄〃鏌ヨ") + @PostMapping("/list") + @RequiresPermissions("business:applychange:query") + public ApiResponse<List<ApplyChange>> list (@RequestBody ApplyChange applyChange) { + return ApiResponse.success(applyChangeService.findListForCompany(applyChange)); + } + + @ApiOperation("瀵煎嚭Excel") @PostMapping("/exportExcel") @RequiresPermissions("business:applychange:exportExcel") @@ -140,4 +150,23 @@ public ApiResponse<ApplyChange> findById(@PathVariable Integer id) { return ApiResponse.success(applyChangeService.findDetail(id)); } + + + @ApiOperation("鍟嗘埛瀹℃牳 - 濮旀墭淇濅笟鍔�") + @PostMapping("/check") + @RequiresPermissions("business:applychange:check") + public ApiResponse check(@RequestBody ApplyChange model) { + return ApiResponse.success(applyChangeService.check(model)); + } + + + + @ApiOperation(value = "涓氬姟澶勭悊",notes = "閫�鍥炵敵璇凤紝鍏抽棴绛�") + @PostMapping("/applyChangeOpt") + public ApiResponse applyChangeOpt (@RequestBody ApplyChangeOptDTO applyChangeOptDTO) { + applyChangeService.changeOpt(applyChangeOptDTO); + return ApiResponse.success("鎿嶄綔鎴愬姛"); + } + + } -- Gitblit v1.9.3