Эх сурвалжийг харах

Merge branch 'dev' of http://123.60.180.165:4647/ZZYDOP/DOPCore into dev

tangdi 3 жил өмнө
parent
commit
b3204111f0
17 өөрчлөгдсөн 4003 нэмэгдсэн , 1106 устгасан
  1. 1 1
      MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessBangMigrationDbContextFactory.cs
  2. 856 0
      MicroServices/Business/Business.Host/Migrations/BusinessBangMigrationDb/20230323031341_Bang.Designer.cs
  3. 347 0
      MicroServices/Business/Business.Host/Migrations/BusinessBangMigrationDb/20230323031341_Bang.cs
  4. 854 0
      MicroServices/Business/Business.Host/Migrations/BusinessBangMigrationDb/BusinessBangMigrationDbContextModelSnapshot.cs
  5. 0 81
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323023755_AddBom.cs
  6. 0 993
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323030012_RenameTable.cs
  7. 3 3
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323032012_init.Designer.cs
  8. 67 3
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323032012_init.cs
  9. 16 6
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323051647_AddIsProduce.Designer.cs
  10. 41 0
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323051647_AddIsProduce.cs
  11. 1555 0
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323052259_AddFAgentPurPlusRate.Designer.cs
  12. 25 0
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323052259_AddFAgentPurPlusRate.cs
  13. 160 9
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323064106_ChangeDataType.Designer.cs
  14. 44 0
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323064106_ChangeDataType.cs
  15. 18 8
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/BusinessExtMigrationDbContextModelSnapshot.cs
  16. 1 1
      MicroServices/Business/Bussiness.Model/Ext/in_kd_bom.cs
  17. 15 1
      MicroServices/Business/Bussiness.Model/Ext/in_kd_material.cs

+ 1 - 1
MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessBangMigrationDbContextFactory.cs

@@ -14,7 +14,7 @@ namespace Business.EntityFrameworkCore
             var configuration = BuildConfiguration();
 
             var builder = new DbContextOptionsBuilder<BusinessBangMigrationDbContext>()
-                .UseMySql(configuration.GetConnectionString("DOPExt"), MySqlServerVersion.LatestSupportedServerVersion);
+                .UseMySql(configuration.GetConnectionString("DOPBang"), MySqlServerVersion.LatestSupportedServerVersion);
 
             return new BusinessBangMigrationDbContext(builder.Options);
         }

+ 856 - 0
MicroServices/Business/Business.Host/Migrations/BusinessBangMigrationDb/20230323031341_Bang.Designer.cs

