|
@ -389,24 +389,28 @@ public class MedicineService {
|
|
|
jdbcTemplate.execute(sql);
|
|
|
List<YlzMedicalRecharge> chargeList = ylzMedicalRechargeDao.findByChargeResult("ing");
|
|
|
for (YlzMedicalRecharge tmp : chargeList) {
|
|
|
Map<String, String> param = new HashMap<>();
|
|
|
param.put("orgCode", tmp.getOrgCode());
|
|
|
param.put("equ_num", tmp.getEquNum());
|
|
|
param.put("tradeType", "hop.trade.recharge");
|
|
|
param.put("outTradeNo", tmp.getOutChargeNo());
|
|
|
JSONObject res = wlyyHttpService.sendWlyyMes("hlwyyQueryDetail_OUT", null, param);
|
|
|
if (res.getString("status").equalsIgnoreCase("200")) {//i健康返回值
|
|
|
JSONObject responseData = res.getJSONObject("data");
|
|
|
JSONObject queryDetailParam = responseData.getJSONObject("param");
|
|
|
String result = queryDetailParam.getString("result");
|
|
|
String resultName = queryDetailParam.getString("resultDesc");
|
|
|
if ("exp".equals(result)) {
|
|
|
|
|
|
} else {
|
|
|
if ("succ".equals(result)) {//交易成功 (微信/支付宝成功,HIS成功)
|
|
|
hlwyyRechargeNotify(tmp.getOutChargeNo());
|
|
|
try {
|
|
|
Map<String, String> param = new HashMap<>();
|
|
|
param.put("orgCode", tmp.getOrgCode());
|
|
|
param.put("equ_num", tmp.getEquNum());
|
|
|
param.put("tradeType", "hop.trade.recharge");
|
|
|
param.put("outTradeNo", tmp.getOutChargeNo());
|
|
|
JSONObject res = wlyyHttpService.sendWlyyMes("hlwyyQueryDetail_OUT", null, param);
|
|
|
if (res.getString("status").equalsIgnoreCase("200")) {//i健康返回值
|
|
|
JSONObject responseData = res.getJSONObject("data");
|
|
|
JSONObject queryDetailParam = responseData.getJSONObject("param");
|
|
|
String result = queryDetailParam.getString("result");
|
|
|
String resultName = queryDetailParam.getString("resultDesc");
|
|
|
if ("exp".equals(result)) {
|
|
|
|
|
|
} else {
|
|
|
if ("succ".equals(result)) {//交易成功 (微信/支付宝成功,HIS成功)
|
|
|
hlwyyRechargeNotify(tmp.getOutChargeNo());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
}
|