TempleController.java 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. package cn.cslg.pas.controller;
  2. import cn.cslg.pas.common.core.base.Constants;
  3. import cn.cslg.pas.common.dto.business.ReportTempleDTO;
  4. import cn.cslg.pas.common.utils.Response;
  5. import cn.cslg.pas.common.vo.business.TempleByReportTypeVO;
  6. import cn.cslg.pas.service.business.ReportTempleService;
  7. import io.swagger.v3.oas.annotations.Operation;
  8. import io.swagger.v3.oas.annotations.tags.Tag;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.*;
  11. import java.util.List;
  12. @Tag(name = "报告模板")
  13. @RestController
  14. @RequestMapping(Constants.API_XiaoSHI + "/template")
  15. public class TempleController {
  16. @Autowired
  17. private ReportTempleService templeService;
  18. @Operation(summary = "根据报告类型查询报告模板表")
  19. @PostMapping("/queryTempleByType")
  20. public Response queryTempleByType(@RequestBody TempleByReportTypeVO vo) {
  21. List<ReportTempleDTO> list = templeService.queryTempleByType(vo);
  22. return Response.success(list);
  23. }
  24. }