@@ -0,0 +1,856 @@
+// <auto-generated />
+using System;
+using Business.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessBangMigrationDb
+{
+    [DbContext(typeof(BusinessBangMigrationDbContext))]
+    [Migration("20230323031341_Bang")]
+    partial class Bang
+    {
+        protected override void BuildTargetModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
+                .HasAnnotation("ProductVersion", "6.0.5")
+                .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_bom_child_examine", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<int?>("backflush")
+                        .HasColumnType("int")
+                        .HasComment("是否倒冲");
+
+                    b.Property<long?>("bom_child_id")
+                        .HasColumnType("bigint")
+                        .HasComment("bom明细主键");
+
+                    b.Property<long?>("bom_id")
+                        .HasColumnType("bigint")
+                        .HasComment("BOMid");
+
+                    b.Property<string>("bom_number")
+                        .HasMaxLength(20)
+                        .HasColumnType("varchar(20)")
+                        .HasComment("bom编号");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<int?>("erp_cls")
+                        .HasColumnType("int")
+                        .HasComment("物料属性");
+
+                    b.Property<string>("erp_cls_name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料属性名称");
+
+                    b.Property<long?>("examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("资源检查ID");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<int?>("haveicsubs")
+                        .HasColumnType("int")
+                        .HasComment("存在替代关系");
+
+                    b.Property<bool>("is_use")
+                        .HasColumnType("tinyint(1)")
+                        .HasComment("是否使用此物料");
+
+                    b.Property<int?>("isbom")
+                        .HasColumnType("int")
+                        .HasComment("是否BOM");
+
+                    b.Property<long?>("item_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料id");
+
+                    b.Property<string>("item_name")
+                        .HasMaxLength(200)
+                        .HasColumnType("varchar(200)")
+                        .HasComment("物料名称");
+
+                    b.Property<string>("item_number")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料编号");
+
+                    b.Property<DateTime?>("kitting_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("齐套时间");
+
+                    b.Property<decimal?>("lack_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("缺料数量");
+
+                    b.Property<int?>("level")
+                        .HasColumnType("int")
+                        .HasComment("level");
+
+                    b.Property<decimal?>("make_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("自制数量");
+
+                    b.Property<decimal?>("mo_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("在制占用数量");
+
+                    b.Property<string>("model")
+                        .HasMaxLength(200)
+                        .HasColumnType("varchar(200)")
+                        .HasComment("规格型号");
+
+                    b.Property<decimal?>("needCount")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("单个产品总需要用量");
+
+                    b.Property<string>("num")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("项次号");
+
+                    b.Property<long?>("num_order")
+                        .HasColumnType("bigint")
+                        .HasComment("排序使用");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<long?>("parent_id")
+                        .HasColumnType("bigint")
+                        .HasComment("父级id");
+
+                    b.Property<decimal?>("purchase_occupy_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("采购明细占用数量");
+
+                    b.Property<decimal?>("purchase_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("采购数量");
+
+                    b.Property<decimal?>("qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("单位用量");
+
+                    b.Property<DateTime?>("satisfy_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("满足时间");
+
+                    b.Property<decimal?>("self_lack_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("本级缺料数量");
+
+                    b.Property<long?>("sentry_id")
+                        .HasColumnType("bigint")
+                        .HasComment("订单行ID");
+
+                    b.Property<decimal?>("sqty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("库存数量");
+
+                    b.Property<int?>("stock_state")
+                        .HasColumnType("int")
+                        .HasComment("物料状态");
+
+                    b.Property<decimal?>("subcontracting_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("委外数量");
+
+                    b.Property<int?>("substitute_all_num")
+                        .HasColumnType("int")
+                        .HasComment("群组优先级");
+
+                    b.Property<string>("substitute_code")
+                        .HasMaxLength(20)
+                        .HasColumnType("varchar(20)")
+                        .HasComment("群组代码");
+
+                    b.Property<int?>("substitute_mode")
+                        .HasColumnType("int")
+                        .HasComment("替代方式");
+
+                    b.Property<int?>("substitute_strategy")
+                        .HasColumnType("int")
+                        .HasComment("替代策略");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<int?>("type")
+                        .HasColumnType("int")
+                        .HasComment("类型");
+
+                    b.Property<string>("unit")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("单位");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.Property<decimal?>("use_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("库存占用数量");
+
+                    b.Property<string>("version")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("版本");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_bom_child_examine", (string)null);
+
+                    b.HasComment("Bom明细检查结果");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_examine_result", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<string>("bill_no")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("订单编号");
+
+                    b.Property<string>("bom_number")
+                        .HasMaxLength(20)
+                        .HasColumnType("varchar(20)")
+                        .HasComment("BOM编码");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<DateTime?>("earliest_times")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("最早开工时间");
+
+                    b.Property<int?>("entry_seq")
+                        .HasColumnType("int")
+                        .HasComment("行号");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<DateTime?>("kitting_times")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("物料齐套时间");
+
+                    b.Property<DateTime?>("latest_times")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("最晚开工时间");
+
+                    b.Property<long?>("morder_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工单id");
+
+                    b.Property<string>("morder_no")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("工单号");
+
+                    b.Property<decimal?>("need_qty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("BOM编码");
+
+                    b.Property<DateTime?>("order_statr_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("工单开工时间");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<long?>("sentry_id")
+                        .HasColumnType("bigint")
+                        .HasComment("订单行id");
+
+                    b.Property<long?>("sorderid")
+                        .HasColumnType("bigint")
+                        .HasComment("订单id");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_examine_result", (string)null);
+
+                    b.HasComment("资源检查");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_mo_occupy", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<DateTime?>("moo_etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("结束时间");
+
+                    b.Property<string>("moo_mo")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("工单号");
+
+                    b.Property<decimal?>("moo_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("占用量");
+
+                    b.Property<DateTime?>("moo_stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("开始时间");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_mo_occupy", (string)null);
+
+                    b.HasComment("在制占用明细");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_mo_order", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<DateTime?>("moentry_etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("生产工单结束日期");
+
+                    b.Property<string>("moentry_prdname")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("生产组织名称");
+
+                    b.Property<DateTime?>("moentry_stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("生产工单开始日期");
+
+                    b.Property<DateTime?>("moentry_sys_etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("系统建议完工时间");
+
+                    b.Property<DateTime?>("moentry_sys_stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("系统建议开工时间");
+
+                    b.Property<string>("moentry_wrkcname")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("工作中心名称");
+
+                    b.Property<decimal?>("morder_need_time")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("工单所需工时");
+
+                    b.Property<string>("morder_no")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("生产工单编号");
+
+                    b.Property<decimal?>("morder_production_number")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("工单生产数量");
+
+                    b.Property<decimal?>("need_number")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("需求数量");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<DateTime?>("reality_end_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("实际结束时间");
+
+                    b.Property<DateTime?>("reality_start_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("实际开始时间");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_mo_order", (string)null);
+
+                    b.HasComment("生产工单明细");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_ooder", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<decimal?>("morder_production_number")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("工单生产数量");
+
+                    b.Property<DateTime?>("ooentry_etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("计划完工日期");
+
+                    b.Property<string>("ooentry_prdname")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("生产组织名称");
+
+                    b.Property<DateTime?>("ooentry_stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("计划开工日期");
+
+                    b.Property<DateTime?>("oorder_date")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("委外订单日期");
+
+                    b.Property<string>("oorder_no")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("工单编号");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<string>("production_unit")
+                        .HasMaxLength(100)
+                        .HasColumnType("varchar(100)")
+                        .HasComment("加工单位");
+
+                    b.Property<string>("production_unit_code")
+                        .HasMaxLength(20)
+                        .HasColumnType("varchar(20)")
+                        .HasComment("加工单位编码");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_ooder", (string)null);
+
+                    b.HasComment("采购占用明细");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_purchase", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<decimal?>("pr_aqty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("申请数量");
+
+                    b.Property<string>("pr_billno")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("pr单号");
+
+                    b.Property<decimal?>("pr_orderprice")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("订单价格(含税)");
+
+                    b.Property<DateTime?>("pr_parrive_date")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("计划到达日期");
+
+                    b.Property<decimal?>("pr_price")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("采购净价(不含税)");
+
+                    b.Property<DateTime?>("pr_pur_affirm_date")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("采购确认到货日期");
+
+                    b.Property<string>("pr_purchasename")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应商名称");
+
+                    b.Property<string>("pr_purchasenumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应商编码");
+
+                    b.Property<DateTime?>("pr_rarrive_date")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("需求到货日期");
+
+                    b.Property<decimal?>("pr_rate")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("税率");
+
+                    b.Property<decimal?>("pr_rqty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("需求数量");
+
+                    b.Property<decimal?>("pr_sqty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("建议数量");
+
+                    b.Property<decimal?>("pr_sysprice")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("系统价格(含税)");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_purchase", (string)null);
+
+                    b.HasComment("采购明细信息");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_purchase_occupy", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<DateTime?>("etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("结束时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<string>("po_billno")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购订单单号");
+
+                    b.Property<decimal?>("qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("占用量");
+
+                    b.Property<DateTime?>("stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("开始时间");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<string>("type")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("类型");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_purchase_occupy", (string)null);
+
+                    b.HasComment("采购占用明细");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}

+ 347 - 0
MicroServices/Business/Business.Host/Migrations/BusinessBangMigrationDb/20230323031341_Bang.cs

@@ -0,0 +1,347 @@
+using System;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessBangMigrationDb
+{
+    public partial class Bang : Migration
+    {
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.AlterDatabase()
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.CreateTable(
+                name: "b_bom_child_examine",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    examine_id = table.Column<long>(type: "bigint", nullable: true, comment: "资源检查ID"),
+                    parent_id = table.Column<long>(type: "bigint", nullable: true, comment: "父级id"),
+                    bom_child_id = table.Column<long>(type: "bigint", nullable: true, comment: "bom明细主键"),
+                    version = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "版本")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    bom_number = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "bom编号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    item_number = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料编号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    level = table.Column<int>(type: "int", nullable: true, comment: "level"),
+                    sentry_id = table.Column<long>(type: "bigint", nullable: true, comment: "订单行ID"),
+                    bom_id = table.Column<long>(type: "bigint", nullable: true, comment: "BOMid"),
+                    num = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "项次号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    num_order = table.Column<long>(type: "bigint", nullable: true, comment: "排序使用"),
+                    type = table.Column<int>(type: "int", nullable: true, comment: "类型"),
+                    item_id = table.Column<long>(type: "bigint", nullable: true, comment: "物料id"),
+                    item_name = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true, comment: "物料名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    model = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true, comment: "规格型号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    unit = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    erp_cls = table.Column<int>(type: "int", nullable: true, comment: "物料属性"),
+                    erp_cls_name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料属性名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    backflush = table.Column<int>(type: "int", nullable: true, comment: "是否倒冲"),
+                    qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "单位用量"),
+                    sqty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "库存数量"),
+                    use_qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "库存占用数量"),
+                    self_lack_qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "本级缺料数量"),
+                    lack_qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "缺料数量"),
+                    mo_qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "在制占用数量"),
+                    make_qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "自制数量"),
+                    purchase_qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "采购数量"),
+                    purchase_occupy_qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "采购明细占用数量"),
+                    subcontracting_qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "委外数量"),
+                    kitting_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "齐套时间"),
+                    satisfy_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "满足时间"),
+                    isbom = table.Column<int>(type: "int", nullable: true, comment: "是否BOM"),
+                    haveicsubs = table.Column<int>(type: "int", nullable: true, comment: "存在替代关系"),
+                    substitute_code = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "群组代码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    substitute_all_num = table.Column<int>(type: "int", nullable: true, comment: "群组优先级"),
+                    substitute_strategy = table.Column<int>(type: "int", nullable: true, comment: "替代策略"),
+                    substitute_mode = table.Column<int>(type: "int", nullable: true, comment: "替代方式"),
+                    stock_state = table.Column<int>(type: "int", nullable: true, comment: "物料状态"),
+                    needCount = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "单个产品总需要用量"),
+                    is_use = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否使用此物料"),
+                    create_by = table.Column<long>(type: "bigint", nullable: true, comment: "创建人id"),
+                    create_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "创建人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    create_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建时间"),
+                    update_by = table.Column<long>(type: "bigint", nullable: true, comment: "修改人"),
+                    update_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "修改人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    update_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改时间"),
+                    tenant_id = table.Column<long>(type: "bigint", nullable: false, comment: "企业ID"),
+                    factory_id = table.Column<long>(type: "bigint", nullable: true, comment: "工厂ID"),
+                    org_id = table.Column<long>(type: "bigint", nullable: true, comment: "组织ID"),
+                    IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "删除标识")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_b_bom_child_examine", x => x.Id);
+                },
+                comment: "Bom明细检查结果")
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.CreateTable(
+                name: "b_examine_result",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    sorderid = table.Column<long>(type: "bigint", nullable: true, comment: "订单id"),
+                    bill_no = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "订单编号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    sentry_id = table.Column<long>(type: "bigint", nullable: true, comment: "订单行id"),
+                    entry_seq = table.Column<int>(type: "int", nullable: true, comment: "行号"),
+                    morder_id = table.Column<long>(type: "bigint", nullable: true, comment: "工单id"),
+                    morder_no = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "工单号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    bom_number = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "BOM编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    need_qty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "BOM编码"),
+                    earliest_times = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "最早开工时间"),
+                    latest_times = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "最晚开工时间"),
+                    order_statr_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "工单开工时间"),
+                    kitting_times = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "物料齐套时间"),
+                    create_by = table.Column<long>(type: "bigint", nullable: true, comment: "创建人id"),
+                    create_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "创建人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    create_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建时间"),
+                    update_by = table.Column<long>(type: "bigint", nullable: true, comment: "修改人"),
+                    update_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "修改人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    update_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改时间"),
+                    tenant_id = table.Column<long>(type: "bigint", nullable: false, comment: "企业ID"),
+                    factory_id = table.Column<long>(type: "bigint", nullable: true, comment: "工厂ID"),
+                    org_id = table.Column<long>(type: "bigint", nullable: true, comment: "组织ID"),
+                    IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "删除标识")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_b_examine_result", x => x.Id);
+                },
+                comment: "资源检查")
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.CreateTable(
+                name: "b_mo_occupy",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    bom_child_examine_id = table.Column<long>(type: "bigint", nullable: true, comment: "物料检查明细ID"),
+                    moo_mo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "工单号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    moo_qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "占用量"),
+                    moo_stime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "开始时间"),
+                    moo_etime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "结束时间"),
+                    create_by = table.Column<long>(type: "bigint", nullable: true, comment: "创建人id"),
+                    create_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "创建人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    create_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建时间"),
+                    update_by = table.Column<long>(type: "bigint", nullable: true, comment: "修改人"),
+                    update_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "修改人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    update_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改时间"),
+                    tenant_id = table.Column<long>(type: "bigint", nullable: false, comment: "企业ID"),
+                    factory_id = table.Column<long>(type: "bigint", nullable: true, comment: "工厂ID"),
+                    org_id = table.Column<long>(type: "bigint", nullable: true, comment: "组织ID"),
+                    IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "删除标识")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_b_mo_occupy", x => x.Id);
+                },
+                comment: "在制占用明细")
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.CreateTable(
+                name: "b_mo_order",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    bom_child_examine_id = table.Column<long>(type: "bigint", nullable: true, comment: "物料检查明细ID"),
+                    morder_no = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "生产工单编号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    moentry_prdname = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "生产组织名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    moentry_wrkcname = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "工作中心名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    moentry_stime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "生产工单开始日期"),
+                    moentry_etime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "生产工单结束日期"),
+                    moentry_sys_stime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "系统建议开工时间"),
+                    moentry_sys_etime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "系统建议完工时间"),
+                    reality_start_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "实际开始时间"),
+                    reality_end_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "实际结束时间"),
+                    morder_need_time = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "工单所需工时"),
+                    morder_production_number = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "工单生产数量"),
+                    need_number = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "需求数量"),
+                    create_by = table.Column<long>(type: "bigint", nullable: true, comment: "创建人id"),
+                    create_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "创建人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    create_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建时间"),
+                    update_by = table.Column<long>(type: "bigint", nullable: true, comment: "修改人"),
+                    update_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "修改人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    update_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改时间"),
+                    tenant_id = table.Column<long>(type: "bigint", nullable: false, comment: "企业ID"),
+                    factory_id = table.Column<long>(type: "bigint", nullable: true, comment: "工厂ID"),
+                    org_id = table.Column<long>(type: "bigint", nullable: true, comment: "组织ID"),
+                    IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "删除标识")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_b_mo_order", x => x.Id);
+                },
+                comment: "生产工单明细")
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.CreateTable(
+                name: "b_ooder",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    bom_child_examine_id = table.Column<long>(type: "bigint", nullable: true, comment: "物料检查明细ID"),
+                    oorder_no = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "工单编号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    oorder_date = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "委外订单日期"),
+                    ooentry_prdname = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "生产组织名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    ooentry_stime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "计划开工日期"),
+                    ooentry_etime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "计划完工日期"),
+                    morder_production_number = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "工单生产数量"),
+                    production_unit = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "加工单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    production_unit_code = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "加工单位编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    create_by = table.Column<long>(type: "bigint", nullable: true, comment: "创建人id"),
+                    create_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "创建人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    create_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建时间"),
+                    update_by = table.Column<long>(type: "bigint", nullable: true, comment: "修改人"),
+                    update_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "修改人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    update_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改时间"),
+                    tenant_id = table.Column<long>(type: "bigint", nullable: false, comment: "企业ID"),
+                    factory_id = table.Column<long>(type: "bigint", nullable: true, comment: "工厂ID"),
+                    org_id = table.Column<long>(type: "bigint", nullable: true, comment: "组织ID"),
+                    IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "删除标识")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_b_ooder", x => x.Id);
+                },
+                comment: "采购占用明细")
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.CreateTable(
+                name: "b_purchase",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    bom_child_examine_id = table.Column<long>(type: "bigint", nullable: true, comment: "物料检查明细ID"),
+                    pr_billno = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "pr单号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    pr_purchasenumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应商编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    pr_purchasename = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应商名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    pr_rqty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "需求数量"),
+                    pr_aqty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "申请数量"),
+                    pr_sqty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "建议数量"),
+                    pr_parrive_date = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "计划到达日期"),
+                    pr_rarrive_date = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "需求到货日期"),
+                    pr_pur_affirm_date = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "采购确认到货日期"),
+                    pr_sysprice = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "系统价格(含税)"),
+                    pr_orderprice = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "订单价格(含税)"),
+                    pr_price = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "采购净价(不含税)"),
+                    pr_rate = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "税率"),
+                    create_by = table.Column<long>(type: "bigint", nullable: true, comment: "创建人id"),
+                    create_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "创建人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    create_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建时间"),
+                    update_by = table.Column<long>(type: "bigint", nullable: true, comment: "修改人"),
+                    update_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "修改人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    update_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改时间"),
+                    tenant_id = table.Column<long>(type: "bigint", nullable: false, comment: "企业ID"),
+                    factory_id = table.Column<long>(type: "bigint", nullable: true, comment: "工厂ID"),
+                    org_id = table.Column<long>(type: "bigint", nullable: true, comment: "组织ID"),
+                    IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "删除标识")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_b_purchase", x => x.Id);
+                },
+                comment: "采购明细信息")
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.CreateTable(
+                name: "b_purchase_occupy",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    bom_child_examine_id = table.Column<long>(type: "bigint", nullable: true, comment: "物料检查明细ID"),
+                    po_billno = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购订单单号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    type = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    qty = table.Column<decimal>(type: "decimal(65,30)", nullable: true, comment: "占用量"),
+                    stime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "开始时间"),
+                    etime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "结束时间"),
+                    create_by = table.Column<long>(type: "bigint", nullable: true, comment: "创建人id"),
+                    create_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "创建人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    create_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建时间"),
+                    update_by = table.Column<long>(type: "bigint", nullable: true, comment: "修改人"),
+                    update_by_name = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "修改人名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    update_time = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改时间"),
+                    tenant_id = table.Column<long>(type: "bigint", nullable: false, comment: "企业ID"),
+                    factory_id = table.Column<long>(type: "bigint", nullable: true, comment: "工厂ID"),
+                    org_id = table.Column<long>(type: "bigint", nullable: true, comment: "组织ID"),
+                    IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "删除标识")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_b_purchase_occupy", x => x.Id);
+                },
+                comment: "采购占用明细")
+                .Annotation("MySql:CharSet", "utf8mb4");
+        }
+
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropTable(
+                name: "b_bom_child_examine");
+
+            migrationBuilder.DropTable(
+                name: "b_examine_result");
+
+            migrationBuilder.DropTable(
+                name: "b_mo_occupy");
+
+            migrationBuilder.DropTable(
+                name: "b_mo_order");
+
+            migrationBuilder.DropTable(
+                name: "b_ooder");
+
+            migrationBuilder.DropTable(
+                name: "b_purchase");
+
+            migrationBuilder.DropTable(
+                name: "b_purchase_occupy");
+        }
+    }
+}

+ 854 - 0
MicroServices/Business/Business.Host/Migrations/BusinessBangMigrationDb/BusinessBangMigrationDbContextModelSnapshot.cs

