|
@@ -133,7 +133,7 @@ public class NationalMatchService {
|
|
|
|
|
|
public ResultVo<String> executeMatch(StandardLocalItem param) {
|
|
|
String staffId = TokenUtil.getTokenUserId();
|
|
|
- String selfpayProp = queryPsnPayProp(param.getNationalCode());
|
|
|
+ String selfpayProp = queryPsnPayProp(param.getNationalCode(), false);
|
|
|
if (param.getType() < NationalMatchType.SERVICE) {
|
|
|
dao.matchMedicineAndHerbal(param.getCode(), staffId, param.getNationalCode(), param.getNationalName(), selfpayProp);
|
|
|
} else {
|
|
@@ -177,7 +177,7 @@ public class NationalMatchService {
|
|
|
return ResultVoUtil.success("修改成功。");
|
|
|
}
|
|
|
|
|
|
- public String queryPsnPayProp(String hilistCode) {
|
|
|
+ public String queryPsnPayProp(String hilistCode, boolean needUpdate) {
|
|
|
JSONObject input = exec.makeTradeHeader(SiFunction.DOWNLOAD_MEDICAL_INSURANCE_PAY_FIRST_CATALOGUE);
|
|
|
JSONObject data = new JSONObject();
|
|
|
data.put("hilist_code", hilistCode);
|
|
@@ -205,6 +205,9 @@ public class NationalMatchService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (needUpdate && null != psnPayProp) {
|
|
|
+ dao.matchMedicineSelfPayProp(hilistCode, psnPayProp);
|
|
|
+ }
|
|
|
return psnPayProp;
|
|
|
}
|
|
|
|