医保支付本地中转程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. package com.cmyy.localtransfer.controller;
  2. import com.cmyy.localtransfer.dto.EcParam;
  3. import com.cmyy.localtransfer.service.MedicalPayService;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.http.HttpStatus;
  6. import org.springframework.http.ResponseEntity;
  7. import org.springframework.web.bind.annotation.GetMapping;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.RestController;
  10. /**
  11. * 描述医保支付业务控制类
  12. *
  13. * @author stevenhu
  14. * @version 2021/12/14 15:47
  15. */
  16. @RestController
  17. @RequestMapping("/medical")
  18. public class MedicalPayController {
  19. @Autowired
  20. private MedicalPayService medicalPayService;
  21. @GetMapping(value = "/ecquery")
  22. public ResponseEntity getECInfo(){
  23. return new ResponseEntity<>(medicalPayService.decodeEC(), HttpStatus.OK);
  24. }
  25. @GetMapping(value = "/ecquery")
  26. public ResponseEntity getECInfo(EcParam param){
  27. return new ResponseEntity<>(medicalPayService.decodeEC(param.getFixmedinsCode(), param.getOpter(), param.getOpterName()), HttpStatus.OK);
  28. }
  29. }