医保支付本地中转程序
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

package com.cmyy.localtransfer.controller;
import com.cmyy.localtransfer.dto.EcParam;
import com.cmyy.localtransfer.service.MedicalPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 描述:医保支付业务控制类
*
* @author stevenhu
* @version 2021/12/14 15:47
*/
@RestController
@RequestMapping("/medical")
public class MedicalPayController {
@Autowired
private MedicalPayService medicalPayService;
@GetMapping(value = "/ecquery")
public ResponseEntity getECInfo(){
return new ResponseEntity<>(medicalPayService.decodeEC(), HttpStatus.OK);
}
@GetMapping(value = "/ecquery")
public ResponseEntity getECInfo(EcParam param){
return new ResponseEntity<>(medicalPayService.decodeEC(param.getFixmedinsCode(), param.getOpter(), param.getOpterName()), HttpStatus.OK);
}
}