|
@@ -2,24 +2,37 @@ package cn.cslg.pas.controller;
|
|
|
|
|
|
|
|
|
import cn.cslg.pas.common.core.base.Constants;
|
|
|
+import cn.cslg.pas.common.dto.business.EsCountDTO;
|
|
|
+import cn.cslg.pas.common.dto.business.ReportTempleDTO;
|
|
|
+import cn.cslg.pas.common.utils.Response;
|
|
|
+import cn.cslg.pas.common.vo.business.EsCountVO;
|
|
|
+import cn.cslg.pas.common.vo.business.TempleByReportTypeVO;
|
|
|
+import cn.cslg.pas.service.business.TempleService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
import java.util.LinkedHashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@Tag(name = "报告模板")
|
|
|
@RestController
|
|
|
@RequestMapping(Constants.API_XiaoSHI + "/template")
|
|
|
-@RequiredArgsConstructor(onConstructor_ = {@Lazy})
|
|
|
-@SuppressWarnings({"all"})
|
|
|
public class TempleController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TempleService templeService;
|
|
|
+
|
|
|
+ @Operation(summary = "根据报告类型查询报告模板表")
|
|
|
+ @PostMapping("/queryTempleByType")
|
|
|
+ public Response queryTempleByType(@RequestBody TempleByReportTypeVO vo) {
|
|
|
+ List<ReportTempleDTO> list = templeService.queryTempleByType(vo);
|
|
|
+ return Response.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
}
|