Commit f95ec0e0 authored by 5359's avatar 5359

正式环境参数修改

parent cb89ef30
Pipeline #6040 canceled with stages
......@@ -1121,25 +1121,36 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
//解析签署人信息集合,替换用户信息为accountId
JSONArray signers = params.getJSONArray("signers");
JSONArray signersNew = new JSONArray();
// String initiatorAccountId = "";
String initiatorAccountId = "";
//获取发起人信息
SignUserInfoHclc signInfo = new SignUserInfoHclc();
signInfo.setOpenId("1");
signInfo = signInfoHclcMapper.selectByPrimaryKey(signInfo);
initiatorAccountId = signInfo.getAccountId();
for (int i = 0; i < signers.size(); i++) {
JSONObject json1 = signers.getJSONObject(i);
String idNo = json1.getString("idNo");
String name = json1.getString("name");
String role = json1.getString("role");
if ("HCLC".equalsIgnoreCase(role)) {
json1.put("accountId", "ab0cb1dc-8924-11ea-b71a-ec0d9ad45bf8");
json1.put("authorizationOrganizeId", "cab73322-8924-11ea-b71a-ec0d9ad45bf8");
} else {
// if ("HCLC".equalsIgnoreCase(role)) {
//
// SignUserInfoHclc signInfoHclc = new SignUserInfoHclc();
// signInfoHclc.setOpenId("1");
// signInfoHclc = signInfoHclcMapper.selectByPrimaryKey(signInfoHclc);
//
// json1.put("accountId", signInfoHclc.getAgentAccountId());
// json1.put("authorizationOrganizeId", signInfoHclc.getAccountId());
// } else {
SignUserInfoHclc signInfoHclc = new SignUserInfoHclc();
signInfoHclc.setAuthFlag("Y");
signInfoHclc.setName(name);
//代理店匹配用户名称
if (Objects.nonNull(idNo)) {
if (Objects.nonNull(idNo) && !"".equalsIgnoreCase(idNo)) {
signInfoHclc.setIdNo(idNo);
}
......@@ -1151,7 +1162,9 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
return jsonResult;
} else {
signInfoHclc = signInfoHclcs.get(0);
if (!"HCLC".equalsIgnoreCase(role)) {
json1.put("contactMobile", signInfoHclc.getMobile());
}
//用户类型是个人时
if (signInfoHclc.getCtitype().compareTo(1L) == 0) {
json1.put("accountId", signInfoHclc.getAccountId());
......@@ -1212,7 +1225,7 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
//
// }
}
// }
json1.put("accountType", "2");
......@@ -1236,7 +1249,7 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
// //抄送人信息集合签署成功后通知抄送人
// result.put("copyViewers", params.get("copyViewers"));
//发起人用户id,默认hclc发起
result.put("initiatorAccountId", "cab73322-8924-11ea-b71a-ec0d9ad45bf8");
result.put("initiatorAccountId", initiatorAccountId);
//签署完成重定向地址
result.put("redirectUrl", signRedirectUrl);
//流程文档信息集合
......@@ -1298,9 +1311,9 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
JSONObject signUrl = signUrls.getJSONObject(i);
//建机自己
if ("ab0cb1dc-8924-11ea-b71a-ec0d9ad45bf8".equalsIgnoreCase(signUrl.getString("accountId"))) {
signUrl.put("name", "日立建机");
} else {
// if ("ab0cb1dc-8924-11ea-b71a-ec0d9ad45bf8".equalsIgnoreCase(signUrl.getString("accountId"))) {
// signUrl.put("name", "日立建机");
// } else {
//根据uniqueId获取用户信息
SignUserInfoHclc signInfoHclc = new SignUserInfoHclc();
signInfoHclc.setOpenId(signUrl.getString("uniqueId"));
......@@ -1308,7 +1321,7 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
signUrl.put("idNo", signInfoHclc.getIdNo());
signUrl.put("name", signInfoHclc.getName());
}
// }
signUrl.remove("accountId");
......@@ -1365,16 +1378,16 @@ public class SignInfoHclcServiceImpl extends BaseServiceImpl<SignUserInfoHclc> i
signUserInfoHclc.setAccountId(accountInfo.getString("authOrgId"));
}
JSONObject accountInfoNew = new JSONObject();
if ("cab73322-8924-11ea-b71a-ec0d9ad45bf8".equalsIgnoreCase(signUserInfoHclc.getAccountId())) {
accountInfoNew.put("ctino", "");
accountInfoNew.put("name", "日立建机");
} else {
// if ("cab73322-8924-11ea-b71a-ec0d9ad45bf8".equalsIgnoreCase(signUserInfoHclc.getAccountId())) {
// accountInfoNew.put("ctino", "");
// accountInfoNew.put("name", "日立建机");
// } else {
//获取移动端用户信息
signUserInfoHclc = signInfoHclcMapper.selectOne(signUserInfoHclc);
accountInfoNew.put("ctino", signUserInfoHclc.getIdNo());
accountInfoNew.put("name", signUserInfoHclc.getName());
}
// }
params.remove("accountInfo");
params.put("accountInfo", accountInfoNew);
......
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