feat:签约合同优化 + 数据处理

This commit is contained in:
shuo.wang
2025-05-08 15:32:40 +08:00
parent 626ce23c3d
commit 11c597a8f0
7 changed files with 66 additions and 11 deletions

View File

@@ -272,4 +272,16 @@ public class ShopInfoDAO {
public List<ShopInfoDO> getListByTime(){
return shopInfoMapper.getListByTime();
}
/**
* @Auther: wangshuo
* @Date: 2025/5/8
* @description: 数据处理专用 处理shop 省市区
*/
public Integer updateShopCity(List<ShopInfoDO> list){
if (CollectionUtils.isEmpty(list)){
return 0;
}
return shopInfoMapper.updateShopCity(list);
}
}

View File

@@ -139,4 +139,6 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
List<ShopInfoDO> getListByTime();
Integer updateShopCity(@Param("list") List<ShopInfoDO> list);
}

View File

@@ -498,4 +498,9 @@
<update id="updateShopCode">
update xfsg_shop_info set shop_code = #{shopCode} where id = #{shopId}
</update>
<update id="updateShopCity">
<foreach collection="list" item="item" index="index" separator=";">
update xfsg_shop_info set province =#{item.province}, city = #{item.city}, district=#{item.district} where id = #{item.id}
</foreach>
</update>
</mapper>