| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package cn.com.goldenwater.dcproj.controller.anze;
- import cn.com.goldenwater.core.web.BaseController;
- import cn.com.goldenwater.core.web.BaseResponse;
- import cn.com.goldenwater.dcproj.service.BisInspAnzeStaticsService;
- import cn.com.goldenwater.dcproj.utils.DateUtils;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import io.swagger.annotations.ApiParam;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.Date;
- import java.util.List;
- import java.util.Map;
- import java.util.Optional;
- /**
- * @author lql
- * @date 2026-4-21
- */
- @Api(value = "安责险管理", tags = "安责险管理")
- @RestController
- @RequestMapping("/bis/insp")
- public class BisInspAnzeStaticsController extends BaseController {
- private Logger logger = LoggerFactory.getLogger(getClass());
- @Autowired
- private BisInspAnzeStaticsService anzeStaticsService;
- @ApiOperation(value = "安责险统计")
- @GetMapping("/anze/statistics/insurer/underwritingCount")
- public BaseResponse<List<Map<String, Object>>> insurerUnderwritingCount(@ApiParam(name = "year", value = "year", required = true) Integer year) {
- Integer y = Optional.ofNullable(year).orElse(Integer.parseInt(DateUtils.Date2Str(new Date(), "yyyy")));
- return buildSuccessResponse(anzeStaticsService.insurerUnderwritingCount(y));
- }
- @ApiOperation(value = "根据ID获取安责险(单表)")
- @GetMapping("/anze/statistics/completion")
- public BaseResponse<List<Map<String, Object>>> anzeCompletion(@ApiParam(name = "year", value = "year", required = true) Integer year) {
- Integer y = Optional.ofNullable(year).orElse(Integer.parseInt(DateUtils.Date2Str(new Date(), "yyyy")));
- return buildSuccessResponse(anzeStaticsService.anzeCompletion(y));
- }
- @ApiOperation(value = "根据ID获取安责险(单表)")
- @GetMapping("/sixme/statistics/completion")
- public BaseResponse<List<Map<String, Object>>> sixmeCompletion(@ApiParam(name = "year", value = "year", required = true) Integer year) {
- Integer y = Optional.ofNullable(year).orElse(Integer.parseInt(DateUtils.Date2Str(new Date(), "yyyy")));
- return buildSuccessResponse(anzeStaticsService.sixmeCompletion(y));
- }
- }
|