1.消息推送修改
This commit is contained in:
@@ -38,4 +38,16 @@ public interface TbShopOpenIdMapper {
|
||||
|
||||
@Update("update tb_shop_open_id set nickname=#{nickName}, avatar=#{avatar} where open_id=#{openId} and status=1 ")
|
||||
int updateBaseInfoByOpenId(@Param("openId") String openId, @Param("nickName") String nickName, @Param("avatar") String avatar);
|
||||
|
||||
@Select("select count(*) from tb_shop_open_id where shop_id=#{shopId} and status=1;")
|
||||
int selectStateByShopId(@Param("shopId") String shopId);
|
||||
|
||||
@Select("select count(*) from tb_shop_open_id where shop_id=#{shopId} and status=1 and type=#{type};")
|
||||
int countStateByShopIdAndType(@Param("shopId") String shopId, @Param("type") int type);
|
||||
|
||||
@Select("select * from tb_shop_open_id where shop_id=#{shopId} and status=1 and (type=#{type} or type=-1);")
|
||||
List<TbShopOpenId> selectStateByShopIdAndType(@Param("shopId") String shopId, @Param("type") int type);
|
||||
|
||||
@Select("select * from tb_shop_open_id where shop_id=#{shopId} and open_id=#{openId};")
|
||||
List<TbShopOpenId> selectStateByShopIdAndOpenId(@Param("openId") String openId, @Param("shopId") String shopId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user