MarkMtFeesController.java 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package thyyxxk.webserver.controller.markmtfees;
  2. import org.springframework.beans.factory.annotation.Autowired;
  3. import org.springframework.validation.annotation.Validated;
  4. import org.springframework.web.bind.annotation.*;
  5. import thyyxxk.webserver.config.auth.PassToken;
  6. import thyyxxk.webserver.pojo.ResultVo;
  7. import thyyxxk.webserver.pojo.markmtfees.*;
  8. import thyyxxk.webserver.service.markmtfees.MarkMtFeesService;
  9. import java.util.List;
  10. import java.util.Map;
  11. @RestController
  12. @RequestMapping("/markMtFees")
  13. public class MarkMtFeesController {
  14. private final MarkMtFeesService service;
  15. @Autowired
  16. public MarkMtFeesController(MarkMtFeesService service) {
  17. this.service = service;
  18. }
  19. @PostMapping("/queryMtPersonInfo")
  20. public ResultVo<Map<String, Object>> queryMtPersonInfo(@RequestBody QueryMtInfoParam param) {
  21. return service.queryMtPersonInfo(param);
  22. }
  23. @PostMapping("/confirmCssybMtApplyInfo")
  24. public ResultVo<String> confirmCssybMtApplyInfo(@RequestBody CssybApplyInfo param) {
  25. return service.confirmCssybMtApplyInfo(param);
  26. }
  27. @GetMapping("/getMtReceipts")
  28. public ResultVo<Map<String, Object>> getMtReceipts(@RequestParam("patientId") String patientId,
  29. @RequestParam("times") Integer times) {
  30. return service.getMtReceipts(patientId, times);
  31. }
  32. @PostMapping("/insertMtFees")
  33. public ResultVo<String> insertMtFees(@Validated @RequestBody MarkMtFeeParam param) {
  34. return service.insertMtFees(param);
  35. }
  36. @PostMapping("/deleteMtFees")
  37. public ResultVo<String> deleteMtFees(@RequestBody OrderNo param) {
  38. return service.deleteMtFees(param);
  39. }
  40. @GetMapping("/cssybMtPreCal")
  41. public ResultVo<Object> cssybMtPreCal(@RequestParam("patientId") String patientId,
  42. @RequestParam("times") Integer times) {
  43. return service.cssybMtPreCal(patientId, times);
  44. }
  45. @PassToken
  46. @PostMapping("/uploadFees")
  47. public Map<String, Object> uploadMtFees(@RequestBody UploadMtFeeParam param) {
  48. return service.uploadMtFees(param);
  49. }
  50. @PassToken
  51. @PostMapping("/retractFees")
  52. public Map<String, Object> retractMtFees(@RequestBody UploadMtFeeParam param) {
  53. return service.retractMtFees(param);
  54. }
  55. @PassToken
  56. @PostMapping("/calculateCost")
  57. public Map<String, Object> calculateMtFees(@RequestBody UploadMtFeeParam param) {
  58. return service.calculateMtFees(param);
  59. }
  60. }