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); } }