|
|
@@ -76,14 +76,14 @@ public class OwnNoticeServiceImpl implements IOwnNoticeService
|
|
|
* @param tableId 表主键
|
|
|
* @param title 标题
|
|
|
* @param type 类型 00待办 01消息
|
|
|
- * @param noticeType 消息类型 00:平台欢迎信, 01:发起人审批结果通知, 02:经办人的平台审批结果通知, 03:融资企业经办人融信失效消息通知, 04:融资企业经办人融信生效消息通知
|
|
|
- * @param workType 待办类型 00:融信审批待审批, 01:审批拒绝待编辑, 02:核心企业待确权, 03:待盖章, 04:待签收, 05:待融资, 06:待还款
|
|
|
+ * @param noticeType 消息类型 00:平台欢迎信, 01:发起人审批结果通知, 02:经办人的平台审批结果通知, 03:融资企业经办人融信失效消息通知, 04:融资企业经办人融信生效消息通知, 05:融信即将失效消息通知, 06:还款消息通知
|
|
|
+ * @param workType 待办类型 00:融信审批待审批, 01:审批拒绝待编辑, 02:核心企业待确权, 03:待盖章, 04:待签收, 05:待融资, 06:待还款, 07:平台内部待办
|
|
|
* @param messageSend 是否发送短信 0不发送 1发送
|
|
|
* @param userIds 收到信息用户id集合
|
|
|
* @param templateCode 短信模板(aliyun_message_code)
|
|
|
*/
|
|
|
@Override
|
|
|
- public R sendNotice(String companyId, String tableId, String title, String type, String noticeType, String workType, String messageSend, List<Long> userIds, String templateCode)
|
|
|
+ public R sendNotice(String companyId, String tableId, String title, String type, String noticeType, String workType, String messageSend, String userIds, String templateCode)
|
|
|
{
|
|
|
//新增通知公告
|
|
|
SysNotice notice = new SysNotice();
|
|
|
@@ -107,13 +107,14 @@ public class OwnNoticeServiceImpl implements IOwnNoticeService
|
|
|
//发送短信手机号
|
|
|
String phones = "";
|
|
|
//新增通知公告接收人
|
|
|
- for (Long userId : userIds) {
|
|
|
+ String[] userIdList = userIds.split(",");
|
|
|
+ for (String userId : userIdList) {
|
|
|
SysNoticeUserRel sysNoticeUserRel = new SysNoticeUserRel();
|
|
|
sysNoticeUserRel.setSnyrNoticeId(id);
|
|
|
- sysNoticeUserRel.setSnyrUserId(userId);
|
|
|
+ sysNoticeUserRel.setSnyrUserId(Long.parseLong(userId));
|
|
|
iSysNoticeUserRelService.insertSysNoticeUserRel(sysNoticeUserRel);
|
|
|
//查询发送人手机号
|
|
|
- SysUser user = iSysUserService.selectUserById(userId);
|
|
|
+ SysUser user = iSysUserService.selectUserById(Long.parseLong(userId));
|
|
|
if (CommonUtil.isEmpty(phones)){
|
|
|
phones = user.getUserName();
|
|
|
}else {
|