PayMzFeeController.java 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package thyyxxk.wxservice_server.controller;
  2. import org.springframework.beans.factory.annotation.Autowired;
  3. import org.springframework.web.bind.annotation.*;
  4. import thyyxxk.wxservice_server.constant.medins.FundDetail;
  5. import thyyxxk.wxservice_server.entity.ResultVo;
  6. import thyyxxk.wxservice_server.entity.paymzfee.MedinsPresettle;
  7. import thyyxxk.wxservice_server.service.PayMzFeeService;
  8. import java.util.List;
  9. import java.util.Map;
  10. /**
  11. * @author dj
  12. */
  13. @RestController
  14. @RequestMapping("/payMzFee")
  15. public class PayMzFeeController {
  16. private final PayMzFeeService service;
  17. @Autowired
  18. public PayMzFeeController(PayMzFeeService service) {
  19. this.service = service;
  20. }
  21. @GetMapping("/getUnPaidFee")
  22. public ResultVo<List<Map<String, Object>>> getUnPaidFee(@RequestParam("patientId") String patientId) {
  23. return service.getUnPaidFee(patientId);
  24. }
  25. @GetMapping("/getUnPaidDetail")
  26. public ResultVo<List<Map<String, Object>>> getUnPaidDetail(@RequestParam("patientId") String patientId,
  27. @RequestParam("hisOrdNum") String hisOrdNum) {
  28. return service.getUnPaidDetail(patientId, hisOrdNum);
  29. }
  30. @GetMapping("/getMzPaidList")
  31. public ResultVo<List<Map<String, String>>> getMzPaidList(@RequestParam("patientId") String patientId) {
  32. return service.getMzPaidList(patientId);
  33. }
  34. @GetMapping("/getUnsettledMdtrtId")
  35. public ResultVo<String> getUnsettledMdtrtId(@RequestParam("hisOrdNum") String hisOrdNum) {
  36. return service.getUnsettledMdtrtId(hisOrdNum);
  37. }
  38. @GetMapping("/getUnsettledMedinsTrade")
  39. public ResultVo<MedinsPresettle> getUnsettledMedinsTrade(@RequestParam("mdtrtId") String mdtrtId) {
  40. return service.getUnsettledMedinsTrade(mdtrtId);
  41. }
  42. @PostMapping("/medinsSettle")
  43. public ResultVo<FundDetail> medinsSettle(@RequestBody MedinsPresettle presettle) {
  44. return service.medinsSettle(presettle);
  45. }
  46. @GetMapping("/getMzPaidDetail")
  47. public ResultVo<List<Map<String, Object>>> getMzPaidDetail(@RequestParam("hisOrdNum") String hisOrdNum) {
  48. return service.getMzPaidDetail(hisOrdNum);
  49. }
  50. }