Browse Source

预缴金查询修改。

bing 2 years ago
parent
commit
3540dd79ca

+ 2 - 1
svr/svr-internet-hospital-job/src/main/java/com/yihu/jw/job/YJJChargeResultOverTimeJob.java

@ -2,6 +2,7 @@ package com.yihu.jw.job;
import com.yihu.jw.service.channel.MedicineService;
import com.yihu.jw.util.DateUtil;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
@ -13,7 +14,7 @@ import org.springframework.jdbc.core.JdbcTemplate;
/**
 * 药柜预交金充值结果更新job
 */
@DisallowConcurrentExecution
public class YJJChargeResultOverTimeJob implements Job {
    private static final Logger logger = LoggerFactory.getLogger(YJJChargeResultOverTimeJob.class);

+ 14 - 8
svr/svr-internet-hospital-job/src/main/java/com/yihu/jw/service/channel/MedicineService.java

@ -29,6 +29,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import java.net.URLEncoder;
@ -403,17 +404,22 @@ public class MedicineService {
                } else {
                    if ("succ".equals(result)) {//交易成功 (微信/支付宝成功,HIS成功)
                        String url = "http://127.0.0.1:10020/baseOrder/open/hlwyyRechargeNotify";
                        List<NameValuePair> params = new ArrayList<>();
                        JSONObject paramTmp = new JSONObject();
                        paramTmp.put("outChargeNo",tmp.getOutChargeNo());
                        JSONObject paramTmpObj = new JSONObject();
                        paramTmpObj.put("param",paramTmp);
                        params.add(new BasicNameValuePair("responsStr",paramTmpObj.toJSONString()));
                        httpClientUtil.post(url, params, "UTF-8");
                        hlwyyRechargeNotify(tmp.getOutChargeNo());
                    }
                }
            }
        }
    }
    @Async
    public void hlwyyRechargeNotify(String outChargeNo){
        String url = "http://127.0.0.1:10020/baseOrder/open/hlwyyRechargeNotify";
        List<NameValuePair> params = new ArrayList<>();
        JSONObject paramTmp = new JSONObject();
        paramTmp.put("outChargeNo",outChargeNo);
        JSONObject paramTmpObj = new JSONObject();
        paramTmpObj.put("param",paramTmp);
        params.add(new BasicNameValuePair("responsStr",paramTmpObj.toJSONString()));
        httpClientUtil.post(url, params, "UTF-8");
    }
}