From 0766c42639d0e9b12d8dc2f93589b4713ced57a6 Mon Sep 17 00:00:00 2001
From: weicd <weicd@yhzhg.cn>
Date: Fri, 27 Dec 2024 07:19:36 +0000
Subject: [PATCH] 修改

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/rest/UserInsuranceController.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/rest/UserInsuranceController.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/rest/UserInsuranceController.java
index 966f9db..0a0aa8f 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/rest/UserInsuranceController.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/rest/UserInsuranceController.java
@@ -16,6 +16,7 @@
 package me.zhengjie.modules.treatment.rest;
 
 import me.zhengjie.annotation.Log;
+import me.zhengjie.modules.system.service.dto.SysUserLevelInsuranceQueryCriteria;
 import me.zhengjie.modules.treatment.domain.UserInsurance;
 import me.zhengjie.modules.treatment.service.UserInsuranceService;
 import me.zhengjie.modules.treatment.service.dto.UserInsuranceGenerateParam;
@@ -29,6 +30,7 @@
 import org.springframework.web.bind.annotation.*;
 import io.swagger.annotations.*;
 import java.io.IOException;
+import java.text.ParseException;
 import java.util.List;
 
 import javax.servlet.http.HttpServletResponse;
@@ -96,4 +98,12 @@
         userInsuranceService.deleteAll(ids);
         return new ResponseEntity<>(HttpStatus.OK);
     }
+
+    @GetMapping(value = "/targetYearMonth")
+    @Log("查询指定年月用户级别保险")
+    @ApiOperation("查询指定年月用户级别保险")
+    @PreAuthorize("@el.check('sysUserLevelInsurance:list')")
+    public ResponseEntity<Object> queryTargetYearMonth(UserInsuranceQueryCriteria criteria) throws ParseException {
+        return new ResponseEntity<>(userInsuranceService.queryTargetYearMonth(criteria),HttpStatus.OK);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3