diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/repository/TbTokenRepository.java b/eladmin-system/src/main/java/cn/ysk/cashier/repository/TbTokenRepository.java index c16c13ef..bf85cd7d 100644 --- a/eladmin-system/src/main/java/cn/ysk/cashier/repository/TbTokenRepository.java +++ b/eladmin-system/src/main/java/cn/ysk/cashier/repository/TbTokenRepository.java @@ -25,6 +25,6 @@ public interface TbTokenRepository extends JpaRepository, JpaS "and create_time BETWEEN :startTime and :endTime group by DATE_FORMAT( create_time, '%Y-%m-%d') ", nativeQuery = true) List 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 findListByAccountIdAndStaffId(@Param("accountId") Integer accountId, @Param("staffId") Integer staffId); }