数据处理代码+同步加盟商

This commit is contained in:
shuo.wang
2025-07-14 10:09:16 +08:00
parent 5a0dd61af8
commit 2b0c1a6404
14 changed files with 189 additions and 11 deletions

View File

@@ -543,13 +543,20 @@
and xsi.shop_name Like concat("%",#{keyWord},"%") or xsi.store_num Like concat("%",#{keyWord},"%")
</if>
</select>
<select id="selectIsCreateStore" resultType="com.cool.store.entity.ShopInfoDO">
SELECT a.`shop_name` ,a.`shop_code` ,b.*
<select id="selectIsCreateStore" resultType="com.cool.store.dto.IsCreateStoreDTO">
SELECT a.id as shopId, c.parent_id as `pid`
FROM xfsg_shop_info a
LEFT JOIN store_214ac5a3a517472a87268e02a2e6410a b ON a.shop_code = b.store_num
LEFT JOIN xfsg_shop_stage_info c ON c.shop_id = a.id
WHERE b.store_num is not null and a.shop_code is not null and a.deleted =0 and a.shop_status != 2 and a.shop_code != '' and c.shop_sub_stage_status in (1560)
LEFT JOIN `region_214ac5a3a517472a87268e02a2e6410a` c on b.region_id = c.`id`
WHERE b.store_num is not null
and a.shop_code is not null
and a.deleted =0
and a.shop_status != 2
and a.shop_code != ""
and c.deleted = 0
and b.is_delete = 'effective'
and a.region_id != 459
</select>
<update id="batchUpdate" parameterType="list">
@@ -573,4 +580,9 @@
update xfsg_shop_info set shop_name = #{item.shopName}, province =#{item.province}, city = #{item.city}, district=#{item.district}, detail_address = #{item.detailAddress} where id = #{item.id}
</foreach>
</update>
<update id="updateManagerRegionId">
<foreach collection="list" item="item" separator=";">
update xfsg_shop_info set manager_region_id = #{item.managerRegionId} where id = #{item.id}
</foreach>
</update>
</mapper>