feat:签约合同优化 + 数据处理
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,4 +139,6 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
|
||||
|
||||
List<ShopInfoDO> getListByTime();
|
||||
|
||||
Integer updateShopCity(@Param("list") List<ShopInfoDO> list);
|
||||
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user