YbUtilController.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package thyyxxk.webserver.controller.ybkf;
  2. import org.springframework.beans.factory.annotation.Autowired;
  3. import org.springframework.validation.annotation.Validated;
  4. import org.springframework.web.bind.annotation.PostMapping;
  5. import org.springframework.web.bind.annotation.RequestBody;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RestController;
  8. import thyyxxk.webserver.entity.ResultVo;
  9. import thyyxxk.webserver.service.ybkf.YbUtilService;
  10. import java.util.List;
  11. import java.util.Map;
  12. /**
  13. * @ClassName YbUtilController
  14. * @Description 医保报表常用工具类
  15. * @Author hsh
  16. * @Date 2022/8/9 16:19
  17. **/
  18. @RestController
  19. @RequestMapping("/ybUtil")
  20. public class YbUtilController {
  21. private final YbUtilService service;
  22. @Autowired
  23. public YbUtilController(YbUtilService service) {
  24. this.service = service;
  25. }
  26. @PostMapping("/selectSmallDept")
  27. public ResultVo<List<Map<String, Object>>> selectSmallDept(@RequestBody @Validated Map<String, String> map){
  28. return service.selectSmallDept(map);
  29. }
  30. @PostMapping("/selectDoctor")
  31. public ResultVo<List<Map<String, Object>>> selectDoctor(@RequestBody @Validated Map<String, String> map){
  32. return service.selectDoctor(map);
  33. }
  34. @PostMapping("/selectAllSmallDept")
  35. public ResultVo<List<Map<String, Object>>> selectAllSmallDept(@RequestBody @Validated Map<String, String> map){
  36. return service.selectAllSmallDept(map);
  37. }
  38. @PostMapping("/selectAllDoctor")
  39. public ResultVo<List<Map<String, Object>>> selectAllDoctor(@RequestBody @Validated Map<String, String> map){
  40. return service.selectAllDoctor(map);
  41. }
  42. }