|
@@ -26,10 +26,10 @@ public class WmBizReminderServiceImpl implements WmBizReminderService {
|
|
|
* 标记未读提醒
|
|
|
*
|
|
|
* @param bizReminderType 提醒类型
|
|
|
+ * @param deptId 部门id
|
|
|
*/
|
|
|
@Override
|
|
|
- public void markUnread(UpmsType.BizReminderType bizReminderType) {
|
|
|
- Integer deptId = SecurityUtils.getUser().getDeptId();
|
|
|
+ public void markUnread(UpmsType.BizReminderType bizReminderType, Integer deptId) {
|
|
|
String cacheKey = bizReminderType.getKey() + deptId;
|
|
|
|
|
|
redisTemplate.opsForValue().set(cacheKey, UpmsState.BizReminderReadStatus.UNREAD.getStatus());
|
|
@@ -39,10 +39,10 @@ public class WmBizReminderServiceImpl implements WmBizReminderService {
|
|
|
* 标记已读提醒
|
|
|
*
|
|
|
* @param bizReminderType 提醒类型
|
|
|
+ * @param deptId 部门id
|
|
|
*/
|
|
|
@Override
|
|
|
- public void markRead(UpmsType.BizReminderType bizReminderType) {
|
|
|
- Integer deptId = SecurityUtils.getUser().getDeptId();
|
|
|
+ public void markRead(UpmsType.BizReminderType bizReminderType, Integer deptId) {
|
|
|
String cacheKey = bizReminderType.getKey() + deptId;
|
|
|
|
|
|
redisTemplate.opsForValue().set(cacheKey, UpmsState.BizReminderReadStatus.READ.getStatus());
|