@@ -0,0 +1,854 @@
+// <auto-generated />
+using System;
+using Business.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessBangMigrationDb
+{
+    [DbContext(typeof(BusinessBangMigrationDbContext))]
+    partial class BusinessBangMigrationDbContextModelSnapshot : ModelSnapshot
+    {
+        protected override void BuildModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
+                .HasAnnotation("ProductVersion", "6.0.5")
+                .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_bom_child_examine", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<int?>("backflush")
+                        .HasColumnType("int")
+                        .HasComment("是否倒冲");
+
+                    b.Property<long?>("bom_child_id")
+                        .HasColumnType("bigint")
+                        .HasComment("bom明细主键");
+
+                    b.Property<long?>("bom_id")
+                        .HasColumnType("bigint")
+                        .HasComment("BOMid");
+
+                    b.Property<string>("bom_number")
+                        .HasMaxLength(20)
+                        .HasColumnType("varchar(20)")
+                        .HasComment("bom编号");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<int?>("erp_cls")
+                        .HasColumnType("int")
+                        .HasComment("物料属性");
+
+                    b.Property<string>("erp_cls_name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料属性名称");
+
+                    b.Property<long?>("examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("资源检查ID");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<int?>("haveicsubs")
+                        .HasColumnType("int")
+                        .HasComment("存在替代关系");
+
+                    b.Property<bool>("is_use")
+                        .HasColumnType("tinyint(1)")
+                        .HasComment("是否使用此物料");
+
+                    b.Property<int?>("isbom")
+                        .HasColumnType("int")
+                        .HasComment("是否BOM");
+
+                    b.Property<long?>("item_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料id");
+
+                    b.Property<string>("item_name")
+                        .HasMaxLength(200)
+                        .HasColumnType("varchar(200)")
+                        .HasComment("物料名称");
+
+                    b.Property<string>("item_number")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料编号");
+
+                    b.Property<DateTime?>("kitting_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("齐套时间");
+
+                    b.Property<decimal?>("lack_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("缺料数量");
+
+                    b.Property<int?>("level")
+                        .HasColumnType("int")
+                        .HasComment("level");
+
+                    b.Property<decimal?>("make_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("自制数量");
+
+                    b.Property<decimal?>("mo_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("在制占用数量");
+
+                    b.Property<string>("model")
+                        .HasMaxLength(200)
+                        .HasColumnType("varchar(200)")
+                        .HasComment("规格型号");
+
+                    b.Property<decimal?>("needCount")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("单个产品总需要用量");
+
+                    b.Property<string>("num")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("项次号");
+
+                    b.Property<long?>("num_order")
+                        .HasColumnType("bigint")
+                        .HasComment("排序使用");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<long?>("parent_id")
+                        .HasColumnType("bigint")
+                        .HasComment("父级id");
+
+                    b.Property<decimal?>("purchase_occupy_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("采购明细占用数量");
+
+                    b.Property<decimal?>("purchase_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("采购数量");
+
+                    b.Property<decimal?>("qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("单位用量");
+
+                    b.Property<DateTime?>("satisfy_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("满足时间");
+
+                    b.Property<decimal?>("self_lack_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("本级缺料数量");
+
+                    b.Property<long?>("sentry_id")
+                        .HasColumnType("bigint")
+                        .HasComment("订单行ID");
+
+                    b.Property<decimal?>("sqty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("库存数量");
+
+                    b.Property<int?>("stock_state")
+                        .HasColumnType("int")
+                        .HasComment("物料状态");
+
+                    b.Property<decimal?>("subcontracting_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("委外数量");
+
+                    b.Property<int?>("substitute_all_num")
+                        .HasColumnType("int")
+                        .HasComment("群组优先级");
+
+                    b.Property<string>("substitute_code")
+                        .HasMaxLength(20)
+                        .HasColumnType("varchar(20)")
+                        .HasComment("群组代码");
+
+                    b.Property<int?>("substitute_mode")
+                        .HasColumnType("int")
+                        .HasComment("替代方式");
+
+                    b.Property<int?>("substitute_strategy")
+                        .HasColumnType("int")
+                        .HasComment("替代策略");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<int?>("type")
+                        .HasColumnType("int")
+                        .HasComment("类型");
+
+                    b.Property<string>("unit")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("单位");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.Property<decimal?>("use_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("库存占用数量");
+
+                    b.Property<string>("version")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("版本");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_bom_child_examine", (string)null);
+
+                    b.HasComment("Bom明细检查结果");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_examine_result", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<string>("bill_no")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("订单编号");
+
+                    b.Property<string>("bom_number")
+                        .HasMaxLength(20)
+                        .HasColumnType("varchar(20)")
+                        .HasComment("BOM编码");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<DateTime?>("earliest_times")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("最早开工时间");
+
+                    b.Property<int?>("entry_seq")
+                        .HasColumnType("int")
+                        .HasComment("行号");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<DateTime?>("kitting_times")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("物料齐套时间");
+
+                    b.Property<DateTime?>("latest_times")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("最晚开工时间");
+
+                    b.Property<long?>("morder_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工单id");
+
+                    b.Property<string>("morder_no")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("工单号");
+
+                    b.Property<decimal?>("need_qty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("BOM编码");
+
+                    b.Property<DateTime?>("order_statr_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("工单开工时间");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<long?>("sentry_id")
+                        .HasColumnType("bigint")
+                        .HasComment("订单行id");
+
+                    b.Property<long?>("sorderid")
+                        .HasColumnType("bigint")
+                        .HasComment("订单id");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_examine_result", (string)null);
+
+                    b.HasComment("资源检查");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_mo_occupy", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<DateTime?>("moo_etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("结束时间");
+
+                    b.Property<string>("moo_mo")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("工单号");
+
+                    b.Property<decimal?>("moo_qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("占用量");
+
+                    b.Property<DateTime?>("moo_stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("开始时间");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_mo_occupy", (string)null);
+
+                    b.HasComment("在制占用明细");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_mo_order", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<DateTime?>("moentry_etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("生产工单结束日期");
+
+                    b.Property<string>("moentry_prdname")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("生产组织名称");
+
+                    b.Property<DateTime?>("moentry_stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("生产工单开始日期");
+
+                    b.Property<DateTime?>("moentry_sys_etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("系统建议完工时间");
+
+                    b.Property<DateTime?>("moentry_sys_stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("系统建议开工时间");
+
+                    b.Property<string>("moentry_wrkcname")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("工作中心名称");
+
+                    b.Property<decimal?>("morder_need_time")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("工单所需工时");
+
+                    b.Property<string>("morder_no")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("生产工单编号");
+
+                    b.Property<decimal?>("morder_production_number")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("工单生产数量");
+
+                    b.Property<decimal?>("need_number")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("需求数量");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<DateTime?>("reality_end_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("实际结束时间");
+
+                    b.Property<DateTime?>("reality_start_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("实际开始时间");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_mo_order", (string)null);
+
+                    b.HasComment("生产工单明细");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_ooder", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<decimal?>("morder_production_number")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("工单生产数量");
+
+                    b.Property<DateTime?>("ooentry_etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("计划完工日期");
+
+                    b.Property<string>("ooentry_prdname")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("生产组织名称");
+
+                    b.Property<DateTime?>("ooentry_stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("计划开工日期");
+
+                    b.Property<DateTime?>("oorder_date")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("委外订单日期");
+
+                    b.Property<string>("oorder_no")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("工单编号");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<string>("production_unit")
+                        .HasMaxLength(100)
+                        .HasColumnType("varchar(100)")
+                        .HasComment("加工单位");
+
+                    b.Property<string>("production_unit_code")
+                        .HasMaxLength(20)
+                        .HasColumnType("varchar(20)")
+                        .HasComment("加工单位编码");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_ooder", (string)null);
+
+                    b.HasComment("采购占用明细");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_purchase", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<decimal?>("pr_aqty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("申请数量");
+
+                    b.Property<string>("pr_billno")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("pr单号");
+
+                    b.Property<decimal?>("pr_orderprice")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("订单价格(含税)");
+
+                    b.Property<DateTime?>("pr_parrive_date")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("计划到达日期");
+
+                    b.Property<decimal?>("pr_price")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("采购净价(不含税)");
+
+                    b.Property<DateTime?>("pr_pur_affirm_date")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("采购确认到货日期");
+
+                    b.Property<string>("pr_purchasename")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应商名称");
+
+                    b.Property<string>("pr_purchasenumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应商编码");
+
+                    b.Property<DateTime?>("pr_rarrive_date")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("需求到货日期");
+
+                    b.Property<decimal?>("pr_rate")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("税率");
+
+                    b.Property<decimal?>("pr_rqty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("需求数量");
+
+                    b.Property<decimal?>("pr_sqty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("建议数量");
+
+                    b.Property<decimal?>("pr_sysprice")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("系统价格(含税)");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_purchase", (string)null);
+
+                    b.HasComment("采购明细信息");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Bang.b_purchase_occupy", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("tinyint(1)")
+                        .HasDefaultValue(false)
+                        .HasColumnName("IsDeleted")
+                        .HasComment("删除标识");
+
+                    b.Property<long?>("bom_child_examine_id")
+                        .HasColumnType("bigint")
+                        .HasComment("物料检查明细ID");
+
+                    b.Property<long?>("create_by")
+                        .HasColumnType("bigint")
+                        .HasComment("创建人id");
+
+                    b.Property<string>("create_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("创建人名称");
+
+                    b.Property<DateTime?>("create_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建时间");
+
+                    b.Property<DateTime?>("etime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("结束时间");
+
+                    b.Property<long?>("factory_id")
+                        .HasColumnType("bigint")
+                        .HasComment("工厂ID");
+
+                    b.Property<long?>("org_id")
+                        .HasColumnType("bigint")
+                        .HasComment("组织ID");
+
+                    b.Property<string>("po_billno")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购订单单号");
+
+                    b.Property<decimal?>("qty")
+                        .HasColumnType("decimal(65,30)")
+                        .HasComment("占用量");
+
+                    b.Property<DateTime?>("stime")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("开始时间");
+
+                    b.Property<long>("tenant_id")
+                        .HasColumnType("bigint")
+                        .HasComment("企业ID");
+
+                    b.Property<string>("type")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("类型");
+
+                    b.Property<long?>("update_by")
+                        .HasColumnType("bigint")
+                        .HasComment("修改人");
+
+                    b.Property<string>("update_by_name")
+                        .HasMaxLength(50)
+                        .HasColumnType("varchar(50)")
+                        .HasComment("修改人名称");
+
+                    b.Property<DateTime?>("update_time")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改时间");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("b_purchase_occupy", (string)null);
+
+                    b.HasComment("采购占用明细");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}

+ 0 - 81
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323023755_AddBom.cs

@@ -1,81 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace Business.Migrations.BusinessExtMigrationDb
-{
-    public partial class AddBom : Migration
-    {
-        protected override void Up(MigrationBuilder migrationBuilder)
-        {
-            migrationBuilder.CreateTable(
-                name: "bom",
-                columns: table => new
-                {
-                    Id = table.Column<long>(type: "bigint", nullable: false)
-                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
-                    FUseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "使用组织")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "BOM版本")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FName_2052 = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "BOM简称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBOMCATEGORY = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "BOM分类")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMATERIALID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "父项物料编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FITEMNAME = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FITEMMODEL = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "规格型号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FITEMPPROPERTY = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "数据状态")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FReplaceGroup = table.Column<int>(type: "int", nullable: true, comment: "项次"),
-                    FReplacePriority = table.Column<int>(type: "int", nullable: true, comment: "替代优先级"),
-                    FSubstitutionId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "80")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMATERIALIDCHILD_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "子项物料编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCHILDITEMNAME = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "子项物料名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCHILDITEMMODEL = table.Column<DateTime>(type: "datetime(6)", maxLength: 80, nullable: true, comment: "子项规格型号"),
-                    FSupplyType = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "供应类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCHILDUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "子项单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FChildSupplyOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应组织")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FNUMERATOR = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "用量:分子"),
-                    FDENOMINATOR = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "用量:分母"),
-                    FPROCESSID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "作业")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FReplacePolicy = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "替代策略")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FReplaceType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "替代方式")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIskeyItem = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "替代主料")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSubstitutionName = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "替代方案名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_ZXWLMS = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "子项物料描述")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_ZXWLPP = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "子项物料品牌")
-                        .Annotation("MySql:CharSet", "utf8mb4")
-                },
-                constraints: table =>
-                {
-                    table.PrimaryKey("PK_bom", x => x.Id);
-                },
-                comment: "物料清单")
-                .Annotation("MySql:CharSet", "utf8mb4");
-        }
-
-        protected override void Down(MigrationBuilder migrationBuilder)
-        {
-            migrationBuilder.DropTable(
-                name: "bom");
-        }
-    }
-}

+ 0 - 993
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323030012_RenameTable.cs

@@ -1,993 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace Business.Migrations.BusinessExtMigrationDb
-{
-    public partial class RenameTable : Migration
-    {
-        protected override void Up(MigrationBuilder migrationBuilder)
-        {
-            migrationBuilder.DropTable(
-                name: "material");
-
-            migrationBuilder.CreateTable(
-                name: "in_kd_material",
-                columns: table => new
-                {
-                    Id = table.Column<long>(type: "bigint", nullable: false)
-                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
-                    FCreateOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建组织")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FUseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "使用组织")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDataSource = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料来源")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FName_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSpecification_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "规格型号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMnemonicCode = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "助记码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOldNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDescription_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "描述")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMaterialGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMaterialGroup = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FUseStatus = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "数据状态")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FForbidStatus = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "禁用状态")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCreatorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCreateDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建日期"),
-                    FModifierId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "修改人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FModifyDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改日期"),
-                    FApproverId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "审核人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FApproveDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "审核日期"),
-                    FForbidderId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "禁用人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FForbidDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "禁用日期"),
-                    FErpClsID = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料属性")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCategoryID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "存货类别")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTaxType_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税分类")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTaxRateId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认税率")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBaseUnitId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "基本单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsPurchase = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许采购")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsInventory = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许库存")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSubContract = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许委外")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSale = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许销售")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBARCODE = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "条码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FGROSSWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "毛重"),
-                    FNETWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "净重"),
-                    FVOLUMEUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "尺寸单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FLENGTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "长"),
-                    FWIDTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "宽"),
-                    FHEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "高"),
-                    FWEIGHTUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "重量单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FVOLUME = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "体积"),
-                    FStoreUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "库存单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAuxUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "辅助单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓库")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsLockStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可锁库")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsCycleCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用盘点周期")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCountCycle = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "盘点周期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCountDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "盘点周期"),
-                    FIsMustCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "必盘")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsBatchManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用批号管理")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBatchRuleID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "批号编码规则")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsKFPeriod = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用保质期管理")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsExpParToFlot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "批号附属信息")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FExpUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保质期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FExpPeriod = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保质期"),
-                    FOnlineLife = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "在架寿命期"),
-                    FRefCost = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "参考成本"),
-                    FCurrencyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "币别")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSNManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存管理")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableMinStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最小库存")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableSafeStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用安全库存")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSNCodeRule_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "序列号编码规则")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableReOrder = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用再订货点")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableMaxStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最大库存")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSNUnit_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "序列号单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMinStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小库存"),
-                    FSafeStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
-                    FReOrderGood = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "再订货点"),
-                    FEconReOrderQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "经济订货批量"),
-                    FMaxStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大库存"),
-                    FSaleUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSalePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售计价单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOrderQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "起订量"),
-                    FOutStockLmtH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发上限(%)"),
-                    FOutStockLmtL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发下限(%)"),
-                    FAgentSalReduceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理销售减价比例(%)"),
-                    FIsATPCheck = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "ATP检查")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退货")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsReturnPart = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "部件可退")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAllowPublish = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许发布到订货平台")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FISAFTERSALE = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用售后服务")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FISPRODUCTFILES = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生成产品档案")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FISWARRANTED = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否保修")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FWARRANTYUNITID = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保修期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchaseUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchasePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购计价单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchaseGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchaserId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购员")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsQuota = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "配额管理")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FQuotaType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "配额方式")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMinSplitQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小拆分数量"),
-                    FIsVmiBusiness = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "VMI业务")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDefaultVendor_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认供应商")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FChargeID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "费用项目")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSourceControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "货源控制")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsPR = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "需要请购")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FReceiveMaxScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货上限比例(%)"),
-                    FReceiveMinScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货下限比例(%)"),
-                    FIFAgentPurPlusRatesPR = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理采购加成比例"),
-                    FReceiveAdvanceDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货提前天数"),
-                    FReceiveDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货延迟天数"),
-                    FIsReturnMaterial = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退料")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchaseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组织")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSubconUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSubconPriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外计价单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPOBillTypeId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSubBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPlanningStrategy = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "计划策略")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMfgPolicyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "制造策略")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "检验提前期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOrderPolicy = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订货策略")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMinPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小订货量"),
-                    FPlanWorkshop_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划区")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOrderIntervalTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "订货间隔期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FFixLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期"),
-                    FIncreaseQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装量"),
-                    FFixLeadTimeType = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期单位"),
-                    FOrderIntervalTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "订货间隔期"),
-                    FVarLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期"),
-                    FVarLeadTimeLotSize = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期批量"),
-                    FVarLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "变动提前期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMaxPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大订货量"),
-                    FCheckLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "检验提前期"),
-                    FEOQ = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定/经济批量"),
-                    FPlanIntervalsDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "批量拆分间隔天数"),
-                    FPlanBatchSplitQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "拆分批量"),
-                    FIsMrpComReq = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否合并需求")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FRequestTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "需求时界"),
-                    FIsMrpComBill = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否按单合并")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCanLeadDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许提前天数"),
-                    FPlanTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "计划时界"),
-                    FReserveType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "预留类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPlanGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FLeadExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提前宽限期"),
-                    FPlanerID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划员")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FATOSchemeId_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "ATO预测冲销方案"),
-                    FCanDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许延后天数"),
-                    FPlanOffsetTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "偏置时间"),
-                    FPlanSafeStockQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
-                    FDSMatchByLot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "按批号匹配供需")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAllowPartAhead = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分提前")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTimeFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "时间紧迫系数")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAllowPartDelay = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分延后")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FQtyFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "数量负荷系数")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSupplySourceId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应来源")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDelayExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "延后宽限期"),
-                    FPlanOffsetTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "时间单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIssueType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "发料方式")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FWorkShopId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生产车间")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsCoby = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为联副产品")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FProduceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsMainPrd = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为主产品")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBKFLTime = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲时机")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FFinishReceiptOverRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "入库超收比例(%)"),
-                    FPickStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓库")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FFinishReceiptShortRate = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "入库欠收比例(%)")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOverControlMode = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制方式")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBOMUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "子项单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMinIssueQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小发料批量"),
-                    FIsKitting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否关键件")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsCompleteSet = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否齐套件")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStdLaborPrePareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员准备工时"),
-                    FStdLaborProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员实作工时"),
-                    FDefaultRouting_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认工艺路线")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPerUnitStandHour = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准工时"),
-                    FStdMachinePrepareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器准备工时"),
-                    FConsumVolatility = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "消耗波动(%)"),
-                    FLOSSPERCENT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动损耗率(%)"),
-                    FIsSNCarryToParent = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "序列号携带到父项")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStdMachineProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器实作工时"),
-                    FIsProductLine = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产线生产")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FProduceBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOrgTrustBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "组织间受托类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FISMinIssueQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "领料考虑最小发料批量")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsECN = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用ECN")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnable1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsAffectPrice1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响价格")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsAffectPlan1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响计划")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsAffectCost1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响出库成本")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAuxPropertyId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "辅助属性")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsComControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "组合控制")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckIncoming = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "来料检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckProduct = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIncSampSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "抽样方案")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIncQcSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "质检方案")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FEnableCyclistQCSTK = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockCycle = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "复检周期"),
-                    FEnableCyclistQCSTKEW = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检提醒")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSNPRDTracy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产追溯")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FEWLeadDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提醒提前期"),
-                    FWARRANTY = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保修期"),
-                    FOutLmtUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FInspectGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckDelivery = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "发货检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDefBarCodeRuleId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认条码规则")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "退货检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FInspectorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检员")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCONFIGTYPE = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "配置生产")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FFeatureItem = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "特征件子项")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPrintCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "重复打印数"),
-                    FMinIssueUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "最小发料批量单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMdlId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品模型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMdlMaterialId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "模型物料")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTaxCategoryCodeId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收分类编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckEntrusted = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "受托材料检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSuite = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "套件")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBoxStandardQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "单箱标准数量"),
-                    FSalGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "销售分组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckOther = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "其他检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsTaxEnjoy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "享受税收优惠政策")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTaxDiscountsType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收优惠政策类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStandHourUnitId = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "工时单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCostPriceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "结算成本价加减价比例(%)"),
-                    FBackFlushType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲数量")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAccuLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "累计提前期"),
-                    FProductLine_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "产品系列")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FWriteOffQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "冲销数量"),
-                    FFIXLOSS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定损耗"),
-                    FPlanIdent_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划标识")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FProScheTrackId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订单进度分组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMinPackCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装数"),
-                    FDailyOutQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "日产量"),
-                    FIsFirstInspect = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品首检")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckReturnMtrl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产退料检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FForbidReson_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁用原因")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FForbidResonIsUsed = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "已使用")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FUnValidateExpQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "不参与可发量统计")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_WLLX = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableSchedule = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用日排产")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_ZJGLWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "直接关联物料号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDefaultLineId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认产线")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_DYDWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电压/电网类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_GWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "根物料号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_GLD_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "功率段")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_DZLSX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电子料属性")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_JWLBMU8 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码U8")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_PP_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "品牌")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_ZJCSGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机测试工时"),
-                    F_ZYGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "作业工时"),
-                    F_GSZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "工时最后更改日期"),
-                    F_TJZLZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "体积重量最后更改日期"),
-                    F_SMZQZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "生命周期最后更改日期"),
-                    F_TJZLZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "体积重量最后更改人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_SMZQZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生命周期最后更改人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_GSZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "工时最后更改人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_ZJZB_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机质保(月)"),
-                    F_SFJLPCH = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否记录批次号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_YWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "业务类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_CPPLLB = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品披露类别")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_YZSG = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "已终审过")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_WLSQR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料申请人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_CPX_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品线")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_CPFL_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品分类")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_SMZQ = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "料号生命周期")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_YXSL = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许收料")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_XSXH_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "SAJ型号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_HLBZL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "回料包装量"),
-                    F_BZGG = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "包装规格")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_GYS = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "供应商")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_JCYY = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁采原因")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_YXQG = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许请购")
-                        .Annotation("MySql:CharSet", "utf8mb4")
-                },
-                constraints: table =>
-                {
-                    table.PrimaryKey("PK_in_kd_material", x => x.Id);
-                },
-                comment: "物料")
-                .Annotation("MySql:CharSet", "utf8mb4");
-        }
-
-        protected override void Down(MigrationBuilder migrationBuilder)
-        {
-            migrationBuilder.DropTable(
-                name: "in_kd_material");
-
-            migrationBuilder.CreateTable(
-                name: "material",
-                columns: table => new
-                {
-                    Id = table.Column<long>(type: "bigint", nullable: false)
-                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
-                    FATOSchemeId_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "ATO预测冲销方案"),
-                    FAccuLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "累计提前期"),
-                    FAgentSalReduceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理销售减价比例(%)"),
-                    FAllowPartAhead = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分提前")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAllowPartDelay = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分延后")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAllowPublish = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许发布到订货平台")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FApproveDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "审核日期"),
-                    FApproverId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "审核人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAuxPropertyId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "辅助属性")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FAuxUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "辅助单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBARCODE = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "条码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBKFLTime = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲时机")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBOMUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "子项单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBackFlushType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲数量")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBaseUnitId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "基本单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBatchRuleID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "批号编码规则")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FBoxStandardQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "单箱标准数量"),
-                    FCONFIGTYPE = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "配置生产")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCanDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许延后天数"),
-                    FCanLeadDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许提前天数"),
-                    FCategoryID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "存货类别")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FChargeID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "费用项目")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckDelivery = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "发货检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckEntrusted = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "受托材料检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckIncoming = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "来料检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "检验提前期"),
-                    FCheckLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "检验提前期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckOther = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "其他检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckProduct = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "退货检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckReturnMtrl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产退料检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCheckStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存检验")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FConsumVolatility = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "消耗波动(%)"),
-                    FCostPriceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "结算成本价加减价比例(%)"),
-                    FCountCycle = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "盘点周期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCountDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "盘点周期"),
-                    FCreateDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建日期"),
-                    FCreateOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建组织")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCreatorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FCurrencyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "币别")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDSMatchByLot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "按批号匹配供需")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDailyOutQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "日产量"),
-                    FDataSource = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料来源")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDefBarCodeRuleId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认条码规则")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDefaultLineId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认产线")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDefaultRouting_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认工艺路线")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDefaultVendor_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认供应商")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FDelayExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "延后宽限期"),
-                    FDescription_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "描述")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FEOQ = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定/经济批量"),
-                    FEWLeadDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提醒提前期"),
-                    FEconReOrderQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "经济订货批量"),
-                    FEnableCyclistQCSTK = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FEnableCyclistQCSTKEW = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检提醒")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FErpClsID = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料属性")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FExpPeriod = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保质期"),
-                    FExpUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保质期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FFIXLOSS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定损耗"),
-                    FFeatureItem = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "特征件子项")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FFinishReceiptOverRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "入库超收比例(%)"),
-                    FFinishReceiptShortRate = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "入库欠收比例(%)")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FFixLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期"),
-                    FFixLeadTimeType = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期单位"),
-                    FForbidDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "禁用日期"),
-                    FForbidResonIsUsed = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "已使用")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FForbidReson_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁用原因")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FForbidStatus = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "禁用状态")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FForbidderId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "禁用人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FGROSSWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "毛重"),
-                    FHEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "高"),
-                    FIFAgentPurPlusRatesPR = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理采购加成比例"),
-                    FISAFTERSALE = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用售后服务")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FISMinIssueQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "领料考虑最小发料批量")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FISPRODUCTFILES = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生成产品档案")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FISWARRANTED = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否保修")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIncQcSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "质检方案")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIncSampSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "抽样方案")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIncreaseQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装量"),
-                    FInspectGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FInspectorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检员")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsATPCheck = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "ATP检查")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsAffectCost1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响出库成本")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsAffectPlan1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响计划")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsAffectPrice1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响价格")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsBatchManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用批号管理")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsCoby = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为联副产品")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsComControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "组合控制")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsCompleteSet = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否齐套件")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsCycleCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用盘点周期")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsECN = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用ECN")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnable1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableMaxStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最大库存")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableMinStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最小库存")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableReOrder = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用再订货点")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableSafeStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用安全库存")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsEnableSchedule = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用日排产")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsExpParToFlot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "批号附属信息")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsFirstInspect = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品首检")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsInventory = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许库存")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsKFPeriod = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用保质期管理")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsKitting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否关键件")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsLockStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可锁库")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsMainPrd = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为主产品")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsMrpComBill = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否按单合并")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsMrpComReq = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否合并需求")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsMustCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "必盘")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsPR = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "需要请购")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsProductLine = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产线生产")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsPurchase = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许采购")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsQuota = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "配额管理")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退货")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsReturnMaterial = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退料")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsReturnPart = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "部件可退")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSNCarryToParent = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "序列号携带到父项")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSNManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存管理")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSNPRDTracy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产追溯")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSale = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许销售")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSourceControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "货源控制")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsSubContract = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许委外")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsTaxEnjoy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "享受税收优惠政策")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIsVmiBusiness = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "VMI业务")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FIssueType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "发料方式")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FLENGTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "长"),
-                    FLOSSPERCENT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动损耗率(%)"),
-                    FLeadExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提前宽限期"),
-                    FMaterialGroup = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMaterialGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMaxPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大订货量"),
-                    FMaxStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大库存"),
-                    FMdlId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品模型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMdlMaterialId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "模型物料")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMfgPolicyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "制造策略")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMinIssueQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小发料批量"),
-                    FMinIssueUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "最小发料批量单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FMinPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小订货量"),
-                    FMinPackCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装数"),
-                    FMinSplitQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小拆分数量"),
-                    FMinStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小库存"),
-                    FMnemonicCode = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "助记码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FModifierId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "修改人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FModifyDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改日期"),
-                    FNETWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "净重"),
-                    FName_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOldNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOnlineLife = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "在架寿命期"),
-                    FOrderIntervalTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "订货间隔期"),
-                    FOrderIntervalTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "订货间隔期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOrderPolicy = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订货策略")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOrderQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "起订量"),
-                    FOrgTrustBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "组织间受托类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOutLmtUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FOutStockLmtH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发上限(%)"),
-                    FOutStockLmtL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发下限(%)"),
-                    FOverControlMode = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制方式")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPOBillTypeId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPerUnitStandHour = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准工时"),
-                    FPickBinId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickBinId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓库")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPickStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPlanBatchSplitQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "拆分批量"),
-                    FPlanGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPlanIdent_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划标识")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPlanIntervalsDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "批量拆分间隔天数"),
-                    FPlanOffsetTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "偏置时间"),
-                    FPlanOffsetTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "时间单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPlanSafeStockQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
-                    FPlanTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "计划时界"),
-                    FPlanWorkshop_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划区")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPlanerID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划员")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPlanningStrategy = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "计划策略")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPrintCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "重复打印数"),
-                    FProScheTrackId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订单进度分组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FProduceBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FProduceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FProductLine_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "产品系列")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchaseGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchaseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组织")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchasePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购计价单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchaseUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FPurchaserId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购员")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FQtyFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "数量负荷系数")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FQuotaType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "配额方式")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FReOrderGood = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "再订货点"),
-                    FReceiveAdvanceDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货提前天数"),
-                    FReceiveDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货延迟天数"),
-                    FReceiveMaxScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货上限比例(%)"),
-                    FReceiveMinScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货下限比例(%)"),
-                    FRefCost = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "参考成本"),
-                    FRequestTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "需求时界"),
-                    FReserveType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "预留类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSNCodeRule_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "序列号编码规则")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSNUnit_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "序列号单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSafeStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
-                    FSalGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "销售分组")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSalePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售计价单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSaleUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSpecification_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "规格型号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStandHourUnitId = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "工时单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStdLaborPrePareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员准备工时"),
-                    FStdLaborProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员实作工时"),
-                    FStdMachinePrepareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器准备工时"),
-                    FStdMachineProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器实作工时"),
-                    FStockCycle = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "复检周期"),
-                    FStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓库")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStockPlaceId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.名称")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FStoreUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "库存单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSubBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSubconPriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外计价单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSubconUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSuite = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "套件")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FSupplySourceId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应来源")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTaxCategoryCodeId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收分类编码")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTaxDiscountsType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收优惠政策类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTaxRateId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认税率")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTaxType_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税分类")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FTimeFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "时间紧迫系数")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FUnValidateExpQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "不参与可发量统计")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FUseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "使用组织")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FUseStatus = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "数据状态")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FVOLUME = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "体积"),
-                    FVOLUMEUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "尺寸单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FVarLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期"),
-                    FVarLeadTimeLotSize = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期批量"),
-                    FVarLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "变动提前期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FWARRANTY = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保修期"),
-                    FWARRANTYUNITID = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保修期单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FWEIGHTUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "重量单位")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FWIDTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "宽"),
-                    FWorkShopId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生产车间")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    FWriteOffQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "冲销数量"),
-                    F_BZGG = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "包装规格")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_CPFL_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品分类")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_CPPLLB = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品披露类别")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_CPX_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品线")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_DYDWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电压/电网类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_DZLSX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电子料属性")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_GLD_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "功率段")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_GSZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "工时最后更改日期"),
-                    F_GSZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "工时最后更改人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_GWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "根物料号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_GYS = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "供应商")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_HLBZL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "回料包装量"),
-                    F_JCYY = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁采原因")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_JWLBMU8 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码U8")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_PP_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "品牌")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_SFJLPCH = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否记录批次号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_SMZQ = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "料号生命周期")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_SMZQZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "生命周期最后更改日期"),
-                    F_SMZQZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生命周期最后更改人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_TJZLZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "体积重量最后更改日期"),
-                    F_TJZLZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "体积重量最后更改人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_WLLX = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_WLSQR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料申请人")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_XSXH_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "SAJ型号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_YWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "业务类型")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_YXQG = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许请购")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_YXSL = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许收料")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_YZSG = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "已终审过")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_ZJCSGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机测试工时"),
-                    F_ZJGLWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "直接关联物料号")
-                        .Annotation("MySql:CharSet", "utf8mb4"),
-                    F_ZJZB_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机质保(月)"),
-                    F_ZYGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "作业工时")
-                },
-                constraints: table =>
-                {
-                    table.PrimaryKey("PK_material", x => x.Id);
-                },
-                comment: "物料")
-                .Annotation("MySql:CharSet", "utf8mb4");
-        }
-    }
-}

