|
|
|
@ -16,8 +16,8 @@ import java.util.List;
|
|
|
|
|
public interface ABMessageRepository extends JpaRepository<ABMessageDO,Long> {
|
|
|
|
|
|
|
|
|
|
@Modifying
|
|
|
|
|
@Query("update ABMessageDO t set t.sendStatus = ?1 where t.recId = ?2")
|
|
|
|
|
void updateSendStatus( Integer sendStatus, Long recId);
|
|
|
|
|
@Query("update ABMessageDO t set t.sendStatus = ?1 ,t.pushTime = ?2 where t.recId = ?3")
|
|
|
|
|
void updateSendStatus( Integer sendStatus,Date pushTime, Long recId);
|
|
|
|
|
|
|
|
|
|
@Query("from ABMessageDO a where a.pushTime >= ?1 and a.pushTime < ?2 and a.sendStatus = ?3 ")
|
|
|
|
|
List<ABMessageDO> findAllByPushTimeAndSendStatus(Date startPushTime, Date endPushTime, Integer sendStatus);
|
|
|
|
|