|
@@ -37,6 +37,8 @@ public class FinanceTimedTask {
|
|
private ISysNoticeService iSysNoticeService;
|
|
private ISysNoticeService iSysNoticeService;
|
|
@Autowired
|
|
@Autowired
|
|
private RemoteConfigService configService;
|
|
private RemoteConfigService configService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISysUserCompanyRelService sysUserCompanyRelService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 融信消息提醒定时跑批
|
|
* 融信消息提醒定时跑批
|
|
@@ -81,7 +83,7 @@ public class FinanceTimedTask {
|
|
//到期前30天发送消息
|
|
//到期前30天发送消息
|
|
//标题
|
|
//标题
|
|
String title = "【融信到期】您持有的一笔融信【"+zfiAmount+"】(大写:"+zfiAmountBig+")的融信【"+zfiNumber+"】将于【"+zfiEffectiveDate+"】失效,请尽快去融资";
|
|
String title = "【融信到期】您持有的一笔融信【"+zfiAmount+"】(大写:"+zfiAmountBig+")的融信【"+zfiNumber+"】将于【"+zfiEffectiveDate+"】失效,请尽快去融资";
|
|
- remoteSystemService.sendNotice(companyId, zfiId,title,"01","05","","0",user,"");
|
|
|
|
|
|
+ remoteSystemService.sendNotice(companyId, zfiId,title,"01","05","","0",user,"",null,null);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -119,7 +121,7 @@ public class FinanceTimedTask {
|
|
//标题
|
|
//标题
|
|
String title = "【融资待办】【"+scyName+"】签发的融信【"+zfiNumber+"】将于【"+zfiEffectiveDate+"】失效," +
|
|
String title = "【融资待办】【"+scyName+"】签发的融信【"+zfiNumber+"】将于【"+zfiEffectiveDate+"】失效," +
|
|
"融信金额【"+zfiAmount+"】(大写:"+zfiAmountBig+"),请尽快融资";
|
|
"融信金额【"+zfiAmount+"】(大写:"+zfiAmountBig+"),请尽快融资";
|
|
- remoteSystemService.sendNotice(companyId, zfiId,title,"00","","05","0",user,"");
|
|
|
|
|
|
+ remoteSystemService.sendNotice(companyId, zfiId,title,"00","","05","0",user,"",null,null);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -186,10 +188,6 @@ public class FinanceTimedTask {
|
|
for(Map res :list){
|
|
for(Map res :list){
|
|
//主键
|
|
//主键
|
|
String zfiId = CommonUtil.objToString(res.get("zfiId"));
|
|
String zfiId = CommonUtil.objToString(res.get("zfiId"));
|
|
- //经办人Id
|
|
|
|
- String user = CommonUtil.objToString(res.get("sucrUserId"));
|
|
|
|
- //企业
|
|
|
|
- String companyId = CommonUtil.objToString(res.get("sucrCompanyId"));
|
|
|
|
//融信编号
|
|
//融信编号
|
|
String zfiNumber = CommonUtil.objToString(res.get("zfiNumber"));
|
|
String zfiNumber = CommonUtil.objToString(res.get("zfiNumber"));
|
|
//签发有效期
|
|
//签发有效期
|
|
@@ -200,13 +198,24 @@ public class FinanceTimedTask {
|
|
String zfiAmountBig = AmtUtil.convert(AmtUtil.moneyFormat(zfiAmount));
|
|
String zfiAmountBig = AmtUtil.convert(AmtUtil.moneyFormat(zfiAmount));
|
|
//供应商
|
|
//供应商
|
|
String supplierName = CommonUtil.objToString(res.get("supplierName"));
|
|
String supplierName = CommonUtil.objToString(res.get("supplierName"));
|
|
|
|
+ //平台部门Id
|
|
|
|
+ String deptId = configService.selectConfigByKey("platform_dept").getMsg();
|
|
|
|
+ //平台部门所含人员
|
|
|
|
+ String user = "";
|
|
|
|
+ LambdaQueryWrapper<SysUserCompanyRel> companyWrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ companyWrapper.eq(SysUserCompanyRel::getSucrDeptId,deptId);
|
|
|
|
+ companyWrapper.eq(SysUserCompanyRel::getSucrCompanyId,"000000");
|
|
|
|
+ List<SysUserCompanyRel> userList = sysUserCompanyRelService.findSysUserCompanyRels(companyWrapper);
|
|
|
|
+ for (SysUserCompanyRel sysUser:userList) {
|
|
|
|
+ user += CommonUtil.objToString(sysUser.getSucrUserId())+",";
|
|
|
|
+ }
|
|
// List userList = new ArrayList();
|
|
// List userList = new ArrayList();
|
|
// userList.add(user);
|
|
// userList.add(user);
|
|
//到期前3天生成平台内部待办
|
|
//到期前3天生成平台内部待办
|
|
//标题
|
|
//标题
|
|
String title = "【融资待办】【"+supplierName+"】融信【"+zfiNumber+"】融信金额【"+zfiAmount+"】(大写:"+zfiAmountBig+")" +
|
|
String title = "【融资待办】【"+supplierName+"】融信【"+zfiNumber+"】融信金额【"+zfiAmount+"】(大写:"+zfiAmountBig+")" +
|
|
"将于【"+zfiEffectiveDate+"】失效,请相关人员跟进!";
|
|
"将于【"+zfiEffectiveDate+"】失效,请相关人员跟进!";
|
|
- remoteSystemService.sendNotice(companyId, zfiId,title,"00","","07","0",user,"");
|
|
|
|
|
|
+ remoteSystemService.sendNotice("000000", zfiId,title,"00","","07","0",user,"","00",null);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|