|
@@ -118,8 +118,10 @@ public class EqbHylServiceImpl implements EqbHylService {
|
|
|
|
|
|
|
|
reqBodyObjSign.put("signFlowConfig",signFlowConfig);
|
|
reqBodyObjSign.put("signFlowConfig",signFlowConfig);
|
|
|
// 3.3设置签署参与方
|
|
// 3.3设置签署参与方
|
|
|
|
|
+// 3.3.1设置我方签署信息
|
|
|
Map signer = new HashMap();
|
|
Map signer = new HashMap();
|
|
|
signer.put("signerType",1);//签署方类型,0 - 个人,1 - 企业/机构,2 - 法定代表人,3 - 经办人
|
|
signer.put("signerType",1);//签署方类型,0 - 个人,1 - 企业/机构,2 - 法定代表人,3 - 经办人
|
|
|
|
|
+ signer.put("signConfig",UtilMap.map("signOrder",1));
|
|
|
Map orgSignerInfo = new HashMap();
|
|
Map orgSignerInfo = new HashMap();
|
|
|
//企业/机构账号ID
|
|
//企业/机构账号ID
|
|
|
orgSignerInfo.put("orgId",orgId);
|
|
orgSignerInfo.put("orgId",orgId);
|
|
@@ -137,7 +139,36 @@ public class EqbHylServiceImpl implements EqbHylService {
|
|
|
normalSignFieldConfig.put("freeMode",true);
|
|
normalSignFieldConfig.put("freeMode",true);
|
|
|
signField.put("normalSignFieldConfig",normalSignFieldConfig);
|
|
signField.put("normalSignFieldConfig",normalSignFieldConfig);
|
|
|
signer.put("signFields",Arrays.asList(signField));
|
|
signer.put("signFields",Arrays.asList(signField));
|
|
|
- reqBodyObjSign.put("signers",Arrays.asList(signer));
|
|
|
|
|
|
|
+
|
|
|
|
|
+ List<Map> signersList = new ArrayList<>();
|
|
|
|
|
+ signersList.add(signer);
|
|
|
|
|
+// 3.3.2设置对方签署信息
|
|
|
|
|
+ if("需要".equals(UtilMap.getString(formData, "radioField_mqejx60u"))){
|
|
|
|
|
+ Map otherSigner = new HashMap();
|
|
|
|
|
+ otherSigner.put("signerType",1);//签署方类型,0 - 个人,1 - 企业/机构,2 - 法定代表人,3 - 经办人
|
|
|
|
|
+ otherSigner.put("signConfig",UtilMap.map("signOrder",2));
|
|
|
|
|
+ Map otherOrgSignerInfo = new HashMap();
|
|
|
|
|
+ //企业/机构账号名称
|
|
|
|
|
+ otherOrgSignerInfo.put("orgName",UtilMap.getString(formData, "textField_mqejx60w"));
|
|
|
|
|
+ otherOrgSignerInfo.put("orgInfo",UtilMap.map("orgIDCardNum, orgIDCardType",UtilMap.getString(formData, "textField_mqejx60x"),"CRED_ORG_USCC"));
|
|
|
|
|
+ //经办人信息
|
|
|
|
|
+ Map otherTransactorInfo = new HashMap();
|
|
|
|
|
+ otherTransactorInfo.put("psnAccount",UtilMap.getString(formData, "textField_mqejx60y"));//经办人账号标识,手机号或邮箱,必须配合psnName(经办人姓名)传入
|
|
|
|
|
+ otherTransactorInfo.put("psnInfo",UtilMap.map("psnName",UtilMap.getString(formData, "textField_ml0iaa3i")));//经办人姓名
|
|
|
|
|
+ otherOrgSignerInfo.put("transactorInfo",otherTransactorInfo);
|
|
|
|
|
+ otherSigner.put("orgSignerInfo",otherOrgSignerInfo);
|
|
|
|
|
+
|
|
|
|
|
+ Map otherSignField = new HashMap();
|
|
|
|
|
+ otherSignField.put("fileId",fileId);
|
|
|
|
|
+ otherSignField.put("customBizNum",formInstance);
|
|
|
|
|
+// 签章区配置项
|
|
|
|
|
+ Map otherSignFieldConfig = new HashMap();
|
|
|
|
|
+ otherSignFieldConfig.put("freeMode",true);
|
|
|
|
|
+ otherSignField.put("normalSignFieldConfig",otherSignFieldConfig);
|
|
|
|
|
+ otherSigner.put("signFields",Arrays.asList(otherSignField));
|
|
|
|
|
+ signersList.add(otherSigner);
|
|
|
|
|
+ }
|
|
|
|
|
+ reqBodyObjSign.put("signers",signersList);
|
|
|
Map signResult = eqbPost("/v3/sign-flow/create-by-file", reqBodyObjSign);
|
|
Map signResult = eqbPost("/v3/sign-flow/create-by-file", reqBodyObjSign);
|
|
|
String signFlowId = UtilMap.getString(signResult,"signFlowId");
|
|
String signFlowId = UtilMap.getString(signResult,"signFlowId");
|
|
|
|
|
|
|
@@ -251,7 +282,7 @@ public class EqbHylServiceImpl implements EqbHylService {
|
|
|
// String productModel = productTable.get(i).containsKey("textField_mogxdk7x")?UtilMap.getString(productTable.get(i), "textField_mogxdk7x"):"";//产品型号--舍弃
|
|
// String productModel = productTable.get(i).containsKey("textField_mogxdk7x")?UtilMap.getString(productTable.get(i), "textField_mogxdk7x"):"";//产品型号--舍弃
|
|
|
String productSize = productTable.get(i).containsKey("textField_mogxdk7y")?UtilMap.getString(productTable.get(i), "textField_mogxdk7y"):"";//产品规格
|
|
String productSize = productTable.get(i).containsKey("textField_mogxdk7y")?UtilMap.getString(productTable.get(i), "textField_mogxdk7y"):"";//产品规格
|
|
|
String productNum = productTable.get(i).containsKey("numberField_mkdl67qd")?UtilMap.getString(productTable.get(i), "numberField_mkdl67qd"):"";//数量
|
|
String productNum = productTable.get(i).containsKey("numberField_mkdl67qd")?UtilMap.getString(productTable.get(i), "numberField_mkdl67qd"):"";//数量
|
|
|
- String productUnit = productTable.get(i).containsKey("numberField_mkdl67qd")?UtilMap.getString(productTable.get(i), "numberField_mkdl67qd"):"";//单位
|
|
|
|
|
|
|
+ String productUnit = productTable.get(i).containsKey("textField_mq6g5d7g")?UtilMap.getString(productTable.get(i), "textField_mq6g5d7g"):"";//单位
|
|
|
double productPrice = productTable.get(i).containsKey("numberField_mkdl67qe")?UtilMap.getDouble(productTable.get(i), "numberField_mkdl67qe"):0;//单价
|
|
double productPrice = productTable.get(i).containsKey("numberField_mkdl67qe")?UtilMap.getDouble(productTable.get(i), "numberField_mkdl67qe"):0;//单价
|
|
|
String note = productTable.get(i).containsKey("textField_mkdl67qg")?UtilMap.getString(productTable.get(i), "textField_mkdl67qg"):"";//备注
|
|
String note = productTable.get(i).containsKey("textField_mkdl67qg")?UtilMap.getString(productTable.get(i), "textField_mkdl67qg"):"";//备注
|
|
|
if ("恒益隆贸易(上海)有限公司".equals(UtilMap.getString(formData, "selectField_mjmlcp4y"))) {
|
|
if ("恒益隆贸易(上海)有限公司".equals(UtilMap.getString(formData, "selectField_mjmlcp4y"))) {
|
|
@@ -272,6 +303,20 @@ public class EqbHylServiceImpl implements EqbHylService {
|
|
|
productDetailMap.put("componentKey", "productDetail");
|
|
productDetailMap.put("componentKey", "productDetail");
|
|
|
productDetailMap.put("componentValue", JSONObject.toJSONString(productDetail));
|
|
productDetailMap.put("componentValue", JSONObject.toJSONString(productDetail));
|
|
|
|
|
|
|
|
|
|
+ //交货方式
|
|
|
|
|
+ Map submitType = new HashMap();
|
|
|
|
|
+ submitType.put("componentKey", "submitType");
|
|
|
|
|
+ submitType.put("componentValue", formData.containsKey("textField_mogtxb0m")?UtilMap.getString(formData, "textField_mogtxb0m"):"");
|
|
|
|
|
+ //付款方式
|
|
|
|
|
+ Map payType = new HashMap();
|
|
|
|
|
+ payType.put("componentKey", "payType");
|
|
|
|
|
+ payType.put("componentValue", formData.containsKey("textField_mogtxb0o")?UtilMap.getString(formData, "textField_mogtxb0o"):"");
|
|
|
|
|
+ //送货日期
|
|
|
|
|
+ Map deliverDate = new HashMap();
|
|
|
|
|
+ deliverDate.put("componentKey", "deliverDate");
|
|
|
|
|
+ deliverDate.put("componentValue", formData.containsKey("textField_mogtxb0q")?UtilMap.getString(formData, "textField_mogtxb0q"):"");
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
components.add(clientName);
|
|
components.add(clientName);
|
|
|
components.add(salesPerson);
|
|
components.add(salesPerson);
|
|
|
components.add(contactPerson);
|
|
components.add(contactPerson);
|
|
@@ -286,6 +331,9 @@ public class EqbHylServiceImpl implements EqbHylService {
|
|
|
components.add(company);
|
|
components.add(company);
|
|
|
components.add(companyEng);
|
|
components.add(companyEng);
|
|
|
components.add(companySeal);
|
|
components.add(companySeal);
|
|
|
|
|
+ components.add(submitType);
|
|
|
|
|
+ components.add(payType);
|
|
|
|
|
+ components.add(deliverDate);
|
|
|
if ("恒益隆贸易(上海)有限公司".equals(UtilMap.getString(formData, "selectField_mjmlcp4y"))) {
|
|
if ("恒益隆贸易(上海)有限公司".equals(UtilMap.getString(formData, "selectField_mjmlcp4y"))) {
|
|
|
reqBodyObj.put("docTemplateId", bjdHYL_docTemplateId);
|
|
reqBodyObj.put("docTemplateId", bjdHYL_docTemplateId);
|
|
|
}else if ("上海绍贺贸易有限公司".equals(UtilMap.getString(formData, "selectField_mjmlcp4y"))){
|
|
}else if ("上海绍贺贸易有限公司".equals(UtilMap.getString(formData, "selectField_mjmlcp4y"))){
|