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")