我的--注销账户--添加--添加对删除账户时对其他人的通知
This commit is contained in:
parent
90841917d6
commit
d418aa9e8e
@ -1949,6 +1949,9 @@ public class AppSystemController extends BaseController {
|
||||
// 现不删除其点赞数据.
|
||||
userFollowService.deleteSysUserFollowUserId(userId);
|
||||
|
||||
// 清理系统通知 sys_user_notification 表中的数据, sender_id = user_id的数据
|
||||
userNotificationService.deleteSysUserNotificationBySenderId(userId);
|
||||
|
||||
return success();
|
||||
}else{
|
||||
return error();
|
||||
|
||||
@ -90,4 +90,9 @@ public interface SysUserNotificationMapper
|
||||
*消息--查看新增点赞消息
|
||||
*/
|
||||
public List<WorkLikeDto> getWorkLikeList(Long userId);
|
||||
|
||||
/*
|
||||
* 注销账户是 删除通知数据
|
||||
* */
|
||||
public int deleteSysUserNotificationBySenderId(Long userId);
|
||||
}
|
||||
|
||||
@ -90,4 +90,9 @@ public interface ISysUserNotificationService
|
||||
* 消息--查看点赞消息列表
|
||||
* */
|
||||
public List<WorkLikeDto> getWorkLikeList(Long userId);
|
||||
|
||||
/*
|
||||
* 注销账户是 删除通知数据
|
||||
* */
|
||||
public int deleteSysUserNotificationBySenderId(Long userId);
|
||||
}
|
||||
|
||||
@ -198,4 +198,12 @@ public class SysUserNotificationServiceImpl implements ISysUserNotificationServi
|
||||
public List<WorkLikeDto> getWorkLikeList(Long userId){
|
||||
return sysUserNotificationMapper.getWorkLikeList(userId);
|
||||
}
|
||||
|
||||
/*
|
||||
* 注销账户是 删除通知数据
|
||||
* */
|
||||
@Override
|
||||
public int deleteSysUserNotificationBySenderId(Long userId){
|
||||
return sysUserNotificationMapper.deleteSysUserNotificationBySenderId(userId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -146,4 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<delete id="deleteSysUserNotificationBySenderId">
|
||||
delete from sys_user_notification where sender_id = #{userId}
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user