weicd
2023-12-20 4e7355035b4b43860f4a664db1b622affb1375a1
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);
    }
}