From ca019747743a76f9348fcac99385c91736a36638 Mon Sep 17 00:00:00 2001
From: shiyunteng <shiyunteng@example.com>
Date: 星期四, 17 九月 2026 16:44:15 +0800
Subject: [PATCH] feat:标的物变更 合同审核流程改为推送合同中心通过后上传盖章签字件 履约进度新增合同补录按钮
---
platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/service/impl/BankStatementServiceImpl.java | 61 +++++++++++++++---------------
1 files changed, 30 insertions(+), 31 deletions(-)
diff --git a/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/service/impl/BankStatementServiceImpl.java b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/service/impl/BankStatementServiceImpl.java
index 91a2cb4..a6f7d64 100644
--- a/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/service/impl/BankStatementServiceImpl.java
+++ b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/service/impl/BankStatementServiceImpl.java
@@ -22,6 +22,7 @@
import com.by4cloud.platformx.business.mapper.*;
import com.by4cloud.platformx.business.service.BankStatementService;
import com.by4cloud.platformx.business.service.PaymentConfirmService;
+import com.by4cloud.platformx.business.vo.CustInfoVo;
import com.by4cloud.platformx.business.vo.ReceiveBipVo;
import com.by4cloud.platformx.business.vo.ReceiveItemVo;
import com.by4cloud.platformx.business.vo.StatementContractVo;
@@ -120,16 +121,7 @@
pushCollectionSgb(statement, updateDTO.getContractCollectionList());
}
-// //鍒ゆ柇鏄惁鍐呴儴鍗曚綅
-// CustInfoVo custInfoVo = bipViewMapper.selectBaseInfoByCustName(statement.getPayBankAccName());
-// if (ObjUtil.isNull(custInfoVo)){
-// return R.ok();
-// }
-// //bip鎺ㄩ��
-// if (bipFlag&&custInfoVo.getCustCode().equals("01")) {
-// return pushSaveCollection(statement, updateDTO.getContractCollectionList());
-// }
-// log.info("鍐呴儴寰�鏉ユ敹娆惧崟锛屽鎴峰悕绉帮細{},瀹㈡埛绫诲瀷锛歿},涓嶇敤淇濆瓨鏀舵鍗�",custInfoVo.getCustName(),custInfoVo.getCustclass());
+
return R.ok();
}
@@ -140,30 +132,29 @@
// HttpResponse resp = HttpUtil.createPost(sgbErp + "/apilink/arclose/create?corpsecret=12345678&appserver=appserver1&accountid=888&tradeid="
// + IdUtil.fastUUID())
-// .header("Content-Type","application/x-www-form-urlencoded")
-// .body(URLEncodeUtil.encode(request.toJSONString(), StandardCharsets.UTF_8))
+// .form("",request.toJSONString())
// .timeout(30000)
// // 鎸囧畾缂栫爜鏍煎紡
// .charset(StandardCharsets.UTF_8)
// .execute();
- log.info("宸ヤ笟娉垫敹娆惧叆鍙�:{}", "=" +request.toJSONString());
- OkHttpClient client = new OkHttpClient().newBuilder()
- .build();
- MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
- RequestBody body = RequestBody.create(mediaType, "=" + request.toJSONString());
- Request req = new Request.Builder()
- .url(sgbErp + "/apilink/arclose/create?corpsecret=12345678&appserver=appserver1&accountid=888&tradeid=" + IdUtil.fastUUID())
- .method("POST", body)
- .addHeader("Content-Type", "application/x-www-form-urlencoded")
- .build();
- String result = "";
- try (Response response = client.newCall(req).execute()){
- if (response.isSuccessful()) {
- // 浠呰皟鐢ㄤ竴娆tring()锛岀粨鏋滃瓨鍏ュ彉閲忓鐢紝鍚庣画鎵�鏈夐�昏緫鐩存帴璇诲彇璇ュ彉閲�
- result = response.body().string();
- // 涓氬姟閫昏緫鐩存帴浣跨敤result锛岀姝㈠啀娆¤皟鐢╮esponse.body().string()
- }
+ log.info("宸ヤ笟娉垫敹娆惧叆鍙�:{}", "=" + request.toJSONString());
+ OkHttpClient client = new OkHttpClient().newBuilder()
+ .build();
+ MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
+ RequestBody body = RequestBody.create(mediaType, "=" + request.toJSONString());
+ Request req = new Request.Builder()
+ .url(sgbErp + "/apilink/arclose/create?corpsecret=12345678&appserver=appserver1&accountid=888&tradeid=" + IdUtil.fastUUID())
+ .method("POST", body)
+ .addHeader("Content-Type", "application/x-www-form-urlencoded")
+ .build();
+ String result = "";
+ try (Response response = client.newCall(req).execute()) {
+ if (response.isSuccessful()) {
+ // 浠呰皟鐢ㄤ竴娆tring()锛岀粨鏋滃瓨鍏ュ彉閲忓鐢紝鍚庣画鎵�鏈夐�昏緫鐩存帴璇诲彇璇ュ彉閲�
+ result = response.body().string();
+ // 涓氬姟閫昏緫鐩存帴浣跨敤result锛岀姝㈠啀娆¤皟鐢╮esponse.body().string()
+ }
log.info("宸ヤ笟娉垫敹娆惧洖鍙傦細{}", result);
saveErpRequestRecord("sgb", "/apilink/arclose/create", request.toJSONString(), result);
JSONObject respJson = JSONObject.parseObject(result);
@@ -205,7 +196,7 @@
djt.put("cBankAccount", statement.getReceiveBankAccAcc());//鏈柟閾惰璐﹀彿
djt.put("cBank", statement.getPayBankAccName());//鏈柟閾惰璐﹀彿
djt.put("cContractType", "161");
- if (CollUtil.size(contractCollectionList)==1) {
+ if (CollUtil.size(contractCollectionList) == 1) {
Contract contractHeader = contractMapper.selectById(contractCollectionList.get(0).getId());
djt.put("cContractID", contractHeader.getErpContractNo());
}
@@ -221,7 +212,7 @@
djti.put("cPersonCode", "00164");//涓氬姟鍛樼紪鐮�
djti.put("cConID", contract.getErpContractNo());//鍚堝悓缂栫爜
djti.put("娆鹃」绫诲瀷", "搴旀敹娆�");
- djti.put("cConType","闀囨睙甯�");
+ djti.put("cConType", "闀囨睙甯�");
array.add(djti);
});
@@ -660,6 +651,14 @@
item.setBipParam(updateDTO.getBipParam());
bankStatementItemMapper.updateById(item);
BankStatement statement = baseMapper.selectById(item.getStatetId());
+
+ //鍒ゆ柇鏄惁鍐呴儴鍗曚綅
+ CustInfoVo custInfoVo = bipViewMapper.selectBaseInfoByCustName(statement.getPayBankAccName());
+ if (ObjUtil.isNotNull(custInfoVo) && custInfoVo.getCustCode().equals("01")) {
+ log.info("鍐呴儴寰�鏉ユ敹娆惧崟锛屽鎴峰悕绉帮細{},瀹㈡埛绫诲瀷锛歿},涓嶇敤淇濆瓨鏀舵鍗�", custInfoVo.getCustName(), custInfoVo.getCustclass());
+ return R.failed("鍐呴儴寰�鏉ユ敹娆惧崟,涓嶇敤鎺ㄩ�丅IP");
+ }
+
return pushSaveCollection(statement, item);
}
}
\ No newline at end of file
--
Gitblit v1.9.1