@Service public class AnnouncementServiceImpl extends com.hccake.extend.mybatis.plus.service.impl.ExtendServiceImpl<AnnouncementMapper,Announcement> implements AnnouncementService
| 构造器和说明 |
|---|
AnnouncementServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addAnnouncement(AnnouncementDTO announcementDTO)
创建公告
|
boolean |
close(Long announcementId)
关闭公告信息
|
List<Announcement> |
listActiveAnnouncements(Long userId)
获取用户拉取过的发布中,且满足失效时间的公告信息
|
List<Announcement> |
listUnPulled(Long userId)
当前用户未拉取过的发布中,且满足失效时间的公告信息
|
boolean |
publish(Long announcementId)
发布公告信息
|
com.hccake.ballcat.common.model.domain.PageResult<AnnouncementPageVO> |
queryPage(com.hccake.ballcat.common.model.domain.PageParam pageParam,
AnnouncementQO qo)
根据QueryObject查询分页数据
|
boolean |
updateAnnouncement(AnnouncementDTO announcementDTO)
更新公告信息
|
List<String> |
uploadImages(List<org.springframework.web.multipart.MultipartFile> files)
批量上传公告图片
|
currentMapperClass, currentModelClass, executeBatch, getBaseMapper, getEntityClass, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseMapper, getById, getEntityClass, list, listByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, save, saveBatch, saveBatch, saveBatchSomeColumn, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, updateBatchById, updateBatchById, updateByIdpublic com.hccake.ballcat.common.model.domain.PageResult<AnnouncementPageVO> queryPage(com.hccake.ballcat.common.model.domain.PageParam pageParam, AnnouncementQO qo)
queryPage 在接口中 AnnouncementServicepageParam - 分页参数qo - 查询参数对象@Transactional(rollbackFor=java.lang.Exception.class) public boolean addAnnouncement(AnnouncementDTO announcementDTO)
addAnnouncement 在接口中 AnnouncementServiceannouncementDTO - 公告信息@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateAnnouncement(AnnouncementDTO announcementDTO)
updateAnnouncement 在接口中 AnnouncementServiceannouncementDTO - announcementDTO@Transactional(rollbackFor=java.lang.Exception.class) public boolean publish(Long announcementId)
publish 在接口中 AnnouncementServiceannouncementId - 公告IDpublic boolean close(Long announcementId)
close 在接口中 AnnouncementServiceannouncementId - 公告IDpublic List<String> uploadImages(List<org.springframework.web.multipart.MultipartFile> files)
uploadImages 在接口中 AnnouncementServicefiles - 图片文件public List<Announcement> listUnPulled(Long userId)
listUnPulled 在接口中 AnnouncementServiceuserId - 用户idpublic List<Announcement> listActiveAnnouncements(Long userId)
listActiveAnnouncements 在接口中 AnnouncementServiceuserId - 用户idCopyright © 2023. All rights reserved.