| | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统通知 服务实现类 |
| | |
| | | */ |
| | | @Service |
| | | public class TSystemNoticeServiceImpl extends ServiceImpl<TSystemNoticeMapper, TSystemNotice> implements ITSystemNoticeService { |
| | | |
| | | @Override |
| | | public void addSystemNotice(Integer userType, String content, Integer userId) throws Exception { |
| | | TSystemNotice systemNotice = new TSystemNotice(); |
| | | systemNotice.setContent(content); |
| | | systemNotice.setInsertTime(new Date()); |
| | | systemNotice.setRead(1); |
| | | systemNotice.setType(2); |
| | | systemNotice.setUserId(userId); |
| | | systemNotice.setUserType(userType); |
| | | this.insert(systemNotice); |
| | | } |
| | | } |