发送订阅消息增加token

This commit is contained in:
谭凯凯
2024-10-21 15:42:11 +08:00
committed by Tankaikai
parent 6b4397dec5
commit ddc95cf170

View File

@@ -25,6 +25,6 @@ public interface TbTokenRepository extends JpaRepository<TbToken, Integer>, JpaS
"and create_time BETWEEN :startTime and :endTime group by DATE_FORMAT( create_time, '%Y-%m-%d') ", nativeQuery = true) "and create_time BETWEEN :startTime and :endTime group by DATE_FORMAT( create_time, '%Y-%m-%d') ", nativeQuery = true)
List<Object[]> countByMonth(@Param("shopId") Integer shopId, @Param("startTime") Date startTime, @Param("endTime") Date endTime); List<Object[]> countByMonth(@Param("shopId") Integer shopId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
@Query("select x.token from TbToken x where x.accountId=:accountId and x.staffId=:staffId and x.status=1 order by x.id desc") @Query("from TbToken x where x.accountId=:accountId and x.staffId=:staffId and x.status=1 order by x.id desc")
List<TbToken> findListByAccountIdAndStaffId(@Param("accountId") Integer accountId, @Param("staffId") Integer staffId); List<TbToken> findListByAccountIdAndStaffId(@Param("accountId") Integer accountId, @Param("staffId") Integer staffId);
} }