+ 3 - 3
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323030012_RenameTable.Designer.cs → MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323032012_init.Designer.cs

@@ -12,8 +12,8 @@ using Volo.Abp.EntityFrameworkCore;
 namespace Business.Migrations.BusinessExtMigrationDb
 {
     [DbContext(typeof(BusinessExtMigrationDbContext))]
-    [Migration("20230323030012_RenameTable")]
-    partial class RenameTable
+    [Migration("20230323032012_init")]
+    partial class init
     {
         protected override void BuildTargetModel(ModelBuilder modelBuilder)
         {
@@ -159,7 +159,7 @@ namespace Business.Migrations.BusinessExtMigrationDb
 
                     b.HasKey("Id");
 
-                    b.ToTable("bom", (string)null);
+                    b.ToTable("in_kd_bom", (string)null);
 
                     b.HasComment("物料清单");
                 });

+ 67 - 3
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230322181446_init.cs → MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323032012_init.cs

@@ -14,7 +14,68 @@ namespace Business.Migrations.BusinessExtMigrationDb
                 .Annotation("MySql:CharSet", "utf8mb4");
 
             migrationBuilder.CreateTable(
-                name: "material",
+                name: "in_kd_bom",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    FUseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "使用组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "BOM版本")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FName_2052 = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "BOM简称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBOMCATEGORY = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "BOM分类")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMATERIALID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "父项物料编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FITEMNAME = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FITEMMODEL = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "规格型号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FITEMPPROPERTY = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "数据状态")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FReplaceGroup = table.Column<int>(type: "int", nullable: true, comment: "项次"),
+                    FReplacePriority = table.Column<int>(type: "int", nullable: true, comment: "替代优先级"),
+                    FSubstitutionId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "80")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMATERIALIDCHILD_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "子项物料编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCHILDITEMNAME = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "子项物料名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCHILDITEMMODEL = table.Column<DateTime>(type: "datetime(6)", maxLength: 80, nullable: true, comment: "子项规格型号"),
+                    FSupplyType = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "供应类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCHILDUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "子项单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FChildSupplyOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FNUMERATOR = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "用量:分子"),
+                    FDENOMINATOR = table.Column<decimal>(type: "decimal(23,10)", precision: 23, scale: 10, nullable: true, comment: "用量:分母"),
+                    FPROCESSID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "作业")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FReplacePolicy = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "替代策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FReplaceType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "替代方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIskeyItem = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "替代主料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubstitutionName = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "替代方案名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZXWLMS = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "子项物料描述")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZXWLPP = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "子项物料品牌")
+                        .Annotation("MySql:CharSet", "utf8mb4")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_in_kd_bom", x => x.Id);
+                },
+                comment: "物料清单")
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.CreateTable(
+                name: "in_kd_material",
                 columns: table => new
                 {
                     Id = table.Column<long>(type: "bigint", nullable: false)
@@ -493,7 +554,7 @@ namespace Business.Migrations.BusinessExtMigrationDb
                 },
                 constraints: table =>
                 {
-                    table.PrimaryKey("PK_material", x => x.Id);
+                    table.PrimaryKey("PK_in_kd_material", x => x.Id);
                 },
                 comment: "物料")
                 .Annotation("MySql:CharSet", "utf8mb4");
