Commit 97e47b04 by manxiaoqiang

sendemail

parent 26e95dd4
...@@ -11,7 +11,7 @@ import java.util.List; ...@@ -11,7 +11,7 @@ import java.util.List;
@Transactional @Transactional
public interface NoticeRepository extends JpaRepository<Notice, Long> { public interface NoticeRepository extends JpaRepository<Notice, Long> {
@Query(value="select * from notice where user = ?1 and ds >= ?2",nativeQuery=true) @Query(value="select * from notice where user = ?1 and ds >= ?2 order by ds desc",nativeQuery=true)
List<Notice> findall(Long user, String ds); List<Notice> findall(Long user, String ds);
@Query(value="select * from notice where user = ?1",nativeQuery=true) @Query(value="select * from notice where user = ?1",nativeQuery=true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment