类 SysNoticeServiceImpl
java.lang.Object
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
io.github.mangocrisp.spring.taybct.tool.core.bean.service.BaseServiceImpl<SysNoticeMapper,SysNotice>
io.github.mangocrisp.spring.taybct.module.system.service.impl.SysNoticeServiceImpl
- 所有已实现的接口:
com.baomidou.mybatisplus.extension.service.IService<SysNotice>
,ISysNoticeService
,io.github.mangocrisp.spring.taybct.tool.core.bean.service.IBaseService<SysNotice>
@Transactional(rollbackFor=java.lang.Exception.class)
public class SysNoticeServiceImpl
extends io.github.mangocrisp.spring.taybct.tool.core.bean.service.BaseServiceImpl<SysNoticeMapper,SysNotice>
implements ISysNoticeService
针对表【sys_notice(消息通知)】的数据库操作Service实现
- 从以下版本开始:
- 1.0.5
-
字段概要
字段从类继承的字段 io.github.mangocrisp.spring.taybct.tool.core.bean.service.BaseServiceImpl
securityUtil
从类继承的字段 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
baseMapper, entityClass, mapperClass, typeArguments
从接口继承的字段 com.baomidou.mybatisplus.extension.service.IService
DEFAULT_BATCH_SIZE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
addRelatedNotices
(SysNotice notice, Collection<SysNoticeUserDTO> noticeUsers) 添加消息通知boolean
clean()
消除消息通知(全部改为已读)private void
getNotices
(SysNotice dto, Map<String, Object> sqlQueryParams, Long current, Long size, BiConsumer<Long, List<SysNoticeVO>> result) 获取通知消息boolean
updateUserNotices
(int status, Collection<Long> noticeIds) 批量更新用户消息com.baomidou.mybatisplus.core.metadata.IPage<SysNoticeVO>
userNoticesPage
(Map<String, Object> sqlQueryParams) 用户消息分页从类继承的方法 io.github.mangocrisp.spring.taybct.tool.core.bean.service.BaseServiceImpl
authoritiesFilter, checkAuthorities, checkRoot, currentMapperClass, currentModelClass, getSecurityUtil, saveNew, saveNewBatch
从类继承的方法 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
closeSqlSession, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getOneOpt, getSqlSessionFactory, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchById
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 io.github.mangocrisp.spring.taybct.tool.core.bean.service.IBaseService
customizeGetById, customizeList, customizeList, customizePage, customizePage, customizeQueryPage, customizeQueryPage, customizeQueryWrapper, customizeQueryWrapper, customizeRemoveById, customizeRemoveByIds, customizeSave, customizeSaveBatch, customizeUpdateBatchById, customizeUpdateById, mergeQueryExpansion, queryExpansion, removeExpansion, saveExpansion
从接口继承的方法 com.baomidou.mybatisplus.extension.service.IService
count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateById
-
字段详细资料
-
sysDictService
-
sysNoticeUserService
-
-
构造器详细资料
-
SysNoticeServiceImpl
public SysNoticeServiceImpl()
-
-
方法详细资料
-
clean
从接口复制的说明:ISysNoticeService
消除消息通知(全部改为已读)- 指定者:
clean
在接口中ISysNoticeService
- 返回:
- 是否清除成功
-
userNoticesPage
public com.baomidou.mybatisplus.core.metadata.IPage<SysNoticeVO> userNoticesPage(Map<String, Object> sqlQueryParams) 从接口复制的说明:ISysNoticeService
用户消息分页- 指定者:
userNoticesPage
在接口中ISysNoticeService
- 参数:
sqlQueryParams
- sql 查询参数- 返回:
IPage<SysNoticeVO>
-
addRelatedNotices
@Transactional(rollbackFor=java.lang.Exception.class) public boolean addRelatedNotices(SysNotice notice, Collection<SysNoticeUserDTO> noticeUsers) 从接口复制的说明:ISysNoticeService
添加消息通知- 指定者:
addRelatedNotices
在接口中ISysNoticeService
- 参数:
notice
- 消息通知noticeUsers
- 消息通知附加的通知对象关系,如果不指定就是通知公告,所有人可见- 返回:
- boolean
-
updateUserNotices
@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateUserNotices(int status, Collection<Long> noticeIds) 从接口复制的说明:ISysNoticeService
批量更新用户消息- 指定者:
updateUserNotices
在接口中ISysNoticeService
- 参数:
status
- [状态(0不可见 1 已读 2待办)]不能为空noticeIds
- 消息 id- 返回:
- boolean
-
getNotices
private void getNotices(SysNotice dto, Map<String, Object> sqlQueryParams, Long current, Long size, BiConsumer<Long, List<SysNoticeVO>> result) 获取通知消息- 参数:
dto
- 请求参数sqlQueryParams
- sql 查询参数current
- 页码size
- 分布大小result
- 返回结果- 从以下版本开始:
- 1.0.5
-