|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.http.HttpEntity;
|
|
|
import org.springframework.http.HttpHeaders;
|
|
|
import org.springframework.http.MediaType;
|
|
@@ -44,7 +45,8 @@ public class PowersiMiPayPlugin {
|
|
|
private final IdCardAnalyzeService idCardAnalyzeService;
|
|
|
private final ThmzService thmzService;
|
|
|
|
|
|
- private static final String MZ_API_URL = "http://172.16.30.26:1100/mobilePayApi";
|
|
|
+ @Value("${hisMipUrl}")
|
|
|
+ private String hisMipUrl;
|
|
|
|
|
|
private final DataHandler dataHandler = DataHandler.newInstance();
|
|
|
|
|
@@ -112,7 +114,7 @@ public class PowersiMiPayPlugin {
|
|
|
if (billInfo.getVipFlag() == 1) {
|
|
|
continue;
|
|
|
}
|
|
|
- String url = MZ_API_URL + "/writeMtReceipt?hisOrdNum=" + billInfo.getBizId();
|
|
|
+ String url = hisMipUrl + "/writeMtReceipt?hisOrdNum=" + billInfo.getBizId();
|
|
|
String writeMtReceipt = new RestTemplate().getForObject(url, String.class);
|
|
|
if (Objects.equals(writeMtReceipt, "SUCCESS")) {
|
|
|
billInfo.setIdNo(request.getString("idNo"));
|
|
@@ -157,7 +159,7 @@ public class PowersiMiPayPlugin {
|
|
|
request.put("patNo", arr[0]);
|
|
|
request.put("times", Integer.parseInt(arr[1]));
|
|
|
|
|
|
- Upload6201 upload6201 = new RestTemplate().postForObject(MZ_API_URL + "/getUpload6201", request, Upload6201.class);
|
|
|
+ Upload6201 upload6201 = new RestTemplate().postForObject(hisMipUrl + "/getUpload6201", request, Upload6201.class);
|
|
|
if (null == upload6201) {
|
|
|
JSONObject res = new JSONObject();
|
|
|
res.put("code", -1);
|