|
@@ -385,6 +385,19 @@ public class FlowableController extends BaseController
|
|
|
String zfiSupplierId = inf.getZfiSupplierId();
|
|
|
//融信创建(0:供应商申请, 1:核心企业开立, 2:供应商开立)
|
|
|
String zfiCreateType = inf.getZfiCreateType();
|
|
|
+ /*----------查询核心企业经办人----------*/
|
|
|
+ //查询用户与企业关系表
|
|
|
+ LambdaQueryWrapper<SysUserCompanyRel>companyWrapper = new LambdaQueryWrapper<>();
|
|
|
+ //企业id
|
|
|
+ companyWrapper.eq(SysUserCompanyRel::getSucrCompanyId,zfiCoreId);
|
|
|
+ //是否经办人 0:不是, 1:是
|
|
|
+ companyWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
|
|
|
+ List<SysUserCompanyRel> companyList = iSysUserCompanyRelService.findSysUserCompanyRels(companyWrapper);
|
|
|
+ //经办人
|
|
|
+ Long coreUserId = null;
|
|
|
+ if (companyList.size() > 0){
|
|
|
+ coreUserId = companyList.get(0).getSucrUserId();
|
|
|
+ }
|
|
|
/*----------查询供应商企业经办人----------*/
|
|
|
//查询用户与企业关系表
|
|
|
LambdaQueryWrapper<SysUserCompanyRel>userCompanyWrapper = new LambdaQueryWrapper<>();
|
|
@@ -447,6 +460,10 @@ public class FlowableController extends BaseController
|
|
|
//标题
|
|
|
String title = "【审批通过】您提交于【"+coreName +"】的融信【"+zfiNumber+"】已审批通过,请进行下一步业务操作";
|
|
|
remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserId.toString(),"", null, null);
|
|
|
+ // TODO 不管什么类型都给 核心企业经办人 确权待办
|
|
|
+ //标题
|
|
|
+ String titles = "【融信确权】由【"+coreName+"】发起的融信【"+zfiNumber+"】资料待确权";
|
|
|
+ remoteSystemService.sendNotice(zfiCoreId, zfiId,titles,"00","","02","0",coreUserId.toString(),"", "01", "/credit/confirmationAudit/"+zfiId);
|
|
|
// if ("2".equals(zfiCreateType)){
|
|
|
// Map map = new HashMap();
|
|
|
// if (inf != null) {
|