Merge #76 into master from cc_20260329_fix
feat:门店经纬度更新 * cc_20260329_fix: (1 commits squashed) - feat:门店经纬度更新 Signed-off-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> Merged-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/76
This commit is contained in:
@@ -381,4 +381,44 @@
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getStoreAddress" resultType="com.cool.store.dto.store.StoreAddressDTO">
|
||||
SELECT * FROM store_${enterpriseId}
|
||||
<where>
|
||||
is_delete = 'effective'
|
||||
<if test="storeCode!=null and storeCode!=null">
|
||||
and store_num = #{storeCode}
|
||||
</if>
|
||||
<if test="flag==null">
|
||||
and `city` is not null and county is null
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<update id="batchUpdateAddress" parameterType="list">
|
||||
UPDATE store_${enterpriseId}
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<trim prefix="province = CASE" suffix="END,">
|
||||
<foreach collection="list" item="item" index="index">
|
||||
WHEN store_id = #{item.storeId} THEN #{item.province}
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="city = CASE" suffix="END,">
|
||||
<foreach collection="list" item="item" index="index">
|
||||
WHEN store_id = #{item.storeId} THEN #{item.city}
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="county = CASE" suffix="END,">
|
||||
<foreach collection="list" item="item" index="index">
|
||||
WHEN store_id = #{item.storeId} THEN #{item.county}
|
||||
</foreach>
|
||||
</trim>
|
||||
</trim>
|
||||
WHERE store_id IN
|
||||
<foreach collection="list" item="item" open="(" separator="," close=")">
|
||||
#{item.storeId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user