|
|
@@ -3,6 +3,7 @@ package com.ydtech.modules.admin.controller;
|
|
|
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
|
import com.ydtech.exception.SystemException;
|
|
|
+import com.ydtech.modules.admin.model.dto.AllpremiumDto;
|
|
|
import com.ydtech.modules.admin.model.dto.EmployeeIncreaseReportAllDto;
|
|
|
import com.ydtech.modules.admin.model.dto.PremiumReportAllDto;
|
|
|
import com.ydtech.modules.admin.model.dto.RevenueReportAllDto;
|
|
|
@@ -13,10 +14,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@Api(tags = "app统计报表功能")
|
|
|
@RestController
|
|
|
@@ -88,4 +86,17 @@ public class AppReportController {
|
|
|
return HttpResult.error("查询失败"+e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取年度数据")
|
|
|
+ @GetMapping(value = "/getAllpremium")
|
|
|
+ public HttpResult<AllpremiumDto> getAllpremium(String year) {
|
|
|
+ if(StringUtils.isBlank(year)){
|
|
|
+ return HttpResult.error("年度year不能为空!!!");
|
|
|
+ }
|
|
|
+ try{
|
|
|
+ return HttpResult.ok(appReportService.getAllpremium(year));
|
|
|
+ }catch (Exception e){
|
|
|
+ return HttpResult.error("查询失败"+e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|