|
@@ -60,15 +60,43 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("subject", "textField_ltsbwegw");//合同名称
|
|
|
map.put("sn", "serialNumberField_ltsbweh2");//合同编号
|
|
|
map.put("tenantName", "textField_lvz1kozf");//公司名称
|
|
|
- map.put("tenantName1", "textField_ltxu1n14");//印章公司名称
|
|
|
+ map.put("tenantName1", "textField_lznvplmm");//印章公司id
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
map.put("glbd", "associationFormField_lu0u6npd");//物理印章关联表单
|
|
|
map.put("categoryId", "textField_lvm5xmqe");//业务分类Id
|
|
|
map.put("contractId", "textField_lwah8x72");//合同Id
|
|
|
map.put("categoryName", "textField_lvz1kozg");//业务分类名称
|
|
|
map.put("fujian", "attachmentField_ltsbweir");//附件
|
|
|
+ map.put("fujian1", "attachmentField_m11gjcqu");//附件
|
|
|
map.put("creatorName", "employeeField_ltsbwefl");//创建人姓名
|
|
|
map.put("applyerNumber", "textField_lwebkb16");//创建人员工编号
|
|
|
map.put("sealName", "textField_lvw4umfr");//授权印章名称
|
|
|
+ map.put("sealId", "textField_m0dh8wmp");//印章id
|
|
|
+ map.put("count", "numberField_ltwa0vj6");//授权次数
|
|
|
+ map.put("mobile", "textField_lwzqvg93");//授权人手机号
|
|
|
+ map.put("tenantNameP", "textField_ltwa0vke");//对方个人签署人姓名
|
|
|
+ map.put("contactP", "textField_ltwa0vkf");//对方个人签署人联系电话
|
|
|
+ map.put("tenantNameA", "textField_ltwa0vk0");//对方公司名称
|
|
|
+ map.put("receiverNameA", "textField_ltwa0vk1");//对方公司签署人名称
|
|
|
+ map.put("contactA", "textField_ltwa0vk2");//对方公司签署人联系电话
|
|
|
+ } else if (type.equals("FORM-82E566F8576E44D3AB4B34033A27E76FEB75")) {
|
|
|
+ // CG11-框架采购订单
|
|
|
+ map.put("subject", "textField_ltsbwef0");//合同名称
|
|
|
+ map.put("sn", "serialNumberField_ltsbweh2");//合同编号
|
|
|
+ map.put("tenantName", "textField_lvz1kozf");//公司名称
|
|
|
+ map.put("tenantName1", "textField_lznvplmm");//印章公司id
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
+ map.put("glbd", "associationFormField_lu0u6npd");//物理印章关联表单
|
|
|
+ map.put("categoryId", "textField_lvm5xmqe");//业务分类Id
|
|
|
+ map.put("contractId", "textField_lwah8x72");//合同Id
|
|
|
+ map.put("categoryName", "textField_lvz1kozg");//业务分类名称
|
|
|
+ map.put("fujian", "attachmentField_ltsbweis");//附件
|
|
|
+ map.put("creatorName", "employeeField_ltsbwefl");//创建人姓名
|
|
|
+ map.put("applyerNumber", "textField_lwebkb16");//创建人员工编号
|
|
|
+ map.put("sealName", "textField_lvw4umfr");//授权印章名称
|
|
|
+ map.put("sealId", "textField_m0dh8wmp");//印章id
|
|
|
map.put("count", "numberField_ltwa0vj6");//授权次数
|
|
|
map.put("mobile", "textField_lwzqvg93");//授权人手机号
|
|
|
map.put("tenantNameP", "textField_ltwa0vke");//对方个人签署人姓名
|
|
@@ -81,15 +109,19 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("subject", "textField_lvz8coad");//合同名称
|
|
|
map.put("sn", "serialNumberField_lvz8coae");//合同编号
|
|
|
map.put("tenantName", "textField_lvza5uwu");//公司名称
|
|
|
- map.put("tenantName1", "textField_lvz8cobs");//印章公司名称
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
+ map.put("tenantName1", "textField_lznvplmm");//印章公司名称
|
|
|
map.put("glbd", "associationFormField_lvz8coby");//物理印章关联表单
|
|
|
map.put("categoryId", "textField_lvz8cobe");//业务分类Id
|
|
|
map.put("contractId", "textField_lwg205ug");//合同Id
|
|
|
map.put("categoryName", "textField_lvz8cobd");//业务分类名称
|
|
|
map.put("fujian", "attachmentField_lvz8cocl");//附件
|
|
|
+ map.put("fujian1", "attachmentField_m11gqbly");//附件
|
|
|
map.put("creatorName", "employeeField_lvz8co98");//创建人姓名
|
|
|
map.put("applyerNumber", "textField_lweccz0q");//创建人员工编号
|
|
|
map.put("sealName", "textField_lwelg27e");//授权印章名称
|
|
|
+ map.put("sealId", "textField_m0dhf7ph");//印章id
|
|
|
map.put("mobile", "textField_lwzqvg93");//授权人手机号
|
|
|
map.put("count", "numberField_lvz8cobz");//授权次数
|
|
|
map.put("tenantNameP", "textField_lvz8cocg");//对方个人签署人姓名
|
|
@@ -103,16 +135,20 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("subject", "textField_ltwktal4");//合同名称
|
|
|
map.put("sn", "serialNumberField_ltwktal5");//合同编号
|
|
|
map.put("tenantName", "textField_lvz45lif");//公司名称
|
|
|
- map.put("tenantName1", "textField_ltwktamn");//印章公司名称
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
+ map.put("tenantName1", "textField_lznvplmm");//印章公司名称
|
|
|
map.put("categoryId", "textField_lvz45lii");//业务分类Id
|
|
|
map.put("glbd", "associationFormField_lu0w0l7x");//物理印章关联表单
|
|
|
map.put("contractId", "textField_lwg1z6hk");//合同Id
|
|
|
map.put("applyerNumber", "textField_lwelap55");//创建人员工编号
|
|
|
map.put("sealName", "textField_lx1gzqai");//授权印章名称
|
|
|
+ map.put("sealId", "textField_m0dhpgjr");//印章id
|
|
|
map.put("mobile", "textField_lwzqvg93");//授权人手机号
|
|
|
map.put("count", "numberField_ltwktalp");//授权次数
|
|
|
map.put("categoryName", "textField_lvz45lih");//业务分类名称
|
|
|
map.put("fujian", "attachmentField_ltwktamq");//附件
|
|
|
+ map.put("fujian1", "attachmentField_ltwktamr");//附件
|
|
|
// map.put("creatorName", "employeeField_ltwktal6");//创建人姓名
|
|
|
// map.put("creatorContact", "textField_ltsbwef1");//创建人联系方式
|
|
|
// map.put("receiverNameP", "textField_ltwa0vke");//对方个人签署人姓名
|
|
@@ -125,11 +161,14 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("subject", "textField_ltwcj54k");//合同名称
|
|
|
map.put("sn", "serialNumberField_ltwcj54l");//合同编号
|
|
|
map.put("tenantName", "textField_lvz3j6lq");//公司名称
|
|
|
- map.put("tenantName1", "textField_ltwe0wye");//公司名称
|
|
|
+ map.put("tenantName1", "textField_lznvplmm");//公司名称
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
map.put("glbd", "associationFormField_lu0vkwu7");//物理印章关联表单
|
|
|
map.put("categoryId", "textField_lvz3j6ls");//业务分类Id
|
|
|
map.put("contractId", "textField_lwg1wbix");//合同Id
|
|
|
map.put("sealName", "textField_lwel4lyr");//授权印章名称
|
|
|
+ map.put("sealId", "textField_m0dhqv5m");//印章id
|
|
|
map.put("count", "numberField_ltwe0wyo");//授权次数
|
|
|
map.put("mobile", "textField_lwzqvg93");//授权人手机号
|
|
|
map.put("categoryName", "textField_ltwe0wyb");//业务分类名称
|
|
@@ -148,10 +187,12 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("sn", "serialNumberField_ltsaig24");//合同编号
|
|
|
map.put("tenantName", "textField_lybee634");//公司名称
|
|
|
map.put("categoryId", "textField_lw4tkat0");//业务分类Id
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
map.put("glbd", "associationFormField_lwso6sgd");//物理印章关联表单
|
|
|
- map.put("fujian", "attachmentField_luhu041r");//附件
|
|
|
- map.put("creatorName", "employeeField_ltrzli8r");//创建人姓名
|
|
|
-// map.put("creatorContact", "textField_ltsbwef1");//创建人联系方式
|
|
|
+ map.put("fujian", "attachmentField_luhu041t");//附件
|
|
|
+// map.put("creatorName", "employeeField_ltrzli8r");//创建人姓名
|
|
|
+ map.put("categoryName", "textField_lvz1kozg");//业务分类名称
|
|
|
map.put("tenantNameP", "textField_lts1g8sc");//对方个人签署人姓名
|
|
|
map.put("applyerNumber", "textField_lybee62y");//创建人员工编号
|
|
|
map.put("sealName", "textField_lybee635");//授权印章名称
|
|
@@ -165,7 +206,9 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("subject", "textField_lu7ycpub");//合同名称
|
|
|
map.put("sn", "serialNumberField_lu7ycpuc");//合同编号
|
|
|
map.put("tenantName", "textField_lygvcsw5");//公司名称textField_lu81zom2
|
|
|
- map.put("tenantName1", "textField_lu81zom2");//公司名称
|
|
|
+ map.put("tenantName1", "textField_lznvplmm");//公司名称
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
map.put("glbd", "associationFormField_lwrmm4p7");//物理印章关联表单
|
|
|
map.put("categoryId", "textField_lw05x5rm");//业务分类Id
|
|
|
map.put("contractId", "textField_lwg219kl");//合同Id
|
|
@@ -174,11 +217,12 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("fujian", "attachmentField_lu81zomp");//附件
|
|
|
map.put("applyerNumber", "textField_lwelmmkr");//创建人员工编号
|
|
|
map.put("sealName", "textField_lwelmmks");//授权印章名称
|
|
|
+ map.put("sealId", "textField_m0dhtx3s");//印章id
|
|
|
map.put("count", "numberField_lual6ol8");//授权次数
|
|
|
// map.put("creatorName", "employeeField_ltsbwefl");//创建人姓名
|
|
|
-// map.put("creatorContact", "textField_ltsbwef1");//创建人联系方式
|
|
|
- map.put("tenantNameP", "textField_lu81zome");//对方个人签署人姓名
|
|
|
- map.put("contactP", "textField_lu81zomf");//对方个人签署人联系电话
|
|
|
+// map.put("creatorContact", "textField_ltsbwef1");//创建人联系方
|
|
|
+ map.put("tenantNameP", "textField_ltwa0vke");//对方个人签署人姓名
|
|
|
+ map.put("contactP", "textField_ltwa0vkf");//对方个人签署人联系电话
|
|
|
map.put("tenantNameA", "textField_lu81zomd");//对方公司名称
|
|
|
map.put("receiverNameA", "textField_lu81zome");//对方公司签署人名称
|
|
|
map.put("contactA", "textField_lu81zomf");//对方公司签署人联系电话
|
|
@@ -188,7 +232,9 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("subject", "textField_lu9euh7n");//合同名称
|
|
|
map.put("sn", "serialNumberField_lu9euh7o");//合同编号
|
|
|
map.put("tenantName", "textField_lvzz59hk");//公司名称
|
|
|
- map.put("tenantName1", "textField_lu9euh86");//公司名称
|
|
|
+ map.put("tenantName1", "textField_lznvplmm");//公司名称
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
map.put("glbd", "associationFormField_lu9euh8b");//物理印章关联表单
|
|
|
map.put("categoryId", "textField_lvzz59hn");//业务分类Id
|
|
|
map.put("contractId", "textField_lwg22nvj");//合同Id
|
|
@@ -196,14 +242,18 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("categoryName", "textField_lvzz59hm");//业务分类名称
|
|
|
map.put("applyerNumber", "textField_lweezm68");//创建人员工编号
|
|
|
map.put("sealName", "textField_lweezm69");//授权印章名称
|
|
|
+ map.put("sealId", "textField_m0dhwqon");//印章id
|
|
|
map.put("count", "numberField_lu9euh8c");//授权次数
|
|
|
- map.put("fujian", "attachmentField_lu9euh8d");//附件
|
|
|
+ map.put("fujian", "attachmentField_lzvac8lu");//附件
|
|
|
+ map.put("fujian1", "attachmentField_lzv9up2n");//附件1
|
|
|
} else if (type.equals("FORM-0D501EF1688247DC932E7784298BD46BRYHC")) {
|
|
|
// 新签劳动合同/协议
|
|
|
map.put("subject", "textField_luauhgb4");//合同名称
|
|
|
map.put("sn", "serialNumberField_luauhgb5");//合同编号
|
|
|
map.put("tenantName", "textField_lw4rpz1w");//公司名称
|
|
|
map.put("categoryId", "textField_lw4rpz1x");//业务分类Id
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
map.put("mobile", "textField_lwzqvg93");//授权人手机号
|
|
|
map.put("contractId", "textField_lwg241g6");//合同Id
|
|
|
map.put("jf", "textField_lwk0stof");//甲方名称
|
|
@@ -229,7 +279,9 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("subject", "textField_ltwmutnp");//合同名称
|
|
|
map.put("sn", "serialNumberField_ltwmutno");//合同编号
|
|
|
map.put("tenantName", "textField_lw044nmp");//公司名称
|
|
|
- map.put("tenantName1", "textField_ltwmutom");//公司名称
|
|
|
+ map.put("tenantName1", "textField_lznvplmm");//公司名称
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
map.put("categoryId", "textField_lw044nmr");//业务分类Id
|
|
|
map.put("glbd", "associationFormField_lu6mvmik");//物理印章关联表单
|
|
|
map.put("contractId", "textField_lwg251gn");//合同Id
|
|
@@ -237,6 +289,7 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("categoryName", "textField_ltwmutoc");//业务分类名称
|
|
|
map.put("applyerNumber", "textField_lweluap2");//创建人员工编号
|
|
|
map.put("sealName", "textField_lweluap3");//授权印章名称
|
|
|
+ map.put("sealId", "textField_m0dhyj02");//印章id
|
|
|
map.put("count", "numberField_ltwmutow");//授权次数
|
|
|
map.put("fujian", "attachmentField_ltwmutq4");//附件
|
|
|
} else if (type.equals("FORM-87BD065161F84560B999FE94713255E20E6E")) {
|
|
@@ -245,6 +298,8 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("sn", "serialNumberField_ltwp3e44");//合同编号
|
|
|
map.put("tenantName", "textField_lw04hhp1");//公司名称
|
|
|
map.put("categoryId", "textField_lw04hhp3");//业务分类Id
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
map.put("contractId", "textField_lwg260n6");//合同Id
|
|
|
map.put("mobile", "textField_lwzqvg93");//授权人手机号
|
|
|
map.put("categoryName", "textField_lwa29saw");//业务分类名称
|
|
@@ -260,6 +315,8 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("tenantName", "textField_lvz1kozf");//公司名称
|
|
|
map.put("categoryId", "textField_lvm5xmqe");//业务分类Id
|
|
|
map.put("categoryName", "textField_lvz1kozg");//业务分类名称
|
|
|
+ map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+ map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
map.put("contact", "textField_lu991xih");//续签人手机号码
|
|
|
map.put("jf", "textField_lvz1kozf");//公司主体名称
|
|
|
map.put("sfzh", "textField_lu991xig");//续签人身份证号码
|
|
@@ -270,6 +327,18 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("xdqxjzsj", "dateField_lu991xin");//续订期限结束时间
|
|
|
map.put("zfjjbcjrq", "dateField_lzl3nrxf");//续订期限结束时间
|
|
|
map.put("jjbcj", "numberField_lzl3nrxg");//续订期限结束时间
|
|
|
+ } else if (type.equals("FORM-4C410326630D4B498A1410EFBBEFE8EAORL5")) {
|
|
|
+ //HZ04-合作校区警示/解约函
|
|
|
+ map.put("subject", "textField_m0yoek7p");//合同名称
|
|
|
+ map.put("sn", "serialNumberField_m0yoek7q");//合同编号
|
|
|
+ map.put("tenantName", "textField_m0z328xq");//公司名称
|
|
|
+ map.put("glbd", "associationFormField_m0yx25he");//物理印章关联表单
|
|
|
+ map.put("count", "numberField_m0yx25hf");//盖章次数
|
|
|
+// map.put("categoryName", "textField_lvz1kozg");//业务分类名称
|
|
|
+// map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+// map.put("creatorName", "textField_lzpdjzfp");//创建人名称
|
|
|
+// map.put("creatorContact", "textField_lzpdjzfq");//创建人手机号
|
|
|
+
|
|
|
} else {
|
|
|
throw new Exception();
|
|
|
}
|
|
@@ -294,11 +363,12 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
if (!type.equals("FORM-FD73905FB9C24E3A99244F901D9C98AFH4E6")) {
|
|
|
documentId = createbyfile(data, type);
|
|
|
}
|
|
|
-
|
|
|
//定义参数 创建合同草稿
|
|
|
JSONObject obj = new JSONObject();
|
|
|
// obj.put("subject",data.get("textField_ltsbwef0"));//合同名称
|
|
|
obj.put("subject", data.get(getCust(type, "subject")).toString());//合同名称
|
|
|
+ obj.put("creatorName", data.get(getCust(type, "creatorName")).toString());//发起人姓名
|
|
|
+ obj.put("creatorContact", data.get(getCust(type, "creatorContact")).toString());//发起人联系方式
|
|
|
// obj.put("sn",data.get("serialNumberField_ltsbweh2"));//合同编号流水号
|
|
|
obj.put("sn", data.get(getCust(type, "sn")));//合同编号流水号
|
|
|
obj.put("tenantName", data.get(getCust(type, "tenantName")));//发起方公司名称
|
|
@@ -323,15 +393,15 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
|
|
|
if (categoryName.equals("多方电子用印(个人)(我方先签)") ||
|
|
|
categoryName.equals("我方电子对方物理(个人)(我方先签)")) {
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory(data.get(getCust(type, "sealId")).toString()));
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "tenantNameP")).toString(), data.get(getCust(type, "contactP")).toString()));
|
|
|
} else if (categoryName.equals("我方电子对方物理(企业)(我方先签)") ||
|
|
|
categoryName.equals("多方电子用印(企业)(我方先签)")) {
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory(data.get(getCust(type, "sealId")).toString()));
|
|
|
array.add(getCompSignatory(data.get(getCust(type, "tenantNameA")).toString(), data.get(getCust(type, "contactA")).toString(), data.get(getCust(type, "receiverNameA")).toString()));
|
|
|
} else if (categoryName.equals("我方电子对方物理(企业&个人)(我方先签)") ||
|
|
|
categoryName.equals("多方电子用印(企业&个人)(我方先签)")) {
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory(data.get(getCust(type, "sealId")).toString()));
|
|
|
array.add(getCompSignatory(data.get(getCust(type, "tenantNameA")).toString(), data.get(getCust(type, "contactA")).toString(), data.get(getCust(type, "receiverNameA")).toString()));
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "tenantNameP")).toString(), data.get(getCust(type, "contactP")).toString()));
|
|
|
} else if (categoryName.equals("我方电子对方物理(个人)") ||
|
|
@@ -347,19 +417,19 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
categoryName.equals("解除劳动合同")
|
|
|
) {
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "tenantNameP")).toString(), data.get(getCust(type, "contactP")).toString()));
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory(data.get(getCust(type, "sealId")).toString()));
|
|
|
} else if (categoryName.equals("我方电子对方物理(企业)") ||
|
|
|
categoryName.equals("多方电子用印(企业)(对方先签)")) {
|
|
|
array.add(getCompSignatory(data.get(getCust(type, "tenantNameA")).toString(), data.get(getCust(type, "contactA")).toString(), data.get(getCust(type, "receiverNameA")).toString()));
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory(data.get(getCust(type, "sealId")).toString()));
|
|
|
} else if (categoryName.equals("我方电子对方物理(企业&个人)") ||
|
|
|
categoryName.equals("多方电子用印(企业&个人)(对方先签)")) {
|
|
|
array.add(getCompSignatory(data.get(getCust(type, "tenantNameA")).toString(), data.get(getCust(type, "contactA")).toString(), data.get(getCust(type, "receiverNameA")).toString()));
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "tenantNameP")).toString(), data.get(getCust(type, "contactP")).toString()));
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory(data.get(getCust(type, "sealId")).toString()));
|
|
|
} else if (categoryName.equals("内部企业单签") ||
|
|
|
categoryName.equals("默认业务分类")) {
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory(data.get(getCust(type, "sealId")).toString()));
|
|
|
} else if (categoryName.equals("印章保管授权&承诺书")) {
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "tenantNameP")).toString(), data.get(getCust(type, "contactP")).toString()));
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "tenantNameA")).toString(), data.get(getCust(type, "contactA")).toString()));
|
|
@@ -380,7 +450,6 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
.build(),
|
|
|
YDConf.FORM_QUERY.retrieve_id
|
|
|
).getFormData();
|
|
|
-
|
|
|
if (sealdata1 != null) {
|
|
|
String sealName1 = (String) sealdata1.get("textField_lw6aecve");
|
|
|
if (sealName1 != null) {
|
|
@@ -411,7 +480,7 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
try {
|
|
|
if (categoryName.equals("物理用印外带场景") ||
|
|
|
categoryName.equals("物理用印公司用印场景")) {
|
|
|
- qysService.createseal(obj);
|
|
|
+// qysService.createseal(obj);
|
|
|
} else {
|
|
|
//1.调用创建合同草稿方法
|
|
|
JSONObject draft = qysService.createDraft(obj);
|
|
@@ -421,6 +490,7 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
if (contractId != "") {
|
|
|
//发起合同
|
|
|
System.out.println("contractId" + contractId);
|
|
|
+// JSONObject senddata = qysService.send(contractId, data.get(getCust(type, "tenantName")).toString());
|
|
|
// //合同id 写入宜搭
|
|
|
String sc = getCust(type, "sn");//合同id字段
|
|
|
String sc_values = data.get(getCust(type, "sn")).toString();//合同id字段的值
|
|
@@ -429,10 +499,11 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
.formUuid(type)
|
|
|
.searchCondition(JSONObject.toJSONString(UtilMap.map(sc, sc_values)))
|
|
|
.formDataJson(JSONObject.toJSONString(UtilMap.map(fd, contractId)))
|
|
|
- .build(), YDConf.FORM_OPERATION.upsert).toString();
|
|
|
- qysService.send(contractId, data.get(getCust(type, "tenantName")).toString());
|
|
|
-// FileUtil.file("C:\\Users\\Administrator\\Desktop\\合同.pdf");
|
|
|
-// System.out.println("send:" + send);
|
|
|
+ .build(), YDConf.FORM_OPERATION.upsert);
|
|
|
+ JSONObject senddata = qysService.send(contractId, data.get(getCust(type, "tenantName")).toString());
|
|
|
+//
|
|
|
+ // FileUtil.file("C:\\Users\\Administrator\\Desktop\\合同.pdf");
|
|
|
+ System.out.println("senddata:" + senddata);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -449,7 +520,73 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
String status = param.get("status");
|
|
|
log.info("sn:{}", sn);
|
|
|
log.info("contractId:{}", contractId);
|
|
|
+ //查询宜搭底表数据
|
|
|
+ String[] sns = sn.split("-");
|
|
|
+ dingshiqiImpl dingshiqi = new dingshiqiImpl();
|
|
|
+ Map<String, String> formUuid = getFormUuid(sns[0]);
|
|
|
+ List<Map> list1 = (List<Map>) ydClient.queryData(YDParam.builder().formUuid(formUuid.get("type")).searchCondition(
|
|
|
+ JSONObject.toJSONString(UtilMap.map(formUuid.get("sn"), sn))
|
|
|
+ ).build(), YDConf.FORM_QUERY.retrieve_list).getData();
|
|
|
+ Map maplist = list1.get(0);
|
|
|
+ String instanceId = (String) maplist.get("formInstanceId");
|
|
|
+ Map data = (Map) ydClient.queryData(YDParam.builder().formInstId(instanceId)
|
|
|
+ .appType(ydConf.getAppType()).systemToken(ydConf.getSystemToken())
|
|
|
+ .userId(ddConf.getOperator()).build(), YDConf.FORM_QUERY.retrieve_id).getFormData();
|
|
|
+ log.info("data:{}", data);
|
|
|
+ log.info("list1:{}", list1);
|
|
|
+ String categoryName = data.get(getCust(formUuid.get("type"), "categoryName")).toString();
|
|
|
List list = new ArrayList();
|
|
|
+ if (categoryName.equals("我方电子对方物理(个人)") || categoryName.equals("我方电子对方物理(个人)(我方先签)")
|
|
|
+ || categoryName.equals("我方电子对方物理(企业&个人)") || categoryName.equals("我方电子对方物理(企业&个人)(我方先签)")
|
|
|
+ || categoryName.equals("我方电子对方物理(企业)") || categoryName.equals("我方电子对方物理(企业)(我方先签)")) {
|
|
|
+ qysService.download(contractId, new File(BDURL + sn + ".zip"));
|
|
|
+ List<String> unzippedFiles = new ArrayList<>();
|
|
|
+ String zipFilePath = BDURL + sn + ".zip";
|
|
|
+ String destDirectory = PDFBDURL + sn;
|
|
|
+ try {
|
|
|
+ File destDir = new File(destDirectory);
|
|
|
+ if (!destDir.exists()) {
|
|
|
+ destDir.mkdir();
|
|
|
+ }
|
|
|
+ byte[] buffer = new byte[1024];
|
|
|
+ ZipInputStream zipIn = new ZipInputStream(new FileInputStream(zipFilePath));
|
|
|
+ ZipEntry entry = zipIn.getNextEntry();
|
|
|
+ while (entry != null) {
|
|
|
+ String filePath = destDirectory + File.separator + entry.getName();
|
|
|
+ if (!entry.isDirectory()) {
|
|
|
+ new File(filePath).getParentFile().mkdirs();
|
|
|
+ FileOutputStream fos = new FileOutputStream(filePath);
|
|
|
+ int len;
|
|
|
+ while ((len = zipIn.read(buffer)) > 0) {
|
|
|
+ fos.write(buffer, 0, len);
|
|
|
+ }
|
|
|
+ fos.close();
|
|
|
+ unzippedFiles.add(filePath);
|
|
|
+ }
|
|
|
+ zipIn.closeEntry();
|
|
|
+ entry = zipIn.getNextEntry();
|
|
|
+ }
|
|
|
+ zipIn.close();
|
|
|
+ System.out.println("ZIP 文件解压完成。");
|
|
|
+ } catch (Exception e) {
|
|
|
+ System.out.println("发生异常: " + e.getMessage());
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ for (String unzippedFile : unzippedFiles) {
|
|
|
+ Map map = new HashMap();
|
|
|
+ String fileName = FileUtil.getName(unzippedFile);
|
|
|
+ if (fileName.contains("签署摘要")) {
|
|
|
+ continue; // 跳过这个文件
|
|
|
+ }
|
|
|
+ map.put("downloadUrl", URL + sn + "/" + fileName);
|
|
|
+ map.put("name", fileName);
|
|
|
+ map.put("previewUrl", map.get("downloadUrl"));
|
|
|
+ map.put("url", map.get("downloadUrl"));
|
|
|
+ map.put("ext", FileUtil.extName(unzippedFile));
|
|
|
+ list.add(map);
|
|
|
+ }
|
|
|
+ log.info("list:{}", list);
|
|
|
+ }
|
|
|
if (status.equals("COMPLETE") || status.equals("SIGNED") || status.equals("FINISHED")) {
|
|
|
qysService.download(contractId, new File(BDURL + sn + ".zip"));
|
|
|
List<String> unzippedFiles = new ArrayList<>();
|
|
@@ -484,11 +621,12 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
System.out.println("发生异常: " + e.getMessage());
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
for (String unzippedFile : unzippedFiles) {
|
|
|
Map map = new HashMap();
|
|
|
String fileName = FileUtil.getName(unzippedFile);
|
|
|
+ if (fileName.contains("签署摘要")) {
|
|
|
+ continue; // 跳过这个文件
|
|
|
+ }
|
|
|
map.put("downloadUrl", URL + sn + "/" + fileName);
|
|
|
map.put("name", fileName);
|
|
|
map.put("previewUrl", map.get("downloadUrl"));
|
|
@@ -498,15 +636,7 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
}
|
|
|
log.info("list:{}", list);
|
|
|
}
|
|
|
- //查询宜搭底表数据
|
|
|
- String[] sns = sn.split("-");
|
|
|
- dingshiqiImpl dingshiqi = new dingshiqiImpl();
|
|
|
- Map<String, String> formUuid = getFormUuid(sns[0]);
|
|
|
- List<Map> list1 = (List<Map>) ydClient.queryData(YDParam.builder().formUuid(formUuid.get("type")).searchCondition(
|
|
|
- JSONObject.toJSONString(UtilMap.map(formUuid.get("sn"), sn))
|
|
|
- ).build(), YDConf.FORM_QUERY.retrieve_list).getData();
|
|
|
- Map map = list1.get(0);
|
|
|
- String instanceId = (String) map.get("formInstanceId");
|
|
|
+
|
|
|
Map param2 = new HashMap();
|
|
|
param2.put("x-acs-dingtalk-access-token", dingshiqi.getAccessToken_PJSS());
|
|
|
Map body3 = new HashMap();
|
|
@@ -515,28 +645,33 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
body3.put("processInstanceId", instanceId);
|
|
|
body3.put("userId", "13810479803");
|
|
|
boolean flag = true;
|
|
|
- do {
|
|
|
+ String taskId = "";
|
|
|
String s = UtilHttp.doGet("https://api.dingtalk.com/v1.0/yida/processes/operationRecords", param2, (Map<String, Object>) body3);
|
|
|
JSONObject obj = JSONObject.parseObject(s);
|
|
|
JSONArray arr = obj.getJSONArray("result");
|
|
|
for (int i = 0; i < arr.size(); i++) {
|
|
|
JSONObject json = arr.getJSONObject(i);
|
|
|
flag = false;
|
|
|
+ if (json.getString("operatorUserId").equals("13810479803") ){
|
|
|
+ taskId = json.getString("taskId");
|
|
|
+ }
|
|
|
if (json.getString("operatorUserId").equals("13810479803") && json.getString("type").equals("TODO")) {
|
|
|
- try {
|
|
|
- taskExecute(instanceId, json.getString("taskId"));
|
|
|
- }catch (McException e){
|
|
|
- log.error("taskExecute:{}",e.getMessage());
|
|
|
- ydClient.operateData(YDParam.builder()
|
|
|
- .formUuid("FORM-F7B0E685C56E41FC939A581F8B7C2665PXPV")
|
|
|
- .formDataJson(JSONObject.toJSONString(UtilMap.map("textField_lzns5l3l, textField_lzns5l3k, textField_lzns5l3m", sn, instanceId, json.getString("taskId"))))
|
|
|
- .build(), YDConf.FORM_OPERATION.create);
|
|
|
- }
|
|
|
+ taskId = json.getString("taskId");
|
|
|
flag = true;
|
|
|
break;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
- } while (flag);
|
|
|
+ if (flag){
|
|
|
+ taskExecute(instanceId, taskId);
|
|
|
+ System.out.println("taskId");
|
|
|
+ }else {
|
|
|
+
|
|
|
+ ydClient.operateData(YDParam.builder()
|
|
|
+ .formUuid("FORM-F7B0E685C56E41FC939A581F8B7C2665PXPV")
|
|
|
+ .formDataJson(JSONObject.toJSONString(UtilMap.map("textField_lzns5l3l, textField_lzns5l3k, textField_lzns5l3m", sn, instanceId, taskId)))
|
|
|
+ .build(), YDConf.FORM_OPERATION.create);
|
|
|
+ }
|
|
|
if(list.size() > 0){
|
|
|
ydClient.operateData(YDParam.builder()
|
|
|
.appType(ydConf.getAppType()).systemToken(ydConf.getSystemToken())
|
|
@@ -612,7 +747,6 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
ArrayList<Object> objects1 = new ArrayList<>();
|
|
|
for (Map sealjsonmap : sealjsonlist) {
|
|
|
JSONObject auths = new JSONObject();
|
|
|
-
|
|
|
String sealInstanceId = (String) sealjsonmap.get("instanceId");
|
|
|
Map sealdata1 = (Map) ydClient.queryData(YDParam.builder().formInstId(sealInstanceId)
|
|
|
.appType(ydConf.getAppType()).systemToken(ydConf.getSystemToken())
|
|
@@ -643,7 +777,6 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
String jsonData = String.valueOf(sealAuthsArray);
|
|
|
// 解析JSON数据
|
|
|
ArrayNode arrayNode = (ArrayNode) mapper.readTree(jsonData);
|
|
|
-
|
|
|
// 处理每个对象
|
|
|
List<Map<String, Object>> resultList = new ArrayList<>();
|
|
|
for (JsonNode node : arrayNode) {
|
|
@@ -718,6 +851,8 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
JSONObject obj = new JSONObject();
|
|
|
// obj.put("subject",data.get("textField_ltsbwef0"));//合同名称
|
|
|
obj.put("subject", data.get(getCust(type, "subject")).toString());//合同名称
|
|
|
+ obj.put("creatorName", data.get(getCust(type, "creatorName")).toString());//发起人姓名
|
|
|
+ obj.put("creatorContact", data.get(getCust(type, "creatorContact")).toString());//发起人联系方式
|
|
|
// obj.put("sn",data.get("serialNumberField_ltsbweh2"));//合同编号流水号
|
|
|
obj.put("sn", data.get(getCust(type, "sn")));//合同编号流水号
|
|
|
obj.put("tenantName", data.get(getCust(type, "tenantName")));//发起方公司名称
|
|
@@ -836,20 +971,19 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
if (categoryName.equals("劳动合同") || categoryName.equals("校区劳动合同")
|
|
|
) {
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "tenantNameP")).toString(), data.get(getCust(type, "contactP")).toString()));
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory1());
|
|
|
obj.put("documentParams", params1);
|
|
|
obj.put("signatories", array);
|
|
|
obj.put("send", true);
|
|
|
} else {
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "tenantNameP")).toString(), data.get(getCust(type, "contactP")).toString()));
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory1());
|
|
|
obj.put("documentParams", params2);
|
|
|
obj.put("signatories", array);
|
|
|
obj.put("send", true);
|
|
|
}
|
|
|
JSONObject draft = qysService.createDraft(obj);
|
|
|
System.out.println(draft);
|
|
|
- System.out.println(draft);
|
|
|
if (draft != null) {
|
|
|
String contractId = draft.getString("contractId");
|
|
|
if (contractId != "") {
|
|
@@ -1045,25 +1179,25 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
JSONArray array = new JSONArray();
|
|
|
if (categoryName.equals("续签(固定几年)")) {
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "xm")).toString(), data.get(getCust(type, "contact")).toString()));
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory1());
|
|
|
obj.put("documentParams", params1);
|
|
|
obj.put("signatories", array);
|
|
|
obj.put("send", true);
|
|
|
} else if (categoryName.equals("续签(无固定期限)")) {
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "xm")).toString(), data.get(getCust(type, "contact")).toString()));
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory1());
|
|
|
obj.put("documentParams", params2);
|
|
|
obj.put("signatories", array);
|
|
|
obj.put("send", true);
|
|
|
} else if (categoryName.equals("续签(员工合同到期公司不再与员工续签)")) {
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "xm")).toString(), data.get(getCust(type, "contact")).toString()));
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory1());
|
|
|
obj.put("documentParams", params3);
|
|
|
obj.put("signatories", array);
|
|
|
obj.put("send", true);
|
|
|
} else {
|
|
|
array.add(getPeopSignatory(data.get(getCust(type, "xm")).toString(), data.get(getCust(type, "contact")).toString()));
|
|
|
- array.add(getCompASignatory());
|
|
|
+ array.add(getCompASignatory1());
|
|
|
obj.put("documentParams", params4);
|
|
|
obj.put("signatories", array);
|
|
|
obj.put("send", true);
|
|
@@ -1090,7 +1224,7 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
return McR.success("success");
|
|
|
}
|
|
|
|
|
|
- // TODO zid
|
|
|
+
|
|
|
@Override
|
|
|
public String callback1(Map<String, String> param) throws Exception {
|
|
|
dingshiqiImpl dingshiqi = new dingshiqiImpl();
|
|
@@ -1128,6 +1262,54 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
return "success";
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public McR viewurl(String contractId, String pageType) throws Exception {
|
|
|
+ try {
|
|
|
+ log.info("获取合同浏览页面 {},{}", contractId,pageType);
|
|
|
+ JSONObject urlR = qysService.viewurl(contractId,pageType);
|
|
|
+ String viewUrl = urlR.getString("viewUrl");
|
|
|
+ if (!QYS_SUCCESS_CODE.equals(urlR.getString("code"))) {
|
|
|
+ return McR.error(urlR.getString("code"), urlR.getString("message"));
|
|
|
+ } else {
|
|
|
+ return McR.success(viewUrl);
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ return McR.error("401", "获取失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public McR audit(String contractId) throws Exception {
|
|
|
+ try {
|
|
|
+ log.info("合同审批 {}", contractId);
|
|
|
+ JSONObject urlR = qysService.audit(contractId);
|
|
|
+ String viewUrl = urlR.getString("viewUrl");
|
|
|
+ if (!QYS_SUCCESS_CODE.equals(urlR.getString("code"))) {
|
|
|
+ return McR.error(urlR.getString("code"), urlR.getString("message"));
|
|
|
+ } else {
|
|
|
+ return McR.success(viewUrl);
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ return McR.error("401", "获取失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+// @Override
|
|
|
+// public McR appointurldownload(String contractId) throws Exception {
|
|
|
+// try {
|
|
|
+// log.info("获取预签署地址 {}", contractId);
|
|
|
+// JSONObject urlR = qysService.appointurldownload(contractId);
|
|
|
+// String presignUrl = urlR.getString("presignUrl");
|
|
|
+// if (!QYS_SUCCESS_CODE.equals(urlR.getString("code"))) {
|
|
|
+// return McR.error(urlR.getString("code"), urlR.getString("message"));
|
|
|
+// } else {
|
|
|
+// return McR.success(presignUrl);
|
|
|
+// }
|
|
|
+// } catch (Exception e) {
|
|
|
+// return McR.error("401", "获取失败");
|
|
|
+// }
|
|
|
+// }
|
|
|
+
|
|
|
private Map<String, String> getFormUuid(String type) {
|
|
|
Map<String, String> map = UtilMap.empty();
|
|
|
switch (type) {
|
|
@@ -1136,6 +1318,11 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("sn", "serialNumberField_ltsbweh2");
|
|
|
map.put("contractId", "textField_lwah8x72");
|
|
|
break;
|
|
|
+ case "CG11"://框架采购
|
|
|
+ map.put("type", "FORM-82E566F8576E44D3AB4B34033A27E76FEB75");
|
|
|
+ map.put("sn", "serialNumberField_ltsbweh2");
|
|
|
+ map.put("contractId", "textField_lwah8x72");
|
|
|
+ break;
|
|
|
case "HT02"://框架
|
|
|
map.put("type", "FORM-5DB656AF0F0E4EFA85A4739D55C23ED85BXO");
|
|
|
map.put("sn", "serialNumberField_lvz8coae");
|
|
@@ -1155,7 +1342,7 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
map.put("sn", "serialNumberField_lu7ycpuc");
|
|
|
map.put("contractId", "textField_lwg219kl");
|
|
|
break;
|
|
|
- case "HR03"://hr用印
|
|
|
+ case "HR09"://hr用印
|
|
|
map.put("type", "FORM-54972289A0B7416287A9BA44DA6CCDC50QUC");
|
|
|
map.put("sn", "serialNumberField_lu9euh7o");
|
|
|
break;
|
|
@@ -1228,12 +1415,23 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
* @param
|
|
|
* @return
|
|
|
*/
|
|
|
- private Map getCompASignatory() {
|
|
|
+ private Map getCompASignatory(String sealId) {
|
|
|
+ JSONObject signatory = new JSONObject();
|
|
|
+ ArrayList<Object> actions = new ArrayList<>();
|
|
|
+ Map sss = new HashMap<>();
|
|
|
+ sss.put("sealId", sealId);
|
|
|
+ sss.put("type", "CORPORATE");
|
|
|
+ sss.put("serialNo", 1);
|
|
|
+ actions.add(sss);
|
|
|
+ signatory.put("tenantType", "COMPANY");
|
|
|
+ signatory.put("actions", actions);
|
|
|
+ return signatory;
|
|
|
+ }
|
|
|
+ private Map getCompASignatory1() {
|
|
|
JSONObject signatory = new JSONObject();
|
|
|
signatory.put("tenantType", "COMPANY");
|
|
|
return signatory;
|
|
|
}
|
|
|
-
|
|
|
/***
|
|
|
* 获取个人签署对象
|
|
|
* @param name
|
|
@@ -1250,8 +1448,51 @@ public class RsQysServiceImpl implements RsQysService {
|
|
|
//根据附件创建合同文档得到文档Id
|
|
|
public List<String> createbyfile(Map data, String type) throws Exception {
|
|
|
// String jsonString = data.get("attachmentField_ltsbweir").toString();
|
|
|
- String jsonString = data.get(getCust(type, "fujian")).toString();
|
|
|
- JSONArray jsonArray = JSONObject.parseArray(jsonString);
|
|
|
+ String formuuid ="FORM-B27C1AE7298648F29E836B5FDF469DBDPFCK";//其他用印
|
|
|
+ String hrformuuid ="FORM-54972289A0B7416287A9BA44DA6CCDC50QUC";//hr09
|
|
|
+ String htformuuid ="FORM-55D56A69CCCE4043A01660C8910E33BAQ4N0";//合同用印
|
|
|
+ String kjformuuid ="FORM-54972289A0B7416287A9BA44DA6CCDC50QUC";//框架用印
|
|
|
+ String jsonString = "";
|
|
|
+
|
|
|
+// 根据categoryName的值来决定从data中获取哪个键对应的值
|
|
|
+ //其他用印处理附件选择问题
|
|
|
+ if (type.equals(formuuid)) {
|
|
|
+ String categoryName = String.valueOf(data.get(getCust(formuuid, "categoryName")));
|
|
|
+// String ghl = data.get("selectField_ltwktalx") != null ? data.get("selectField_ltwktalx").toString() : "";
|
|
|
+ if ("物理用印外带场景".equals(categoryName) || "物理用印公司用印场景".equals(categoryName) ) {
|
|
|
+ jsonString = data.get(getCust(type, "fujian1")) != null ? data.get(getCust(type, "fujian1")).toString() : "";
|
|
|
+ } else {
|
|
|
+ jsonString = data.get(getCust(type, "fujian")) != null ? data.get(getCust(type, "fujian")).toString() : "";
|
|
|
+ }
|
|
|
+ } else if (type.equals(hrformuuid)) {
|
|
|
+ String categoryName = String.valueOf(data.get(getCust(hrformuuid, "categoryName")));
|
|
|
+ String sfbh = data.get("selectField_lu9euh7u") != null ? data.get("selectField_lu9euh7u").toString() : "";
|
|
|
+ if ("内部企业单签".equals(categoryName) && "是".equals(sfbh)) {
|
|
|
+ jsonString = data.get(getCust(type, "fujian")) != null ? data.get(getCust(type, "fujian")).toString() : "";
|
|
|
+ } else {
|
|
|
+ jsonString = data.get(getCust(type, "fujian1")) != null ? data.get(getCust(type, "fujian1")).toString() : "";
|
|
|
+ }
|
|
|
+ } else if (type.equals(htformuuid)) {
|
|
|
+// String categoryName = String.valueOf(data.get(getCust(htformuuid, "categoryName")));
|
|
|
+ String yycj = data.get("selectField_ltsbwei5") != null ? data.get("selectField_ltsbwei5").toString() : "";
|
|
|
+ if ("我方电子对方物理用印".equals(yycj)) {
|
|
|
+ jsonString = data.get(getCust(type, "fujian1")) != null ? data.get(getCust(type, "fujian1")).toString() : "";
|
|
|
+ } else {
|
|
|
+ jsonString = data.get(getCust(type, "fujian")) != null ? data.get(getCust(type, "fujian")).toString() : "";
|
|
|
+ }
|
|
|
+ } else if (type.equals(kjformuuid)) {
|
|
|
+// String categoryName = String.valueOf(data.get(getCust(htformuuid, "categoryName")));
|
|
|
+ String yycj = data.get("selectField_lvz8cob7") != null ? data.get("selectField_lvz8cob7").toString() : "";
|
|
|
+ if ("我方电子对方物理用印".equals(yycj)) {
|
|
|
+ jsonString = data.get(getCust(type, "fujian1")) != null ? data.get(getCust(type, "fujian1")).toString() : "";
|
|
|
+ } else {
|
|
|
+ jsonString = data.get(getCust(type, "fujian")) != null ? data.get(getCust(type, "fujian")).toString() : "";
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ jsonString = data.get(getCust(type, "fujian")) != null ? data.get(getCust(type, "fujian")).toString() : "";
|
|
|
+
|
|
|
+ }
|
|
|
+ JSONArray jsonArray = JSONObject.parseArray(jsonString);
|
|
|
List<String> resultList = new ArrayList<>();
|
|
|
if (jsonArray != null) {
|
|
|
for (int i = 0; i < jsonArray.size(); i++) {
|