From ddc95cf17032b65bfdbdd0cd6df5fc2645accca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=AD=E5=87=AF=E5=87=AF?= Date: Mon, 21 Oct 2024 15:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E9=80=81=E8=AE=A2=E9=98=85=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=A2=9E=E5=8A=A0token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/cn/ysk/cashier/repository/TbTokenRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }