红圈通接口改造hqtShopId

This commit is contained in:
shuo.wang
2025-08-06 09:25:23 +08:00
parent b7c175c1a4
commit eb9d469833
12 changed files with 35 additions and 18 deletions

View File

@@ -348,4 +348,11 @@ public class ShopInfoDAO {
example.createCriteria().andEqualTo("shopCode", shopCode);
return shopInfoMapper.selectByExample(example);
}
public Integer updateHqtShopId (Long shopId,String hqtShopId){
if (shopId==null || StringUtils.isBlank(hqtShopId)){
return 0;
}
return shopInfoMapper.updateHqtShopId(shopId, hqtShopId);
}
}

View File

@@ -14,6 +14,7 @@ import com.cool.store.response.MiniShopsResponse;
import com.cool.store.response.PlatformBuildListResponse;
import com.cool.store.vo.shop.StageShopCountVO;
import com.github.pagehelper.Page;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
@@ -147,4 +148,6 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
List<IsCreateStoreDTO> selectIsCreateStore();
Integer updateManagerRegionId(@Param("list") List<ShopInfoDO> shopList);
Integer getNumByShopCode(@Param("shopCode") String shopCode);
Integer updateHqtShopId(@Param("shopId") Long shopId,@Param("hqtShopId") String hqtShopId);
}

View File

@@ -37,6 +37,7 @@
<result column="district_code" jdbcType="INTEGER" property="districtCode"/>
<result column="manager_region_id" jdbcType="BIGINT" property="managerRegionId"/>
<result column="shop_decoration_attributes" jdbcType="INTEGER" property="shopDecorationAttributes"/>
<result column="hqt_shop_id" jdbcType="VARCHAR" property="hqtShopId"/>
</resultMap>
<sql id="allColumn">
@@ -45,7 +46,7 @@
shop_code, store_num, shop_manager_user_id, supervisor_user_id,
plan_open_time, cur_progress, shop_type, shop_stage, deleted, create_time, update_time,
join_mode,detail_address,franchise_brand,development_manager,want_shop_area_id,investment_manager,shop_status,create_user_id,update_user_id,store_type
, province,province_code,city,city_code,district,district_code,manager_region_id,shop_decoration_attributes
, province,province_code,city,city_code,district,district_code,manager_region_id,shop_decoration_attributes,hqt_shop_id
</sql>
<insert id="batchAddShop" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
@@ -590,4 +591,7 @@
update xfsg_shop_info set manager_region_id = #{item.managerRegionId} where id = #{item.id}
</foreach>
</update>
<update id="updateHqtShopId">
update xfsg_shop_info set hqt_shop_id = #{hqtShopId} where id = #{shopId}
</update>
</mapper>