@@ -502,7 +563,10 @@ namespace Business.Migrations.BusinessExtMigrationDb
         protected override void Down(MigrationBuilder migrationBuilder)
         {
             migrationBuilder.DropTable(
-                name: "material");
+                name: "in_kd_bom");
+
+            migrationBuilder.DropTable(
+                name: "in_kd_material");
         }
     }
 }

+ 16 - 6
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323023755_AddBom.Designer.cs → MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323051647_AddIsProduce.Designer.cs

@@ -12,8 +12,8 @@ using Volo.Abp.EntityFrameworkCore;
 namespace Business.Migrations.BusinessExtMigrationDb
 {
     [DbContext(typeof(BusinessExtMigrationDbContext))]
-    [Migration("20230323023755_AddBom")]
-    partial class AddBom
+    [Migration("20230323051647_AddIsProduce")]
+    partial class AddIsProduce
     {
         protected override void BuildTargetModel(ModelBuilder modelBuilder)
         {
@@ -23,7 +23,7 @@ namespace Business.Migrations.BusinessExtMigrationDb
                 .HasAnnotation("ProductVersion", "6.0.5")
                 .HasAnnotation("Relational:MaxIdentifierLength", 64);
 
-            modelBuilder.Entity("Bussiness.Model.Ext.bom", b =>
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_bom", b =>
                 {
                     b.Property<long>("Id")
                         .ValueGeneratedOnAdd()
@@ -159,12 +159,12 @@ namespace Business.Migrations.BusinessExtMigrationDb
 
                     b.HasKey("Id");
 
-                    b.ToTable("bom", (string)null);
+                    b.ToTable("in_kd_bom", (string)null);
 
                     b.HasComment("物料清单");
                 });
 
-            modelBuilder.Entity("Bussiness.Model.Ext.material", b =>
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_material", b =>
                 {
                     b.Property<long>("Id")
                         .ValueGeneratedOnAdd()
@@ -587,6 +587,11 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("varchar(1)")
                         .HasComment("影响价格");
 
+                    b.Property<string>("FIsAsset")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许资产");
+
                     b.Property<string>("FIsBatchManage")
                         .HasMaxLength(1)
                         .HasColumnType("varchar(1)")
@@ -702,6 +707,11 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("varchar(1)")
                         .HasComment("需要请购");
 
+                    b.Property<string>("FIsProduce")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("FIsProduce");
+
                     b.Property<string>("FIsProductLine")
                         .HasMaxLength(1)
                         .HasColumnType("varchar(1)")
@@ -1535,7 +1545,7 @@ namespace Business.Migrations.BusinessExtMigrationDb
 
                     b.HasKey("Id");
 
-                    b.ToTable("material", (string)null);
+                    b.ToTable("in_kd_material", (string)null);
 
                     b.HasComment("物料");
                 });

+ 41 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323051647_AddIsProduce.cs

@@ -0,0 +1,41 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    public partial class AddIsProduce : Migration
+    {
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.AddColumn<string>(
+                name: "FIsAsset",
+                table: "in_kd_material",
+                type: "varchar(1)",
+                maxLength: 1,
+                nullable: true,
+                comment: "允许资产")
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.AddColumn<string>(
+                name: "FIsProduce",
+                table: "in_kd_material",
+                type: "varchar(1)",
+                maxLength: 1,
+                nullable: true,
+                comment: "FIsProduce")
+                .Annotation("MySql:CharSet", "utf8mb4");
+        }
+
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropColumn(
+                name: "FIsAsset",
+                table: "in_kd_material");
+
+            migrationBuilder.DropColumn(
+                name: "FIsProduce",
+                table: "in_kd_material");
+        }
+    }
+}

