SecondFefundController.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package thyyxxk.webserver.controller.datamodify;
  2. import org.springframework.web.bind.annotation.GetMapping;
  3. import org.springframework.web.bind.annotation.RequestMapping;
  4. import org.springframework.web.bind.annotation.RequestParam;
  5. import org.springframework.web.bind.annotation.RestController;
  6. import thyyxxk.webserver.entity.ResultVo;
  7. import thyyxxk.webserver.entity.datamodify.MzChargeDetail;
  8. import thyyxxk.webserver.service.datamodify.SecondFefundService;
  9. /**
  10. * <p>
  11. * 描述: 二次退费
  12. * </p>
  13. *
  14. * @author xc
  15. * @date 2021-05-18 11:21
  16. */
  17. @RestController
  18. @RequestMapping("/secondFefund")
  19. public class SecondFefundController {
  20. private final SecondFefundService service;
  21. public SecondFefundController(SecondFefundService service) {
  22. this.service = service;
  23. }
  24. @GetMapping("/getOrderInformation")
  25. public ResultVo<MzChargeDetail> getOrderInformation(@RequestParam("patientId") String patientId,
  26. @RequestParam("times") Integer times,
  27. @RequestParam("chargeItemCode") String chargeItemCode) {
  28. return service.getOrderInformation(patientId, times, chargeItemCode);
  29. }
  30. @GetMapping("/xiuGaiTuiFei")
  31. public ResultVo<MzChargeDetail> xiuGaiTuiFei(@RequestParam("patientId") String patientId,
  32. @RequestParam("times") Integer times,
  33. @RequestParam("chargeItemCode") String chargeItemCode,
  34. @RequestParam("quantity") Integer quantity) {
  35. return service.xiuGaiTuiFei(patientId, times, chargeItemCode, quantity);
  36. }
  37. }