update:米东三方接口数据
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package com.saye.hospitalgd.scheduler.job;
|
||||
|
||||
import com.saye.hospitalgd.commons.string.StringDUtil;
|
||||
import com.saye.hospitalgd.scheduler.jobMethod.BankGetDataMethod;
|
||||
import com.saye.hospitalgd.scheduler.jobMethod.*;
|
||||
import com.saye.hospitalgd.service.ThirdFtpConfigService;
|
||||
import com.saye.hospitalgd.service.ThirdSftpConfigService;
|
||||
import org.quartz.Job;
|
||||
import org.quartz.JobDataMap;
|
||||
@@ -21,7 +22,7 @@ import java.util.List;
|
||||
public class BankGetData implements Job {
|
||||
|
||||
@Autowired
|
||||
private ThirdSftpConfigService thirdSftpConfigService;
|
||||
private ThirdFtpConfigService thirdFtpConfigService;
|
||||
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
@@ -34,41 +35,63 @@ public class BankGetData implements Job {
|
||||
|
||||
try {
|
||||
HashMap<Object, Object> searchMap = new HashMap<>();
|
||||
searchMap.put("FUBS", "1");
|
||||
// List<HashMap<Object, Object>> thirdFtpConfigList = thirdSftpConfigService.findThirdSftpConfigList(searchMap);
|
||||
List<HashMap<Object, Object>> wlConfigList = thirdSftpConfigService.findWLIF(searchMap);
|
||||
searchMap.put("is_active", "1");
|
||||
HashMap<Object, Object> wlifSearchMap = new HashMap<>();
|
||||
wlifSearchMap.put("FUBS", "1");
|
||||
List<HashMap<Object, Object>> thirdFtpConfigList = thirdFtpConfigService.findThirdFtpConfigList(searchMap);
|
||||
List<HashMap<Object, Object>> wlConfigList = thirdFtpConfigService.findWLIF(searchMap);
|
||||
|
||||
for (int i = 0; i < thirdFtpConfigList.size(); i++) {
|
||||
|
||||
|
||||
HashMap<Object, Object> hashMap = thirdFtpConfigList.get(i);
|
||||
String execute_class = StringDUtil.changeNullToEmpty(hashMap.get("EXECUTE_CLASS"));
|
||||
|
||||
|
||||
//商户对账单
|
||||
if ("BankGetDataBySH".equals(execute_class)){
|
||||
Thread thread = new Thread(() -> new BankGetDataBySH().getDate(id,name,trade_date,hashMap));
|
||||
thread.start();
|
||||
}
|
||||
|
||||
//商户POS对账单
|
||||
if ("BankGetDataBySHPOS".equals(execute_class)){
|
||||
Thread thread = new Thread(() -> new BankGetDataBySHPOS().getDate(id,name,trade_date,hashMap));
|
||||
thread.start();
|
||||
}
|
||||
|
||||
// 银行商户银行卡对账单
|
||||
if ("BankGetDataBySHYLK".equals(execute_class)) {
|
||||
Thread thread = new Thread(() -> new BankGetDataBySHYLK().getDate(id, name, trade_date, hashMap));
|
||||
thread.start();
|
||||
}
|
||||
|
||||
// 商户银联外卡对账单
|
||||
if ("BankGetDataBySHYLWK".equals(execute_class)) {
|
||||
Thread thread = new Thread(() -> new BankGetDataBySHYLWK().getDate(id, name, trade_date, hashMap));
|
||||
thread.start();
|
||||
}
|
||||
|
||||
// 微信账单
|
||||
if ("BankGetDataByWXAPI".equals(execute_class)) {
|
||||
Thread thread = new Thread(() -> new BankGetDataByWXAPI().getDate(id, name, trade_date, hashMap));
|
||||
thread.start();
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < wlConfigList.size(); i++) {
|
||||
|
||||
|
||||
HashMap<Object, Object> hashMap = wlConfigList.get(i);
|
||||
String execute_class = StringDUtil.changeNullToEmpty(hashMap.get("EXECUTE_CLASS"));
|
||||
|
||||
//商户pos通过对账
|
||||
if ("BankGetDataMethod".equals(execute_class)) {
|
||||
Thread thread = new Thread(() -> new BankGetDataMethod().getDate(id, name, trade_date, hashMap));
|
||||
//建行龙支付
|
||||
if ("BankGetDataMethodByJHLZF".equals(execute_class)) {
|
||||
Thread thread = new Thread(() -> new BankGetDataMethodByJHLZF().getDate(id, name, trade_date, hashMap));
|
||||
thread.start();
|
||||
}
|
||||
|
||||
// //商户对账单
|
||||
// if ("BankGetDataBySH".equals(execute_class)){
|
||||
// Thread thread = new Thread(() -> new BankGetDataBySH().getDate(id,name,trade_date,hashMap));
|
||||
// thread.start();
|
||||
// }
|
||||
//
|
||||
// //商户银行卡对账单
|
||||
// if ("BankGetDataBySHYLK".equals(execute_class)){
|
||||
// Thread thread = new Thread(() -> new BankGetDataBySHYLK().getDate(id,name,trade_date,hashMap));
|
||||
// thread.start();
|
||||
// }
|
||||
//
|
||||
// //商户营销联盟对账单
|
||||
// if ("BankGetDataBySHYXLM".equals(execute_class)){
|
||||
// Thread thread = new Thread(() -> new BankGetDataBySHYXLM().getDate(id,name,trade_date,hashMap));
|
||||
// thread.start();
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@@ -84,20 +107,35 @@ public class BankGetData implements Job {
|
||||
|
||||
String execute_class = StringDUtil.changeNullToEmpty(hashMap.get("EXECUTE_CLASS"));
|
||||
|
||||
//商户pos通过对账
|
||||
if ("BankGetDataMethod".equals(execute_class)) {
|
||||
return new BankGetDataMethod().getDate(id, name, trade_date, hashMap);
|
||||
//建行龙支付
|
||||
if ("BankGetDataMethodByJHLZF".equals(execute_class)) {
|
||||
return new BankGetDataMethodByJHLZF().getDate(id, name, trade_date, hashMap);
|
||||
}
|
||||
|
||||
// //商户对账单
|
||||
// if ("BankGetDataBySH".equals(execute_class)){
|
||||
// return new BankGetDataBySH().getDate(id,name,trade_date,hashMap);
|
||||
// }
|
||||
//
|
||||
// //商户银联卡对账单
|
||||
// if ("BankGetDataBySHYLK".equals(execute_class)){
|
||||
// return new BankGetDataBySHYLK().getDate(id,name,trade_date,hashMap);
|
||||
// }
|
||||
//商户对账单
|
||||
if ("BankGetDataBySH".equals(execute_class)){
|
||||
return new BankGetDataBySH().getDate(id,name,trade_date,hashMap);
|
||||
}
|
||||
|
||||
//商户POS对账单
|
||||
if ("BankGetDataBySHPOS".equals(execute_class)){
|
||||
return new BankGetDataBySHPOS().getDate(id,name,trade_date,hashMap);
|
||||
}
|
||||
|
||||
// 银行商户银联卡对账单
|
||||
if ("BankGetDataBySHYLK".equals(execute_class)) {
|
||||
return new BankGetDataBySHYLK().getDate(id, name, trade_date, hashMap);
|
||||
}
|
||||
|
||||
// 商户银联外卡对账单
|
||||
if ("BankGetDataBySHYLWK".equals(execute_class)) {
|
||||
return new BankGetDataBySHYLWK().getDate(id, name, trade_date, hashMap);
|
||||
}
|
||||
|
||||
// 微信账单
|
||||
if ("BankGetDataByWXAPI".equals(execute_class)) {
|
||||
return new BankGetDataByWXAPI().getDate(id, name, trade_date, hashMap);
|
||||
}
|
||||
//
|
||||
// //商户营销联盟对账单
|
||||
// if ("BankGetDataBySHYXLM".equals(execute_class)){
|
||||
|
||||
Reference in New Issue
Block a user