+ 1555 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323052259_AddFAgentPurPlusRate.Designer.cs

@@ -0,0 +1,1555 @@
+// <auto-generated />
+using System;
+using Business.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    [DbContext(typeof(BusinessExtMigrationDbContext))]
+    [Migration("20230323052259_AddFAgentPurPlusRate")]
+    partial class AddFAgentPurPlusRate
+    {
+        protected override void BuildTargetModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
+                .HasAnnotation("ProductVersion", "6.0.5")
+                .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_bom", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<string>("FBOMCATEGORY")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM分类");
+
+                    b.Property<DateTime?>("FCHILDITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("datetime(6)")
+                        .HasComment("子项规格型号");
+
+                    b.Property<string>("FCHILDITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料名称");
+
+                    b.Property<string>("FCHILDUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FChildSupplyOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应组织");
+
+                    b.Property<decimal?>("FDENOMINATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分母");
+
+                    b.Property<string>("FITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料名称");
+
+                    b.Property<string>("FITEMPPROPERTY")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("数据状态");
+
+                    b.Property<string>("FIskeyItem")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("替代主料");
+
+                    b.Property<string>("FMATERIALIDCHILD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料编码");
+
+                    b.Property<string>("FMATERIALID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("父项物料编码");
+
+                    b.Property<decimal?>("FNUMERATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分子");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("BOM简称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM版本");
+
+                    b.Property<string>("FPROCESSID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("作业");
+
+                    b.Property<int?>("FReplaceGroup")
+                        .HasColumnType("int")
+                        .HasComment("项次");
+
+                    b.Property<string>("FReplacePolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代策略");
+
+                    b.Property<int?>("FReplacePriority")
+                        .HasColumnType("int")
+                        .HasComment("替代优先级");
+
+                    b.Property<string>("FReplaceType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方式");
+
+                    b.Property<string>("FSubstitutionId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("80");
+
+                    b.Property<string>("FSubstitutionName")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方案名称");
+
+                    b.Property<string>("FSupplyType")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("供应类型");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("F_ZXWLMS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料描述");
+
+                    b.Property<string>("F_ZXWLPP")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料品牌");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("in_kd_bom", (string)null);
+
+                    b.HasComment("物料清单");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_material", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<decimal?>("FATOSchemeId_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("ATO预测冲销方案");
+
+                    b.Property<decimal?>("FAccuLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("累计提前期");
+
+                    b.Property<decimal?>("FAgentPurPlusRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理采购加成比例");
+
+                    b.Property<decimal?>("FAgentSalReduceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理销售减价比例(%)");
+
+                    b.Property<string>("FAllowPartAhead")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分提前");
+
+                    b.Property<string>("FAllowPartDelay")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分延后");
+
+                    b.Property<string>("FAllowPublish")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许发布到订货平台");
+
+                    b.Property<DateTime?>("FApproveDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("审核日期");
+
+                    b.Property<string>("FApproverId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("审核人");
+
+                    b.Property<string>("FAuxPropertyId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("辅助属性");
+
+                    b.Property<string>("FAuxUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("辅助单位");
+
+                    b.Property<string>("FBARCODE")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("条码");
+
+                    b.Property<string>("FBKFLTime")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲时机");
+
+                    b.Property<string>("FBOMUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FBackFlushType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲数量");
+
+                    b.Property<string>("FBaseUnitId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("基本单位");
+
+                    b.Property<string>("FBatchRuleID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("批号编码规则");
+
+                    b.Property<decimal?>("FBoxStandardQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("单箱标准数量");
+
+                    b.Property<string>("FCONFIGTYPE")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("配置生产");
+
+                    b.Property<decimal?>("FCanDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许延后天数");
+
+                    b.Property<decimal?>("FCanLeadDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许提前天数");
+
+                    b.Property<string>("FCategoryID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("存货类别");
+
+                    b.Property<string>("FChargeID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("费用项目");
+
+                    b.Property<string>("FCheckDelivery")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("发货检验");
+
+                    b.Property<string>("FCheckEntrusted")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("受托材料检验");
+
+                    b.Property<string>("FCheckIncoming")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("来料检验");
+
+                    b.Property<decimal?>("FCheckLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("检验提前期");
+
+                    b.Property<string>("FCheckLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("检验提前期单位");
+
+                    b.Property<string>("FCheckOther")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("其他检验");
+
+                    b.Property<string>("FCheckProduct")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品检验");
+
+                    b.Property<string>("FCheckReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("退货检验");
+
+                    b.Property<string>("FCheckReturnMtrl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产退料检验");
+
+                    b.Property<string>("FCheckStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存检验");
+
+                    b.Property<decimal?>("FConsumVolatility")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("消耗波动(%)");
+
+                    b.Property<decimal?>("FCostPriceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("结算成本价加减价比例(%)");
+
+                    b.Property<string>("FCountCycle")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("盘点周期单位");
+
+                    b.Property<decimal?>("FCountDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("盘点周期");
+
+                    b.Property<DateTime?>("FCreateDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建日期");
+
+                    b.Property<string>("FCreateOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建组织");
+
+                    b.Property<string>("FCreatorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建人");
+
+                    b.Property<string>("FCurrencyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("币别");
+
+                    b.Property<string>("FDSMatchByLot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("按批号匹配供需");
+
+                    b.Property<decimal?>("FDailyOutQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("日产量");
+
+                    b.Property<string>("FDataSource")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料来源");
+
+                    b.Property<string>("FDefBarCodeRuleId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认条码规则");
+
+                    b.Property<string>("FDefaultLineId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认产线");
+
+                    b.Property<string>("FDefaultRouting_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认工艺路线");
+
+                    b.Property<string>("FDefaultVendor_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认供应商");
+
+                    b.Property<decimal?>("FDelayExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("延后宽限期");
+
+                    b.Property<string>("FDescription_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("描述");
+
+                    b.Property<decimal?>("FEOQ")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定/经济批量");
+
+                    b.Property<decimal?>("FEWLeadDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提醒提前期");
+
+                    b.Property<decimal?>("FEconReOrderQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("经济订货批量");
+
+                    b.Property<string>("FEnableCyclistQCSTK")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检");
+
+                    b.Property<string>("FEnableCyclistQCSTKEW")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检提醒");
+
+                    b.Property<string>("FErpClsID")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料属性");
+
+                    b.Property<decimal?>("FExpPeriod")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保质期");
+
+                    b.Property<string>("FExpUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保质期单位");
+
+                    b.Property<decimal?>("FFIXLOSS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定损耗");
+
+                    b.Property<string>("FFeatureItem")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("特征件子项");
+
+                    b.Property<decimal?>("FFinishReceiptOverRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("入库超收比例(%)");
+
+                    b.Property<string>("FFinishReceiptShortRate")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("入库欠收比例(%)");
+
+                    b.Property<decimal?>("FFixLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期");
+
+                    b.Property<decimal?>("FFixLeadTimeType")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期单位");
+
+                    b.Property<DateTime?>("FForbidDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("禁用日期");
+
+                    b.Property<string>("FForbidResonIsUsed")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("已使用");
+
+                    b.Property<string>("FForbidReson_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁用原因");
+
+                    b.Property<string>("FForbidStatus")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("禁用状态");
+
+                    b.Property<string>("FForbidderId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("禁用人");
+
+                    b.Property<decimal?>("FGROSSWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("毛重");
+
+                    b.Property<decimal?>("FHEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("高");
+
+                    b.Property<string>("FISAFTERSALE")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用售后服务");
+
+                    b.Property<string>("FISMinIssueQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("领料考虑最小发料批量");
+
+                    b.Property<string>("FISPRODUCTFILES")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生成产品档案");
+
+                    b.Property<string>("FISWARRANTED")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否保修");
+
+                    b.Property<string>("FIncQcSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("质检方案");
+
+                    b.Property<string>("FIncSampSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("抽样方案");
+
+                    b.Property<decimal?>("FIncreaseQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装量");
+
+                    b.Property<string>("FInspectGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检组");
+
+                    b.Property<string>("FInspectorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检员");
+
+                    b.Property<string>("FIsATPCheck")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("ATP检查");
+
+                    b.Property<string>("FIsAffectCost1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响出库成本");
+
+                    b.Property<string>("FIsAffectPlan1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响计划");
+
+                    b.Property<string>("FIsAffectPrice1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响价格");
+
+                    b.Property<string>("FIsAsset")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许资产");
+
+                    b.Property<string>("FIsBatchManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用批号管理");
+
+                    b.Property<string>("FIsCoby")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为联副产品");
+
+                    b.Property<string>("FIsComControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("组合控制");
+
+                    b.Property<string>("FIsCompleteSet")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否齐套件");
+
+                    b.Property<string>("FIsCycleCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用盘点周期");
+
+                    b.Property<string>("FIsECN")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用ECN");
+
+                    b.Property<string>("FIsEnable1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用");
+
+                    b.Property<string>("FIsEnableMaxStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最大库存");
+
+                    b.Property<string>("FIsEnableMinStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最小库存");
+
+                    b.Property<string>("FIsEnableReOrder")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用再订货点");
+
+                    b.Property<string>("FIsEnableSafeStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用安全库存");
+
+                    b.Property<string>("FIsEnableSchedule")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用日排产");
+
+                    b.Property<string>("FIsExpParToFlot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("批号附属信息");
+
+                    b.Property<string>("FIsFirstInspect")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品首检");
+
+                    b.Property<string>("FIsInventory")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许库存");
+
+                    b.Property<string>("FIsKFPeriod")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用保质期管理");
+
+                    b.Property<string>("FIsKitting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否关键件");
+
+                    b.Property<string>("FIsLockStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可锁库");
+
+                    b.Property<string>("FIsMainPrd")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为主产品");
+
+                    b.Property<string>("FIsMrpComBill")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否按单合并");
+
+                    b.Property<string>("FIsMrpComReq")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否合并需求");
+
+                    b.Property<string>("FIsMustCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("必盘");
+
+                    b.Property<string>("FIsPR")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("需要请购");
+
+                    b.Property<string>("FIsProduce")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("FIsProduce");
+
+                    b.Property<string>("FIsProductLine")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产线生产");
+
+                    b.Property<string>("FIsPurchase")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许采购");
+
+                    b.Property<string>("FIsQuota")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("配额管理");
+
+                    b.Property<string>("FIsReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退货");
+
+                    b.Property<string>("FIsReturnMaterial")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退料");
+
+                    b.Property<string>("FIsReturnPart")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("部件可退");
+
+                    b.Property<string>("FIsSNCarryToParent")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("序列号携带到父项");
+
+                    b.Property<string>("FIsSNManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存管理");
+
+                    b.Property<string>("FIsSNPRDTracy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产追溯");
+
+                    b.Property<string>("FIsSale")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许销售");
+
+                    b.Property<string>("FIsSourceControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("货源控制");
+
+                    b.Property<string>("FIsSubContract")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许委外");
+
+                    b.Property<string>("FIsTaxEnjoy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("享受税收优惠政策");
+
+                    b.Property<string>("FIsVmiBusiness")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("VMI业务");
+
+                    b.Property<string>("FIssueType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("发料方式");
+
+                    b.Property<decimal?>("FLENGTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("长");
+
+                    b.Property<decimal?>("FLOSSPERCENT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动损耗率(%)");
+
+                    b.Property<decimal?>("FLeadExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提前宽限期");
+
+                    b.Property<string>("FMaterialGroup")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组编码");
+
+                    b.Property<string>("FMaterialGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组");
+
+                    b.Property<decimal?>("FMaxPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大订货量");
+
+                    b.Property<decimal?>("FMaxStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大库存");
+
+                    b.Property<string>("FMdlId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品模型");
+
+                    b.Property<string>("FMdlMaterialId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("模型物料");
+
+                    b.Property<string>("FMfgPolicyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("制造策略");
+
+                    b.Property<decimal?>("FMinIssueQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小发料批量");
+
+                    b.Property<string>("FMinIssueUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("最小发料批量单位");
+
+                    b.Property<decimal?>("FMinPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小订货量");
+
+                    b.Property<decimal?>("FMinPackCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装数");
+
+                    b.Property<decimal?>("FMinSplitQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小拆分数量");
+
+                    b.Property<decimal?>("FMinStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小库存");
+
+                    b.Property<string>("FMnemonicCode")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("助记码");
+
+                    b.Property<string>("FModifierId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("修改人");
+
+                    b.Property<DateTime?>("FModifyDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改日期");
+
+                    b.Property<decimal?>("FNETWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("净重");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("名称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("编码");
+
+                    b.Property<string>("FOldNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码");
+
+                    b.Property<decimal?>("FOnlineLife")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("在架寿命期");
+
+                    b.Property<decimal?>("FOrderIntervalTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("订货间隔期");
+
+                    b.Property<string>("FOrderIntervalTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("订货间隔期单位");
+
+                    b.Property<string>("FOrderPolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订货策略");
+
+                    b.Property<decimal?>("FOrderQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("起订量");
+
+                    b.Property<string>("FOrgTrustBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("组织间受托类型");
+
+                    b.Property<string>("FOutLmtUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制单位");
+
+                    b.Property<decimal?>("FOutStockLmtH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发上限(%)");
+
+                    b.Property<decimal?>("FOutStockLmtL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发下限(%)");
+
+                    b.Property<string>("FOverControlMode")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制方式");
+
+                    b.Property<string>("FPOBillTypeId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购类型");
+
+                    b.Property<decimal?>("FPerUnitStandHour")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准工时");
+
+                    b.Property<string>("FPickBinId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.名称");
+
+                    b.Property<string>("FPickBinId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.编码");
+
+                    b.Property<string>("FPickBinId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.名称");
+
+                    b.Property<string>("FPickBinId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.名称");
+
+                    b.Property<string>("FPickStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓库");
+
+                    b.Property<string>("FPickStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位");
+
+                    b.Property<decimal?>("FPlanBatchSplitQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("拆分批量");
+
+                    b.Property<string>("FPlanGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划组");
+
+                    b.Property<string>("FPlanIdent_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划标识");
+
+                    b.Property<decimal?>("FPlanIntervalsDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("批量拆分间隔天数");
+
+                    b.Property<decimal?>("FPlanOffsetTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("偏置时间");
+
+                    b.Property<string>("FPlanOffsetTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("时间单位");
+
+                    b.Property<decimal?>("FPlanSafeStockQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<decimal?>("FPlanTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("计划时界");
+
+                    b.Property<string>("FPlanWorkshop_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划区");
+
+                    b.Property<string>("FPlanerID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划员");
+
+                    b.Property<string>("FPlanningStrategy")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("计划策略");
+
+                    b.Property<decimal?>("FPrintCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("重复打印数");
+
+                    b.Property<string>("FProScheTrackId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订单进度分组");
+
+                    b.Property<string>("FProduceBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产类型");
+
+                    b.Property<string>("FProduceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产单位");
+
+                    b.Property<string>("FProductLine_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("产品系列");
+
+                    b.Property<string>("FPurchaseGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组");
+
+                    b.Property<string>("FPurchaseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组织");
+
+                    b.Property<string>("FPurchasePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购计价单位");
+
+                    b.Property<string>("FPurchaseUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购单位");
+
+                    b.Property<string>("FPurchaserId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购员");
+
+                    b.Property<string>("FQtyFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("数量负荷系数");
+
+                    b.Property<string>("FQuotaType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("配额方式");
+
+                    b.Property<decimal?>("FReOrderGood")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("再订货点");
+
+                    b.Property<decimal?>("FReceiveAdvanceDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货提前天数");
+
+                    b.Property<decimal?>("FReceiveDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货延迟天数");
+
+                    b.Property<decimal?>("FReceiveMaxScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货上限比例(%)");
+
+                    b.Property<decimal?>("FReceiveMinScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货下限比例(%)");
+
+                    b.Property<decimal?>("FRefCost")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("参考成本");
+
+                    b.Property<decimal?>("FRequestTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("需求时界");
+
+                    b.Property<string>("FReserveType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("预留类型");
+
+                    b.Property<string>("FSNCodeRule_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("序列号编码规则");
+
+                    b.Property<string>("FSNUnit_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("序列号单位");
+
+                    b.Property<decimal?>("FSafeStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<string>("FSalGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("销售分组");
+
+                    b.Property<string>("FSalePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售计价单位");
+
+                    b.Property<string>("FSaleUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售单位");
+
+                    b.Property<string>("FSpecification_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FStandHourUnitId")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("工时单位");
+
+                    b.Property<decimal?>("FStdLaborPrePareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员准备工时");
+
+                    b.Property<decimal?>("FStdLaborProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员实作工时");
+
+                    b.Property<decimal?>("FStdMachinePrepareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器准备工时");
+
+                    b.Property<decimal?>("FStdMachineProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器实作工时");
+
+                    b.Property<decimal?>("FStockCycle")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("复检周期");
+
+                    b.Property<string>("FStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓库");
+
+                    b.Property<string>("FStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位");
+
+                    b.Property<string>("FStockPlaceId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.名称");
+
+                    b.Property<string>("FStoreUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("库存单位");
+
+                    b.Property<string>("FSubBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外类型");
+
+                    b.Property<string>("FSubconPriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外计价单位");
+
+                    b.Property<string>("FSubconUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外单位");
+
+                    b.Property<string>("FSuite")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("套件");
+
+                    b.Property<string>("FSupplySourceId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应来源");
+
+                    b.Property<string>("FTaxCategoryCodeId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收分类编码");
+
+                    b.Property<string>("FTaxDiscountsType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收优惠政策类型");
+
+                    b.Property<string>("FTaxRateId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认税率");
+
+                    b.Property<string>("FTaxType_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税分类");
+
+                    b.Property<string>("FTimeFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("时间紧迫系数");
+
+                    b.Property<string>("FUnValidateExpQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("不参与可发量统计");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("FUseStatus")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("数据状态");
+
+                    b.Property<decimal?>("FVOLUME")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("体积");
+
+                    b.Property<string>("FVOLUMEUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("尺寸单位");
+
+                    b.Property<decimal?>("FVarLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期");
+
+                    b.Property<decimal?>("FVarLeadTimeLotSize")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期批量");
+
+                    b.Property<string>("FVarLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("变动提前期单位");
+
+                    b.Property<decimal?>("FWARRANTY")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保修期");
+
+                    b.Property<string>("FWARRANTYUNITID")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保修期单位");
+
+                    b.Property<string>("FWEIGHTUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("重量单位");
+
+                    b.Property<decimal?>("FWIDTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("宽");
+
+                    b.Property<string>("FWorkShopId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生产车间");
+
+                    b.Property<decimal?>("FWriteOffQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("冲销数量");
+
+                    b.Property<string>("F_BZGG")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("包装规格");
+
+                    b.Property<string>("F_CPFL_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品分类");
+
+                    b.Property<string>("F_CPPLLB")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品披露类别");
+
+                    b.Property<string>("F_CPX_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品线");
+
+                    b.Property<string>("F_DYDWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电压/电网类型");
+
+                    b.Property<string>("F_DZLSX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电子料属性");
+
+                    b.Property<string>("F_GLD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("功率段");
+
+                    b.Property<DateTime?>("F_GSZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("工时最后更改日期");
+
+                    b.Property<string>("F_GSZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("工时最后更改人");
+
+                    b.Property<string>("F_GWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("根物料号");
+
+                    b.Property<string>("F_GYS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("供应商");
+
+                    b.Property<decimal?>("F_HLBZL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("回料包装量");
+
+                    b.Property<string>("F_JCYY")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁采原因");
+
+                    b.Property<string>("F_JWLBMU8")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码U8");
+
+                    b.Property<string>("F_PP_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("品牌");
+
+                    b.Property<string>("F_SFJLPCH")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否记录批次号");
+
+                    b.Property<string>("F_SMZQ")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("料号生命周期");
+
+                    b.Property<DateTime?>("F_SMZQZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("生命周期最后更改日期");
+
+                    b.Property<string>("F_SMZQZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生命周期最后更改人");
+
+                    b.Property<DateTime?>("F_TJZLZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("体积重量最后更改日期");
+
+                    b.Property<string>("F_TJZLZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("体积重量最后更改人");
+
+                    b.Property<string>("F_WLLX")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料类型");
+
+                    b.Property<string>("F_WLSQR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料申请人");
+
+                    b.Property<string>("F_XSXH_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("SAJ型号");
+
+                    b.Property<string>("F_YWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("业务类型");
+
+                    b.Property<string>("F_YXQG")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许请购");
+
+                    b.Property<string>("F_YXSL")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许收料");
+
+                    b.Property<string>("F_YZSG")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("已终审过");
+
+                    b.Property<decimal?>("F_ZJCSGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机测试工时");
+
+                    b.Property<string>("F_ZJGLWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("直接关联物料号");
+
+                    b.Property<decimal?>("F_ZJZB_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机质保(月)");
+
+                    b.Property<decimal?>("F_ZYGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("作业工时");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("in_kd_material", (string)null);
+
+                    b.HasComment("物料");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}

+ 25 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323052259_AddFAgentPurPlusRate.cs

@@ -0,0 +1,25 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    public partial class AddFAgentPurPlusRate : Migration
+    {
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.RenameColumn(
+                name: "FIFAgentPurPlusRatesPR",
+                table: "in_kd_material",
+                newName: "FAgentPurPlusRate");
+        }
+
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.RenameColumn(
+                name: "FAgentPurPlusRate",
+                table: "in_kd_material",
+                newName: "FIFAgentPurPlusRatesPR");
+        }
+    }
+}

+ 160 - 9
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230322181446_init.Designer.cs → MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323064106_ChangeDataType.Designer.cs

@@ -12,8 +12,8 @@ using Volo.Abp.EntityFrameworkCore;
 namespace Business.Migrations.BusinessExtMigrationDb
 {
     [DbContext(typeof(BusinessExtMigrationDbContext))]
-    [Migration("20230322181446_init")]
-    partial class init
+    [Migration("20230323064106_ChangeDataType")]
+    partial class ChangeDataType
     {
         protected override void BuildTargetModel(ModelBuilder modelBuilder)
         {
@@ -23,7 +23,148 @@ namespace Business.Migrations.BusinessExtMigrationDb
                 .HasAnnotation("ProductVersion", "6.0.5")
                 .HasAnnotation("Relational:MaxIdentifierLength", 64);
 
-            modelBuilder.Entity("Bussiness.Model.Ext.material", b =>
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_bom", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<string>("FBOMCATEGORY")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM分类");
+
+                    b.Property<string>("FCHILDITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项规格型号");
+
+                    b.Property<string>("FCHILDITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料名称");
+
+                    b.Property<string>("FCHILDUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FChildSupplyOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应组织");
+
+                    b.Property<decimal?>("FDENOMINATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分母");
+
+                    b.Property<string>("FITEMMODEL")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FITEMNAME")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料名称");
+
+                    b.Property<string>("FITEMPPROPERTY")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("数据状态");
+
+                    b.Property<string>("FIskeyItem")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("替代主料");
+
+                    b.Property<string>("FMATERIALIDCHILD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("子项物料编码");
+
+                    b.Property<string>("FMATERIALID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("父项物料编码");
+
+                    b.Property<decimal?>("FNUMERATOR")
+                        .HasPrecision(23, 10)
+                        .HasColumnType("decimal(23,10)")
+                        .HasComment("用量:分子");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("BOM简称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("BOM版本");
+
+                    b.Property<string>("FPROCESSID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("作业");
+
+                    b.Property<int?>("FReplaceGroup")
+                        .HasColumnType("int")
+                        .HasComment("项次");
+
+                    b.Property<string>("FReplacePolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代策略");
+
+                    b.Property<int?>("FReplacePriority")
+                        .HasColumnType("int")
+                        .HasComment("替代优先级");
+
+                    b.Property<string>("FReplaceType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方式");
+
+                    b.Property<string>("FSubstitutionId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("80");
+
+                    b.Property<string>("FSubstitutionName")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("替代方案名称");
+
+                    b.Property<string>("FSupplyType")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("供应类型");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("F_ZXWLMS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料描述");
+
+                    b.Property<string>("F_ZXWLPP")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("子项物料品牌");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("in_kd_bom", (string)null);
+
+                    b.HasComment("物料清单");
+                });
+
+            modelBuilder.Entity("Bussiness.Model.Ext.in_kd_material", b =>
                 {
                     b.Property<long>("Id")
                         .ValueGeneratedOnAdd()
@@ -39,6 +180,11 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("decimal(20,8)")
                         .HasComment("累计提前期");
 
+                    b.Property<decimal?>("FAgentPurPlusRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理采购加成比例");
+
                     b.Property<decimal?>("FAgentSalReduceRate")
                         .HasPrecision(20, 8)
                         .HasColumnType("decimal(20,8)")
@@ -376,11 +522,6 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("decimal(20,8)")
                         .HasComment("高");
 
-                    b.Property<decimal?>("FIFAgentPurPlusRatesPR")
-                        .HasPrecision(20, 8)
-                        .HasColumnType("decimal(20,8)")
-                        .HasComment("代理采购加成比例");
-
                     b.Property<string>("FISAFTERSALE")
                         .HasMaxLength(1)
                         .HasColumnType("varchar(1)")
@@ -446,6 +587,11 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("varchar(1)")
                         .HasComment("影响价格");
 
+                    b.Property<string>("FIsAsset")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许资产");
+
                     b.Property<string>("FIsBatchManage")
                         .HasMaxLength(1)
                         .HasColumnType("varchar(1)")
@@ -561,6 +707,11 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("varchar(1)")
                         .HasComment("需要请购");
 
+                    b.Property<string>("FIsProduce")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("FIsProduce");
+
                     b.Property<string>("FIsProductLine")
                         .HasMaxLength(1)
                         .HasColumnType("varchar(1)")
@@ -1394,7 +1545,7 @@ namespace Business.Migrations.BusinessExtMigrationDb
 
                     b.HasKey("Id");
 
-                    b.ToTable("material", (string)null);
+                    b.ToTable("in_kd_material", (string)null);
 
                     b.HasComment("物料");
                 });

+ 44 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230323064106_ChangeDataType.cs

@@ -0,0 +1,44 @@
+using System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    public partial class ChangeDataType : Migration
+    {
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.AlterColumn<string>(
+                name: "FCHILDITEMMODEL",
+                table: "in_kd_bom",
+                type: "varchar(80)",
+                maxLength: 80,
+                nullable: true,
+                comment: "子项规格型号",
+                oldClrType: typeof(DateTime),
+                oldType: "datetime(6)",
+                oldMaxLength: 80,
+                oldNullable: true,
+                oldComment: "子项规格型号")
+                .Annotation("MySql:CharSet", "utf8mb4");
+        }
+
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "FCHILDITEMMODEL",
+                table: "in_kd_bom",
+                type: "datetime(6)",
+                maxLength: 80,
+                nullable: true,
+                comment: "子项规格型号",
+                oldClrType: typeof(string),
+                oldType: "varchar(80)",
+                oldMaxLength: 80,
+                oldNullable: true,
+                oldComment: "子项规格型号")
+                .OldAnnotation("MySql:CharSet", "utf8mb4");
+        }
+    }
+}

+ 18 - 8
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/BusinessExtMigrationDbContextModelSnapshot.cs

@@ -32,9 +32,9 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("varchar(80)")
                         .HasComment("BOM分类");
 
-                    b.Property<DateTime?>("FCHILDITEMMODEL")
+                    b.Property<string>("FCHILDITEMMODEL")
                         .HasMaxLength(80)
-                        .HasColumnType("datetime(6)")
+                        .HasColumnType("varchar(80)")
                         .HasComment("子项规格型号");
 
                     b.Property<string>("FCHILDITEMNAME")
@@ -157,7 +157,7 @@ namespace Business.Migrations.BusinessExtMigrationDb
 
                     b.HasKey("Id");
 
-                    b.ToTable("bom", (string)null);
+                    b.ToTable("in_kd_bom", (string)null);
 
                     b.HasComment("物料清单");
                 });
@@ -178,6 +178,11 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("decimal(20,8)")
                         .HasComment("累计提前期");
 
+                    b.Property<decimal?>("FAgentPurPlusRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理采购加成比例");
+
                     b.Property<decimal?>("FAgentSalReduceRate")
                         .HasPrecision(20, 8)
                         .HasColumnType("decimal(20,8)")
@@ -515,11 +520,6 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("decimal(20,8)")
                         .HasComment("高");
 
-                    b.Property<decimal?>("FIFAgentPurPlusRatesPR")
-                        .HasPrecision(20, 8)
-                        .HasColumnType("decimal(20,8)")
-                        .HasComment("代理采购加成比例");
-
                     b.Property<string>("FISAFTERSALE")
                         .HasMaxLength(1)
                         .HasColumnType("varchar(1)")
@@ -585,6 +585,11 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("varchar(1)")
                         .HasComment("影响价格");
 
+                    b.Property<string>("FIsAsset")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许资产");
+
                     b.Property<string>("FIsBatchManage")
                         .HasMaxLength(1)
                         .HasColumnType("varchar(1)")
@@ -700,6 +705,11 @@ namespace Business.Migrations.BusinessExtMigrationDb
                         .HasColumnType("varchar(1)")
                         .HasComment("需要请购");
 
+                    b.Property<string>("FIsProduce")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("FIsProduce");
+
                     b.Property<string>("FIsProductLine")
                         .HasMaxLength(1)
                         .HasColumnType("varchar(1)")

+ 1 - 1
MicroServices/Business/Bussiness.Model/Ext/in_kd_bom.cs

@@ -108,7 +108,7 @@ namespace Bussiness.Model.Ext
         /// </summary>
         [Comment("子项规格型号")]
         [StringLength(80)]
-        public DateTime? FCHILDITEMMODEL { get; set; }
+        public string? FCHILDITEMMODEL { get; set; }
 
         /// <summary>
         /// 供应类型

+ 15 - 1
MicroServices/Business/Bussiness.Model/Ext/in_kd_material.cs

@@ -202,6 +202,20 @@ namespace Bussiness.Model.Ext
          [StringLength(1)]
         public string? FIsSale { get; set; }
 
+        /// <summary>
+        /// FIsProduce
+        /// </summary>
+        [Comment("FIsProduce")]
+        [StringLength(1)]
+        public string? FIsProduce { get; set; }
+
+        /// <summary>
+        /// 允许资产
+        /// </summary>
+        [Comment("允许资产")]
+        [StringLength(1)]
+        public string? FIsAsset { get; set; }
+
         /// <summary>
         /// 条码
         /// </summary>
@@ -681,7 +695,7 @@ namespace Bussiness.Model.Ext
         /// </summary>
         [Precision(20, 8)]
         [Comment("代理采购加成比例")]
-        public decimal? FIFAgentPurPlusRatesPR { get; set; }
+        public decimal? FAgentPurPlusRate { get; set; }
         /// <summary>
         /// 收货提前天数
         /// </summary>