| | |
| | | import cn.hutool.json.JSONUtil; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/service/impl/NoticeServiceImpl.class */ |
| | | |
| | | public class NoticeServiceImpl extends BaseServiceImpl<NoticeMapper, Notice> implements INoticeService { |
| | | @Autowired |
| | | private IUserService userService; |
| | |
| | | @Autowired |
| | | private IDictService dictService; |
| | | |
| | | @Override // org.springblade.modules.notify.service.INoticeService |
| | | |
| | | public IPage<NoticeVO> selectNoticePage(IPage<NoticeVO> page, NoticeSelectVO selectVO) { |
| | | String typeId = selectVO.getCategory(); |
| | | if (Func.isNotEmpty(typeId)) { |
| | |
| | | return ((NoticeMapper) this.baseMapper).selectNoticePage(page, selectVO); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.notify.service.INoticeService |
| | | |
| | | public NoticeVO saveNotice(NoticeAddVO vo) { |
| | | Notice notice = NoticeConvert.INSTANCE.convert(vo); |
| | | save(notice); |
| | |
| | | return convert; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.notify.service.INoticeService |
| | | |
| | | public NoticeVO updateNotice(NoticeUpdateVO vo) { |
| | | Notice notice = NoticeConvert.INSTANCE.convert(vo); |
| | | updateById(notice); |