|
|
@@ -2,8 +2,10 @@ package org.jeecg.modules.util;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import org.jeecg.common.utils.PayConst;
|
|
|
import org.jeecg.common.utils.PayRequest;
|
|
|
+import org.jeecg.modules.hlgaccount.entity.HlgAccount;
|
|
|
import org.jeecg.modules.hlgpayaccount.entity.HlgPayAccount;
|
|
|
import org.jeecg.modules.hlgpayaccount.entity.HlgPayRecord;
|
|
|
import org.jeecg.modules.hlgpayaccount.service.IHlgPayAccountService;
|
|
|
@@ -63,7 +65,7 @@ public class PayCommon {
|
|
|
JSONObject jsonObject2 = jsonArray.getJSONObject(i);
|
|
|
System.out.println("户口号========" + jsonObject2.get("eacnbr"));
|
|
|
System.out.println("账号========" + jsonObject2.get("actnbr"));
|
|
|
- HlgPayAccount hlgPayAccount = iHlgPayAccountService.saveAccout(jsonObject2);
|
|
|
+ HlgPayAccount hlgPayAccount = iHlgPayAccountService.saveAccout(jsonObject2, hlgSubcontractor.getId());
|
|
|
hlgPayAccountList.add(hlgPayAccount);
|
|
|
}
|
|
|
System.out.println("head========" + jsonObjectHead.getString("resultcode"));
|
|
|
@@ -85,7 +87,9 @@ public class PayCommon {
|
|
|
String funcode = PayConst.DCAGPCNV;
|
|
|
String eacnbr = "";
|
|
|
//获取支付账户信息
|
|
|
- List<HlgPayAccount> hlgPayAccoutList = iHlgPayAccountService.findAccountList();
|
|
|
+ QueryWrapper<HlgPayAccount> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("subcontractor_id",hlgSubcontractor.getId());
|
|
|
+ List<HlgPayAccount> hlgPayAccoutList = iHlgPayAccountService.list(queryWrapper);
|
|
|
if (hlgPayAccoutList != null && hlgPayAccoutList.size() > 0) {
|
|
|
eacnbr = hlgPayAccoutList.get(0).getEacnbr();
|
|
|
} else {
|
|
|
@@ -134,7 +138,9 @@ public class PayCommon {
|
|
|
String funcode = PayConst.DCAGPOPR;
|
|
|
String eacnbr = "";
|
|
|
//获取支付账户信息
|
|
|
- List<HlgPayAccount> hlgPayAccoutList = iHlgPayAccountService.findAccountList();
|
|
|
+ QueryWrapper<HlgPayAccount> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("subcontractor_id",hlgSubcontractor.getId());
|
|
|
+ List<HlgPayAccount> hlgPayAccoutList = iHlgPayAccountService.list(queryWrapper);
|
|
|
if (hlgPayAccoutList != null && hlgPayAccoutList.size() > 0) {
|
|
|
eacnbr = hlgPayAccoutList.get(0).getEacnbr();
|
|
|
} else {
|