Commit 86b10d19 authored by 5359's avatar 5359

测试环境文件提交

parent 33d1d35b
...@@ -792,6 +792,9 @@ public class OrganSignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHc ...@@ -792,6 +792,9 @@ public class OrganSignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHc
headInfo.put("x-timevale-project-id", projectId); headInfo.put("x-timevale-project-id", projectId);
headInfo.put("x-timevale-signature", EncryptedString); headInfo.put("x-timevale-signature", EncryptedString);
System.out.println(projectId);
System.out.println(EncryptedString);
try { try {
//初始化接口信息 //初始化接口信息
String url = iSignInfoHclcService.getApiUrl(signatureSysName, bindApiName); String url = iSignInfoHclcService.getApiUrl(signatureSysName, bindApiName);
......
...@@ -1184,10 +1184,14 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i ...@@ -1184,10 +1184,14 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
for (int i = 0; i < signers.size(); i++) { for (int i = 0; i < signers.size(); i++) {
JSONObject json1 = signers.getJSONObject(i); JSONObject json1 = signers.getJSONObject(i);
String idNo = json1.getString("idNo"); String idNo = json1.getString("idNo");
String agentIdNo = json1.getString("agentIdNo"); String agentIdNo = null;
String name = json1.getString("name"); String name = json1.getString("name");
String role = json1.getString("role"); String role = json1.getString("role");
//获取需要发送微信通知的签署人
if (!"HCLC".equalsIgnoreCase(role) && !"AGENT".equalsIgnoreCase(role)) {
json1.getString("agentIdNo");
}
// if ("HCLC".equalsIgnoreCase(role)) { // if ("HCLC".equalsIgnoreCase(role)) {
// //
// SignUserInfoHclc signInfoHclc = new SignUserInfoHclc(); // SignUserInfoHclc signInfoHclc = new SignUserInfoHclc();
...@@ -1295,13 +1299,12 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i ...@@ -1295,13 +1299,12 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
//微信电子签约通知模板 //微信电子签约通知模板
JSONObject wxParams = new JSONObject(); JSONObject wxParams = new JSONObject();
wxParams = params.getJSONObject("attachments");
wxParams.put("templateId", "lyMDp1r6Jp5r7eSiho0otSby4tY0pXjZg1gbcA1poNI"); wxParams.put("templateId", "lyMDp1r6Jp5r7eSiho0otSby4tY0pXjZg1gbcA1poNI");
wxParams.put("first", "您好,您申请的融资租赁合同已经通过审核,可以进行签约流程!"); wxParams.put("first", "您好,您申请的融资租赁合同已经通过审核,可以进行签约流程!");
wxParams.put("keyword1", "承租人:"); wxParams.put("keyword1", "承租人:" + params.getString("customername"));
wxParams.put("keyword2", "合同号:"); wxParams.put("keyword2", "合同号:" + params.getString("contractno"));
wxParams.put("keyword3", "机号:"); wxParams.put("keyword3", "机号:" + params.getString("serialno"));
wxParams.put("keyword4", "签约时间:"); wxParams.put("keyword4", "签约时间:" + params.getString("leasebgndt"));
wxParams.put("remark", "请点击互动中心-融资租赁进行签约。谢谢!"); wxParams.put("remark", "请点击互动中心-融资租赁进行签约。谢谢!");
wxParams.put("url", ""); wxParams.put("url", "");
...@@ -1397,7 +1400,6 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i ...@@ -1397,7 +1400,6 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
signUrl.remove("accountName"); signUrl.remove("accountName");
} }
}
//发送微信通知 //发送微信通知
if (Objects.nonNull(wxOpenIds) && wxOpenIds.size() > 0) { if (Objects.nonNull(wxOpenIds) && wxOpenIds.size() > 0) {
...@@ -1406,6 +1408,8 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i ...@@ -1406,6 +1408,8 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
sendWxTemplateMsg(wxParams); sendWxTemplateMsg(wxParams);
} }
} }
}
} catch (Exception e) { } catch (Exception e) {
logger.error("create sign flows failed, msg:{}", e.getMessage()); logger.error("create sign flows failed, msg:{}", e.getMessage());
......
...@@ -113,7 +113,7 @@ thread.taskSize = 5 ...@@ -113,7 +113,7 @@ thread.taskSize = 5
tsign.project.id=1000029 tsign.project.id=1000029
tsign.project.secret=2e66a86bbc6fa9000d4a5f272cbc70e1 tsign.project.secret=2e66a86bbc6fa9000d4a5f272cbc70e1
#e签宝地址 #e签宝地址
tsign.api.url=http://139.196.17.22:8035 tsign.api.url=http://tsign-test.hitachics.com
#用户认证地址 #用户认证地址
tsign.face.api.url=https://smlopenapi.esign.cn tsign.face.api.url=https://smlopenapi.esign.cn
#用户认证用户 #用户认证用户
......
...@@ -113,7 +113,7 @@ thread.taskSize = 5 ...@@ -113,7 +113,7 @@ thread.taskSize = 5
tsign.project.id=1000029 tsign.project.id=1000029
tsign.project.secret=2e66a86bbc6fa9000d4a5f272cbc70e1 tsign.project.secret=2e66a86bbc6fa9000d4a5f272cbc70e1
#e签宝地址 #e签宝地址
tsign.api.url=http://139.196.17.22:8035 tsign.api.url=http://tsign-test.hitachics.com
#用户认证地址 #用户认证地址
tsign.face.api.url=https://smlopenapi.esign.cn tsign.face.api.url=https://smlopenapi.esign.cn
#用户认证用户 #用户认证用户
......
...@@ -113,7 +113,7 @@ thread.taskSize = 5 ...@@ -113,7 +113,7 @@ thread.taskSize = 5
tsign.project.id=1000029 tsign.project.id=1000029
tsign.project.secret=2e66a86bbc6fa9000d4a5f272cbc70e1 tsign.project.secret=2e66a86bbc6fa9000d4a5f272cbc70e1
#e签宝地址 #e签宝地址
tsign.api.url=http://139.196.17.22:8035 tsign.api.url=http://tsign-test.hitachics.com
#用户认证地址 #用户认证地址
tsign.face.api.url=https://smlopenapi.esign.cn tsign.face.api.url=https://smlopenapi.esign.cn
#用户认证用户 #用户认证用户
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment