|
@ -126,7 +126,7 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
|
|
|
@Query(" select a from Message a where a.type=?2 and a.del='1' and a.read=1 and a.receiver=?1 and a.over='1' order by a.createTime desc ")
|
|
|
List<Message> findUnReadByReceiverAndType(String receiver,Integer type);
|
|
|
|
|
|
@Query("select a from Message a where a.read= ?2 and a.receiver = ?1 and a.state = 1 and a.over = ?3 and a.type = 16 order by a.czrq desc")
|
|
|
@Query("select a from Message a where a.read= ?2 and a.receiver = ?1 and a.state = 1 and a.over = ?3 and a.type in (16,20,22,23) order by a.czrq desc")
|
|
|
List<Message> getSpecialistApply(String receiver,Integer read,String over);
|
|
|
|
|
|
@Query("select a from Message a where a.receiver = ?1 and a.state = 1 and a.type = 17 order by a.czrq desc")
|
|
@ -141,15 +141,18 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
|
|
|
@Query("select a from Message a where a.read= ?2 and a.receiver = ?1 and a.state = 1 and a.over = ?3 and a.type = 17 order by a.czrq desc")
|
|
|
List<Message> getFamilyTransferReadAndOver(String receiver,Integer read,String over);
|
|
|
|
|
|
@Query("select a from Message a where a.read= ?2 and a.receiver = ?1 and a.state = 1 and a.over = ?3 and a.type in (16,19,20,21,22) order by a.czrq desc")
|
|
|
@Query("select a from Message a where a.read= ?2 and a.receiver = ?1 and a.state = 1 and a.over = ?3 and a.type in (16,20,22,23) order by a.czrq desc")
|
|
|
List<Message> getSpecialistUntreated(String receiver,Integer read,String over,Pageable pageable);
|
|
|
|
|
|
@Query("select a from Message a where a.read= ?2 and a.receiver = ?1 and a.state = 1 and a.over = ?3 and a.type in (16,19,20,21,22,23) order by a.czrq desc")
|
|
|
List<Message> getSpecialistMessages(String receiver,Integer read,String over,Pageable pageable);
|
|
|
|
|
|
@Query("select a from Message a where a.read= ?2 and a.receiver = ?1 and a.state = 1 and a.over = ?3 and a.type in (17) order by a.czrq desc")
|
|
|
List<Message> getTransferMessage(String receiver,Integer read,String over,Pageable pageable);
|
|
|
|
|
|
@Query("select a from Message a where a.code = ?1")
|
|
|
Message findByCode(String code);
|
|
|
|
|
|
@Query("select a from Message a where a.read = 1 and a.receiver = ?1 and a.state = 1 and a.type in (19,20,21,22) order by a.czrq desc")
|
|
|
@Query("select a from Message a where a.read = 1 and a.over = 0 and a.receiver = ?1 and a.state = 1 and a.type in (19,20,21,22,23) order by a.czrq desc")
|
|
|
List<Message> getSpecialistUnRead(String receiver);
|
|
|
}
|