Browse Source

审批url

sqg 3 years ago
parent
commit
16ab5c9e4b

+ 6 - 4
sc-service/src/main/java/com/huyi/service/common/flowable/controller/FlowableController.java

@@ -143,9 +143,10 @@ public class  FlowableController extends BaseController
             //获取发送人
             Long use = listUser.get(0).getSucrUserId();
             //发送盖章待办
-            remoteSystemService.sendNotice(zfiCoreId, id,
+            String zfiId = id;
+            remoteSystemService.sendNotice(zfiCoreId, zfiId,
                     "核心企业开立审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
-                    "00",null,"03","0", use.toString(),null, null, null);
+                    "00",null,"03","0", use.toString(),null, "01", "/credit/creditSeal/" + zfiId);
             //向发起人发起最终结果
             //发送人
             remoteSystemService.sendNotice(zfiCoreId, id,
@@ -175,9 +176,10 @@ public class  FlowableController extends BaseController
             queryWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
             List<SysUserCompanyRel> list = iSysUserCompanyRelService.findSysUserCompanyRels(queryWrapper);
             Long use = list.get(0).getSucrUserId();
-            remoteSystemService.sendNotice(zfiCoreId, id,
+            String zfiId = id;
+            remoteSystemService.sendNotice(zfiCoreId, zfiId,
                     "确权审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
-                    "00",null,"03","0", use.toString(),null, null, null);
+                    "00",null,"03","0", use.toString(),null, "01", "/credit/confirmationAudit/" + zfiId);
             //TODO 经办人发送最终消息通知
             remoteSystemService.sendNotice(zfiCoreId, id,
                     "确权审批融信编号为" + zfiNumber + "的资料审批已通过",

+ 4 - 4
sc-service/src/main/java/com/huyi/service/common/flowable/service/impl/ApprovalServiceImpl.java

@@ -117,14 +117,14 @@ public class ApprovalServiceImpl implements ApprovalService {
                 //查询融资企业经办人
                 LambdaQueryWrapper<SysUserCompanyRel> lambdaQueryWrapper = new LambdaQueryWrapper<>();
                 //融资企业id
-                lambdaQueryWrapper.eq(SysUserCompanyRel::getSucrCompanyId,zfiSupplierId);
+                lambdaQueryWrapper.eq(SysUserCompanyRel::getSucrCompanyId,zfiCoreId);
                 //是否经办人(1:是)
                 lambdaQueryWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
                 List<SysUserCompanyRel> listUser = iSysUserCompanyRelService.findSysUserCompanyRels(lambdaQueryWrapper);
                 //发送盖章待办
-                remoteSystemService.sendNotice(zfiSupplierId, zfiId,
+                remoteSystemService.sendNotice(zfiCoreId, zfiId,
                         "核心企业开立审批由"+ scyName + "发起的融信编号为" + zfiNumber + "的资料待盖章",
-                        "00",null,"03","0", listUser.get(0).getSucrUserId().toString(),null, null, null);
+                        "00",null,"03","0", listUser.get(0).getSucrUserId().toString(),null, "01", "/credit/creditSeal/" + zfiId);
                 //向发起人发送最终结果【通过】消息通知
                 remoteSystemService.sendNotice(companyId, String.valueOf(userId),
                         "核心企业开立审批融信编号为" + zfiNumber + "的资料审批已通过",
@@ -329,7 +329,7 @@ public class ApprovalServiceImpl implements ApprovalService {
                 //向核心企业经办人发送盖章待办
                 remoteSystemService.sendNotice(zfiCoreId, zfiId,
                         "确权审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
-                        "00",null,"03","0", userId.toString(),null, null, null);
+                        "00",null,"03","0", userId.toString(),null, "01", "/credit/confirmationAudit/" + zfiId);
                 //未配置审批流程
             }else if ("450".equals(resMap.get("code"))) {
                 throw new Exception("未配置审批流程");