接口 MessageSendDao
- 所有超级接口:
org.springframework.data.repository.CrudRepository<MessageSend,,Long> plus.hiver.common.base.HiverBaseDao<MessageSend,,Long> org.springframework.data.jpa.repository.JpaRepository<MessageSend,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<MessageSend>,org.springframework.data.repository.ListCrudRepository<MessageSend,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<MessageSend,,Long> org.springframework.data.repository.PagingAndSortingRepository<MessageSend,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<MessageSend>,org.springframework.data.repository.Repository<MessageSend,Long>
@Repository
public interface MessageSendDao
extends plus.hiver.common.base.HiverBaseDao<MessageSend,Long>
消息发送数据处理层
尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负
- 作者:
- Yazhi Li
-
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.data.jpa.repository.JpaSpecificationExecutor
org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T extends Object> -
方法概要
修饰符和类型方法说明voiddeleteByMessageId(Long messageId) 通过消息id删除voiddeleteByUserId(Long userId, Integer status) 通过userId删除voidupdateStatusByUserId(Long userId, Integer status) 批量更新消息状态从接口继承的方法 org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save从接口继承的方法 org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush从接口继承的方法 org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findAll, findAll, findBy, findOne从接口继承的方法 org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll从接口继承的方法 org.springframework.data.repository.ListPagingAndSortingRepository
findAll从接口继承的方法 org.springframework.data.repository.PagingAndSortingRepository
findAll从接口继承的方法 org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
方法详细资料
-
deleteByMessageId
@Modifying @Query("delete from MessageSend m where m.messageId = ?1") void deleteByMessageId(Long messageId) 通过消息id删除 -
updateStatusByUserId
@Modifying @Query("update MessageSend m set m.status=?2 where m.userId=?1") void updateStatusByUserId(Long userId, Integer status) 批量更新消息状态 -
deleteByUserId
@Modifying @Query("delete from MessageSend m where m.userId = ?1 and m.status=?2") void deleteByUserId(Long userId, Integer status) 通过userId删除
-