|
@@ -137,23 +137,16 @@ public class FlowableController extends BaseController
|
|
|
lambdaQueryWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
|
|
|
List<SysUserCompanyRel> listUser = iSysUserCompanyRelService.findSysUserCompanyRels(lambdaQueryWrapper);
|
|
|
//获取发送人
|
|
|
- Long use = null;
|
|
|
- List<Long> longUserList = new ArrayList<>();
|
|
|
- if(listUser.size() > 0) {
|
|
|
- use = listUser.get(0).getSucrUserId();
|
|
|
- longUserList.add(use);
|
|
|
- }
|
|
|
+ Long use = listUser.get(0).getSucrUserId();
|
|
|
//发送盖章待办
|
|
|
remoteSystemService.sendNotice(zfiCoreId, id,
|
|
|
"核心企业开立审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
|
|
|
- "00",null,"03","0", longUserList,null);
|
|
|
+ "00",null,"03","0", use.toString(),null);
|
|
|
//向发起人发起最终结果
|
|
|
//发送人
|
|
|
- List<Long> longUser = new ArrayList<>();
|
|
|
- longUser.add(userId);
|
|
|
remoteSystemService.sendNotice(zfiCoreId, id,
|
|
|
"核心企业开立融信编号为" + zfiNumber + "的资料审批已通过",
|
|
|
- "01","01",null,"0", longUser, null);
|
|
|
+ "01","01",null,"0", userId.toString(), null);
|
|
|
//核心企业确权审批
|
|
|
}else if("1000000007".equals(menuId)){
|
|
|
//融信主键
|
|
@@ -177,15 +170,10 @@ public class FlowableController extends BaseController
|
|
|
//是否经办人(1:是)
|
|
|
queryWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
|
|
|
List<SysUserCompanyRel> list = iSysUserCompanyRelService.findSysUserCompanyRels(queryWrapper);
|
|
|
- Long use = null;
|
|
|
- List<Long> longUserList = new ArrayList<>();
|
|
|
- if(list.size() > 0){
|
|
|
- use = list.get(0).getSucrUserId();
|
|
|
- longUserList.add(use);
|
|
|
- }
|
|
|
+ Long use = list.get(0).getSucrUserId();
|
|
|
remoteSystemService.sendNotice(zfiCoreId, id,
|
|
|
"确权审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
|
|
|
- "00",null,"03","0", longUserList,null);
|
|
|
+ "00",null,"03","0", use.toString(),null);
|
|
|
}
|
|
|
//融资企业融信申请审批通过
|
|
|
else if("1000000002".equals(menuId)){
|
|
@@ -211,11 +199,9 @@ public class FlowableController extends BaseController
|
|
|
//创建人名称
|
|
|
SysUser sysUser = sysUserService.getById(user);
|
|
|
String userName = sysUser.getNickName();
|
|
|
- List list = new ArrayList();
|
|
|
- list.add(user);
|
|
|
//TODO 发起人最终结果【通过】消息通知
|
|
|
String title = "【审批通过】由"+ userName +"于"+ createTime +"发起的:融信"+ number +"资料审核已通过,请进行下一步业务操作;";
|
|
|
- remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",list,"");
|
|
|
+ remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"");
|
|
|
//调用平台审批接口
|
|
|
Map map = new HashMap();
|
|
|
//实体类转map
|
|
@@ -283,10 +269,8 @@ public class FlowableController extends BaseController
|
|
|
if(list.size()>0){
|
|
|
user = list.get(0).getSucrUserId();
|
|
|
}
|
|
|
- List userList = new ArrayList();
|
|
|
- userList.add(user);
|
|
|
String title = "【合同签署】由【" + companyName +"】发起的融信【" + zfiNumber + "】资料待签署合同";
|
|
|
- remoteSystemService.sendNotice(company,zfiId,"title","00","","03","1",userList,"");
|
|
|
+ remoteSystemService.sendNotice(company,zfiId,"title","00","","03","1",user.toString(),"");
|
|
|
}
|
|
|
//TODO 发起人最终结果【通过】消息通知
|
|
|
//查询发起人,融资企业Id
|
|
@@ -302,10 +286,8 @@ public class FlowableController extends BaseController
|
|
|
//创建人名称
|
|
|
SysUser sysUser = sysUserService.getById(user);
|
|
|
String userName = sysUser.getNickName();
|
|
|
- List list = new ArrayList();
|
|
|
- list.add(user);
|
|
|
String title = "【审批通过】由"+ userName +"于"+ createTime +"发起的:融信"+ number +"资料审核已通过,请进行下一步业务操作;";
|
|
|
- remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",list,"");
|
|
|
+ remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"");
|
|
|
}//融资企业补充资料审批通过
|
|
|
else if("1000000003".equals(menuId)){
|
|
|
LambdaQueryWrapper<ZcFinanceInf> wrapper = new LambdaQueryWrapper<>();
|
|
@@ -363,12 +345,7 @@ public class FlowableController extends BaseController
|
|
|
userCompanyWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
|
|
|
List<SysUserCompanyRel> userCompanyList = iSysUserCompanyRelService.findSysUserCompanyRels(userCompanyWrapper);
|
|
|
//经办人
|
|
|
- Long supplierUserId = null;
|
|
|
- if (userCompanyList.size() > 0){
|
|
|
- supplierUserId = userCompanyList.get(0).getSucrUserId();
|
|
|
- }
|
|
|
- List supplierUserList = new ArrayList();
|
|
|
- supplierUserList.add(supplierUserId);
|
|
|
+ Long supplierUserId = userCompanyList.get(0).getSucrUserId();;
|
|
|
/*--------查询供应商企业名称-----------*/
|
|
|
//查询企业表
|
|
|
SysCompany supplierCompany = sysCompanyService.getById(zfiSupplierId);
|
|
@@ -376,7 +353,7 @@ public class FlowableController extends BaseController
|
|
|
String supplierName = supplierCompany.getScyName();
|
|
|
//标题
|
|
|
String title = "【合同签署】由【"+supplierName+"】发起的融信【"+zfiNumber+"】资料待签署合同";
|
|
|
- remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserList,"");
|
|
|
+ remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"");
|
|
|
|
|
|
}
|
|
|
} //平台审批通过
|
|
@@ -440,7 +417,7 @@ public class FlowableController extends BaseController
|
|
|
else if ("2".equals(zfiCreateType)){
|
|
|
//标题
|
|
|
String title = "【合同签署】由【"+supplierName+"】发起的融信【"+zfiNumber+"】资料待签署合同";
|
|
|
- remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserList,"");
|
|
|
+ remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"");
|
|
|
}
|
|
|
//更新融信表状态
|
|
|
wrapper.eq(ZcFinanceInf::getZfiId,zfiId);
|
|
@@ -448,7 +425,7 @@ public class FlowableController extends BaseController
|
|
|
// TODO 不管什么类型都给 融资企业经办人 最终结果【通过】消息通知
|
|
|
//标题
|
|
|
String title = "【审批通过】您提交于【"+coreName +"】的融信【"+zfiNumber+"】已审批通过,请进行下一步业务操作";
|
|
|
- remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserList,"");
|
|
|
+ remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserId.toString(),"");
|
|
|
if ("2".equals(zfiCreateType)){
|
|
|
Map map = new HashMap();
|
|
|
if (inf != null) {
|
|
@@ -573,13 +550,11 @@ public class FlowableController extends BaseController
|
|
|
//创建人名称
|
|
|
SysUser sysUser = sysUserService.getById(user);
|
|
|
String userName = sysUser.getNickName();
|
|
|
- List list = new ArrayList();
|
|
|
- list.add(user);
|
|
|
String title = "【审批拒绝】由"+ userName +"于"+ createTime +"发起的:融信"+ number +"审批被拒绝,拒绝的理由为:"+ reason;
|
|
|
- remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",list,"");
|
|
|
+ remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"");
|
|
|
//TODO 发起人生成待办
|
|
|
title = "【内部审批】融信【"+number+"】资料待审批,审批发起人【" + userName +"】";
|
|
|
- remoteSystemService.sendNotice(company,zfiId,title,"00","","01","0",list,"");
|
|
|
+ remoteSystemService.sendNotice(company,zfiId,title,"00","","01","0",user.toString(),"");
|
|
|
}//融资企业融信开立拒绝
|
|
|
else if("1000000001".equals(menuId)){
|
|
|
LambdaQueryWrapper<ZcFinanceInf> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
@@ -615,7 +590,7 @@ public class FlowableController extends BaseController
|
|
|
List list = new ArrayList();
|
|
|
list.add(user);
|
|
|
String title = "【审批拒绝】由"+ userName +"于"+ createTime +"发起的:融信"+ number +"审批被拒绝,拒绝的理由为:"+reason;
|
|
|
- remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",list,"");
|
|
|
+ remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"");
|
|
|
}//融资企业补充资料审批拒绝
|
|
|
else if("1000000003".equals(menuId)){
|
|
|
LambdaQueryWrapper<ZcFinanceInf> wrapper = new LambdaQueryWrapper<>();
|
|
@@ -678,7 +653,7 @@ public class FlowableController extends BaseController
|
|
|
String coreName = coreCompany.getScyName();
|
|
|
//标题
|
|
|
String title = "【审批拒绝】您提交于【"+coreName +"】的融信【"+zfiNumber+"】审批被拒绝,拒绝的理由为:【审批意见】";
|
|
|
- remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserList,"");
|
|
|
+ remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserId.toString(),"");
|
|
|
}//融资企业签收审批
|
|
|
else if("1000000005".equals(menuId)){
|
|
|
LambdaQueryWrapper<ZcFinanceInf> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|