2026-02-11 19:14:07 +08:00
|
|
|
package com.yupi.springbootinit.service.impl;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
import com.yupi.springbootinit.model.entity.SystemNotice;
|
|
|
|
|
import com.yupi.springbootinit.mapper.SystemNoticeMapper;
|
|
|
|
|
import com.yupi.springbootinit.service.SystemNoticeService;
|
|
|
|
|
/*
|
|
|
|
|
* @author: ziin
|
|
|
|
|
* @date: 2026/2/10 20:25
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
public class SystemNoticeServiceImpl extends ServiceImpl<SystemNoticeMapper, SystemNotice> implements SystemNoticeService{
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<SystemNotice> getActiveNoticeList() {
|
|
|
|
|
LambdaQueryWrapper<SystemNotice> queryWrapper = new LambdaQueryWrapper<>();
|
2026-02-24 19:19:49 +08:00
|
|
|
queryWrapper.eq(SystemNotice::getStatus, 0)
|
|
|
|
|
.eq(SystemNotice::getTenantId, 1);
|
2026-02-11 19:14:07 +08:00
|
|
|
return this.list(queryWrapper);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|