| | |
| | | import java.util.List; |
| | | |
| | | import com.ltkj.system.domain.SysNotice; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | /** |
| | | * 通知公告表 数据层 |
| | |
| | | * @return 结果 |
| | | */ |
| | | public int deleteNoticeByIds(Long[] noticeIds); |
| | | |
| | | @Select("SELECT s.* FROM sys_notice s\n" + |
| | | " JOIN sys_notice_user n ON s.notice_id = n.notice_id\n" + |
| | | " WHERE DATE(s.create_time) = CURDATE() AND n.user_id = #{userId}") |
| | | List<SysNotice> selectAll(@Param("userId") String userId); |
| | | |
| | | @Select("SELECT s.* FROM sys_notice s\n" + |
| | | " WHERE DATE(s.create_time) = CURDATE()") |
| | | List<SysNotice> selectAllByAdmin(); |
| | | } |