From 4e388ea951bfb0d9ffa60da6343144c46bacd64a Mon Sep 17 00:00:00 2001 From: SongZhang <2064194730@qq.com> Date: Thu, 11 Jul 2024 15:48:15 +0800 Subject: [PATCH] =?UTF-8?q?1.tb=5Fshop=5Fopen=5Fid=E5=A4=9A=E6=9D=A1?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9F=A5=E8=AF=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/cashierservice/dao/TbShopOpenIdMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopOpenIdMapper.java b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopOpenIdMapper.java index 20f32d9..b1a1f9b 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopOpenIdMapper.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/dao/TbShopOpenIdMapper.java @@ -26,7 +26,7 @@ public interface TbShopOpenIdMapper { int updateByPrimaryKey(TbShopOpenId record); - @Select("select * from tb_shop_open_id where open_id=#{openId} and shop_id=#{shopId}") + @Select("select * from tb_shop_open_id where open_id=#{openId} and shop_id=#{shopId} limit 1") TbShopOpenId countByOpenId(@Param("openId") String openId, @Param("shopId") Integer shopId); @Select("select * from tb_shop_open_id where shop_id=#{shopId} and status=1")