1.消息订阅同步保存昵称头像

2.小程序规格获取
This commit is contained in:
2024-08-08 10:36:39 +08:00
parent fbabdc5763
commit 6ee7b54311
7 changed files with 182 additions and 150 deletions

View File

@@ -3,6 +3,7 @@ package com.chaozhanggui.system.cashierservice.dao;
import com.chaozhanggui.system.cashierservice.entity.TbShopOpenId;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
@@ -30,4 +31,11 @@ public interface TbShopOpenIdMapper {
@Select("select * from tb_shop_open_id where shop_id=#{shopId} and status=1")
List<TbShopOpenId> selectByShopId(@Param("shopId") Integer shopId);
@Select("select * from tb_shop_open_id where open_id=#{openId} and status=1")
List<TbShopOpenId> selectByOpenId(@Param("openId") String openId);
@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);
}