|
@@ -2,6 +2,7 @@ package thyyxxk.webserver.service.medicalinsurance;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
import thyyxxk.webserver.constants.MedicalInsuranceFunction;
|
|
@@ -17,6 +18,8 @@ import thyyxxk.webserver.utils.SiMsgIdUtil;
|
|
|
@Slf4j
|
|
|
@Service
|
|
|
public class MedicalInsuranceService {
|
|
|
+ @Value("si-api-url")
|
|
|
+ private String siApiUrl;
|
|
|
|
|
|
public ResultVo<JSONObject> obtainBasicPersonInfo(String socialNo, String name) {
|
|
|
JSONObject header = makeParamHeader(MedicalInsuranceFunction.OBTAIN_BASIC_PERSON_INFO);
|
|
@@ -30,6 +33,7 @@ public class MedicalInsuranceService {
|
|
|
param.put("psn_name", name);
|
|
|
header.getJSONObject("input").put("data", param);
|
|
|
RestTemplate template = new RestTemplate();
|
|
|
+ JSONObject result = template.postForObject(siApiUrl, param, JSONObject.class);
|
|
|
return null;
|
|
|
}
|
|
|
|