feat: 提交配送中心点与门店地址映射全量变更
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 42s

This commit is contained in:
2026-02-19 16:12:36 +08:00
parent d5b22a8d85
commit ad245078a2
10 changed files with 7899 additions and 0 deletions

View File

@@ -1019,6 +1019,8 @@ public sealed class TakeoutAppDbContext(
builder.Property(x => x.FreeDeliveryThreshold).HasPrecision(10, 2);
builder.Property(x => x.MaxDeliveryDistance).HasPrecision(10, 2);
builder.Property(x => x.RadiusTiersJson).HasColumnType("text");
builder.Property(x => x.RadiusCenterLatitude).HasPrecision(10, 7);
builder.Property(x => x.RadiusCenterLongitude).HasPrecision(10, 7);
builder.HasIndex(x => new { x.TenantId, x.StoreId }).IsUnique();
}

View File

@@ -0,0 +1,44 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TakeoutSaaS.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddStoreDeliveryRadiusCenter : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "RadiusCenterLatitude",
table: "store_delivery_settings",
type: "numeric(10,7)",
precision: 10,
scale: 7,
nullable: true,
comment: "半径配送中心点纬度。");
migrationBuilder.AddColumn<decimal>(
name: "RadiusCenterLongitude",
table: "store_delivery_settings",
type: "numeric(10,7)",
precision: 10,
scale: 7,
nullable: true,
comment: "半径配送中心点经度。");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RadiusCenterLatitude",
table: "store_delivery_settings");
migrationBuilder.DropColumn(
name: "RadiusCenterLongitude",
table: "store_delivery_settings");
}
}
}

View File

@@ -5274,6 +5274,16 @@ namespace TakeoutSaaS.Infrastructure.Migrations
.HasColumnType("integer")
.HasComment("配送模式。");
b.Property<decimal?>("RadiusCenterLatitude")
.HasPrecision(10, 7)
.HasColumnType("numeric(10,7)")
.HasComment("半径配送中心点纬度。");
b.Property<decimal?>("RadiusCenterLongitude")
.HasPrecision(10, 7)
.HasColumnType("numeric(10,7)")
.HasComment("半径配送中心点经度。");
b.Property<string>("RadiusTiersJson")
.HasColumnType("text")
.HasComment("半径梯度配置 JSON。");