mahao
2 years ago
37 changed files with 1893 additions and 129 deletions
@ -1,43 +0,0 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.Extensions.Logging; |
|||
using Quartz; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.BackgroundWorkers; |
|||
using Volo.Abp.BackgroundWorkers.Quartz; |
|||
using Volo.Abp.Threading; |
|||
|
|||
namespace WmsWebApi.BackgroundWorker |
|||
{ |
|||
/// <summary>
|
|||
/// 请求重试工作者
|
|||
/// </summary>
|
|||
public class RequestRetryWorker : QuartzBackgroundWorkerBase |
|||
{ |
|||
public DateTimeOffset StartDateTime { get; set; } |
|||
|
|||
public RequestRetryWorker() |
|||
{ |
|||
StartDateTime = new DateTimeOffset(DateTimeOffset.UtcNow.Date.AddDays(1)); |
|||
JobDetail = JobBuilder.Create<RequestRetryWorker>().WithIdentity(nameof(RequestRetryWorker)).Build(); |
|||
Trigger = TriggerBuilder.Create().WithIdentity(nameof(RequestRetryWorker)).StartAt(StartDateTime).WithSimpleSchedule(s => s.WithIntervalInHours(24).RepeatForever()).Build(); |
|||
//Trigger = TriggerBuilder.Create().WithIdentity(nameof(RequestRetryWorker)).StartAt(DateTimeOffset.UtcNow.AddSeconds(20)).WithSimpleSchedule(s => s.WithIntervalInSeconds(2).RepeatForever()).Build();
|
|||
|
|||
ScheduleJob = async scheduler => |
|||
{ |
|||
if (!await scheduler.CheckExists(JobDetail.Key)) |
|||
{ |
|||
await scheduler.ScheduleJob(JobDetail, Trigger); |
|||
} |
|||
}; |
|||
} |
|||
|
|||
public override Task Execute(IJobExecutionContext context) |
|||
{ |
|||
Logger.LogInformation("Executed RequestRetryWorker..!"); |
|||
return Task.CompletedTask; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using WmsWebApi.Boms; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public interface IBomJsonRepository : IRepository<WmsWebApiBOMDTO, Guid> |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using WmsWebApi.OtherZll; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public interface IOtherZllJsonRepository : IRepository<WmsWebApiOtherZLLDTO, Guid> |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using WmsWebApi.PPlan; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public interface IPPlanJsonRepository : IRepository<WmsWebApiPPLANDTO, Guid> |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using WmsWebApi.Parts; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public interface IPartJsonRepository : IRepository<WmsWebApiPARTDTO, Guid> |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using WmsWebApi.Domain; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public interface IProductRecieveJsonRepository : IRepository<WmsWebApiProductRecieveDTO, Guid> |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using WmsWebApi.Purchase; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public interface IPurchaseJsonRepository : IRepository<WmsWebApiPURCHASEDTO, Guid> |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,15 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using WmsWebApi.Boms; |
|||
using WmsWebApi.Domain; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public interface IStockMoveJsonRepository : IRepository<WmsWebApiStockMoveDTO, Guid> |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using WmsWebApi.ZlldcjLogs; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public interface IZlldcjLogJsonRepository : IRepository<WmsWebApiZLLDCJDTO, Guid> |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,92 @@ |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Volo.Abp.Data; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore.Modeling; |
|||
using WmsWebApi.Boms; |
|||
using WmsWebApi.Domain; |
|||
using WmsWebApi.OtherZll; |
|||
using WmsWebApi.Parts; |
|||
using WmsWebApi.PPlan; |
|||
using WmsWebApi.Purchase; |
|||
using WmsWebApi.ZlldcjLogs; |
|||
|
|||
namespace WmsWebApi.EntityFrameworkCore |
|||
{ |
|||
/// <summary>
|
|||
/// Add-Migration xxx -c WmsWebApiJsonDbContext
|
|||
/// Update-Database -Context WmsWebApiJsonDbContext
|
|||
/// </summary>
|
|||
[ConnectionStringName("WmsWebApiJson")] |
|||
public class WmsWebApiJsonDbContext : AbpDbContext<WmsWebApiJsonDbContext> |
|||
{ |
|||
public DbSet<WmsWebApiBOMDTO> BOMJsons { get; set; } |
|||
public DbSet<WmsWebApiOtherZLLDTO> OtherZllJsons { get; set; } |
|||
public DbSet<WmsWebApiPPLANDTO> PPlanJsons { get; set; } |
|||
public DbSet<WmsWebApiProductRecieveDTO> ProductRecieveJsons { get; set; } |
|||
public DbSet<WmsWebApiPURCHASEDTO> PurchaseJsons { get; set; } |
|||
public DbSet<WmsWebApiStockMoveDTO> StockMoveJsons { get; set; } |
|||
public DbSet<WmsWebApiPARTDTO> PartJsons { get; set; } |
|||
public DbSet<WmsWebApiZLLDCJDTO> ZlldcjLogJsons { get; set; } |
|||
|
|||
public WmsWebApiJsonDbContext(DbContextOptions<WmsWebApiJsonDbContext> options) : base(options) |
|||
{ |
|||
this.Database.SetCommandTimeout(60); |
|||
} |
|||
|
|||
protected override void OnModelCreating(ModelBuilder modelBuilder) |
|||
{ |
|||
base.OnModelCreating(modelBuilder); |
|||
|
|||
var options = new WmsWebApiModelBuilderConfigurationOptions(WmsWebApiDbProperties.DbTablePrefix,WmsWebApiDbProperties.DbSchema); |
|||
|
|||
modelBuilder.Entity<WmsWebApiBOMDTO>(b => |
|||
{ |
|||
b.ToTable(WmsWebApiDbProperties.DbTablePrefix + "BOMJsons", WmsWebApiDbProperties.DbSchema); |
|||
b.ConfigureByConvention(); |
|||
}); |
|||
|
|||
modelBuilder.Entity<WmsWebApiOtherZLLDTO>(b => |
|||
{ |
|||
b.ToTable(WmsWebApiDbProperties.DbTablePrefix + "OtherZllJsons", WmsWebApiDbProperties.DbSchema); |
|||
b.ConfigureByConvention(); |
|||
}); |
|||
|
|||
modelBuilder.Entity<WmsWebApiPPLANDTO>(b => |
|||
{ |
|||
b.ToTable(WmsWebApiDbProperties.DbTablePrefix + "PPlanJsons", WmsWebApiDbProperties.DbSchema); |
|||
b.ConfigureByConvention(); |
|||
}); |
|||
|
|||
modelBuilder.Entity<WmsWebApiProductRecieveDTO>(b => |
|||
{ |
|||
b.ToTable(WmsWebApiDbProperties.DbTablePrefix + "ProductRecieveJsons", WmsWebApiDbProperties.DbSchema); |
|||
b.ConfigureByConvention(); |
|||
}); |
|||
|
|||
modelBuilder.Entity<WmsWebApiPURCHASEDTO>(b => |
|||
{ |
|||
b.ToTable(WmsWebApiDbProperties.DbTablePrefix + "PurchaseJsons", WmsWebApiDbProperties.DbSchema); |
|||
b.ConfigureByConvention(); |
|||
}); |
|||
|
|||
modelBuilder.Entity<WmsWebApiStockMoveDTO>(b => |
|||
{ |
|||
b.ToTable(WmsWebApiDbProperties.DbTablePrefix + "StockMoveJsons", WmsWebApiDbProperties.DbSchema); |
|||
b.ConfigureByConvention(); |
|||
}); |
|||
|
|||
modelBuilder.Entity<WmsWebApiPARTDTO>(b => |
|||
{ |
|||
b.ToTable(WmsWebApiDbProperties.DbTablePrefix + "PartJsons", WmsWebApiDbProperties.DbSchema); |
|||
b.ConfigureByConvention(); |
|||
}); |
|||
|
|||
modelBuilder.Entity<WmsWebApiZLLDCJDTO>(b => |
|||
{ |
|||
b.ToTable(WmsWebApiDbProperties.DbTablePrefix + "ZlldcjLogJsons", WmsWebApiDbProperties.DbSchema); |
|||
b.ConfigureByConvention(); |
|||
}); |
|||
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.Boms; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public class EfCoreBomJsonRepository : EfCoreRepository<WmsWebApiJsonDbContext, WmsWebApiBOMDTO, Guid>, IBomJsonRepository |
|||
{ |
|||
public EfCoreBomJsonRepository(IDbContextProvider<WmsWebApiJsonDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
using WmsWebApi.OtherZll; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public class EfCoreOtherZllJsonRepository : EfCoreRepository<WmsWebApiJsonDbContext, WmsWebApiOtherZLLDTO, Guid>, IOtherZllJsonRepository |
|||
{ |
|||
public EfCoreOtherZllJsonRepository(IDbContextProvider<WmsWebApiJsonDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
using WmsWebApi.PPlan; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public class EfCorePPlanJsonRepository : EfCoreRepository<WmsWebApiJsonDbContext, WmsWebApiPPLANDTO, Guid>, IPPlanJsonRepository |
|||
{ |
|||
public EfCorePPlanJsonRepository(IDbContextProvider<WmsWebApiJsonDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
using WmsWebApi.Parts; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public class EfCorePartJsonRepository : EfCoreRepository<WmsWebApiJsonDbContext, WmsWebApiPARTDTO, Guid>, IPartJsonRepository |
|||
{ |
|||
public EfCorePartJsonRepository(IDbContextProvider<WmsWebApiJsonDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.Domain; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public class EfCoreProductRecieveJsonRepository : EfCoreRepository<WmsWebApiJsonDbContext, WmsWebApiProductRecieveDTO, Guid>, IProductRecieveJsonRepository |
|||
{ |
|||
public EfCoreProductRecieveJsonRepository(IDbContextProvider<WmsWebApiJsonDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,19 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.Boms; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
using WmsWebApi.Purchase; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public class EfCorePurchaseJsonRepository : EfCoreRepository<WmsWebApiJsonDbContext, WmsWebApiPURCHASEDTO, Guid>, IPurchaseJsonRepository |
|||
{ |
|||
public EfCorePurchaseJsonRepository(IDbContextProvider<WmsWebApiJsonDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,19 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.Boms; |
|||
using WmsWebApi.Domain; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public class EfCoreStockMoveJsonRepository : EfCoreRepository<WmsWebApiJsonDbContext, WmsWebApiStockMoveDTO, Guid>, IStockMoveJsonRepository |
|||
{ |
|||
public EfCoreStockMoveJsonRepository(IDbContextProvider<WmsWebApiJsonDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
using WmsWebApi.ZlldcjLogs; |
|||
|
|||
namespace WmsWebApi.Jsons |
|||
{ |
|||
/// <summary>
|
|||
/// 仓储
|
|||
/// </summary>
|
|||
public class EfCoreZlldcjLogJsonRepository : EfCoreRepository<WmsWebApiJsonDbContext, WmsWebApiZLLDCJDTO, Guid>, IZlldcjLogJsonRepository |
|||
{ |
|||
public EfCoreZlldcjLogJsonRepository(IDbContextProvider<WmsWebApiJsonDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
// <auto-generated />
|
|||
using System; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Infrastructure; |
|||
using Microsoft.EntityFrameworkCore.Metadata; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
|
|||
namespace WmsWebApi.Migrations.WmsWebApiJsonDb |
|||
{ |
|||
[DbContext(typeof(WmsWebApiJsonDbContext))] |
|||
[Migration("20230307014143_202303070941")] |
|||
partial class _202303070941 |
|||
{ |
|||
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|||
{ |
|||
#pragma warning disable 612, 618
|
|||
modelBuilder |
|||
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) |
|||
.HasAnnotation("Relational:MaxIdentifierLength", 128) |
|||
.HasAnnotation("ProductVersion", "5.0.17") |
|||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Boms.WmsWebApiBOMDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<decimal?>("BMENG") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("DATUV") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("LOEKZ") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MAKTX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MATNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("STLAL") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("STLAN") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("STLST") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("WERKS") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiBOMJsons"); |
|||
}); |
|||
#pragma warning restore 612, 618
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,41 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace WmsWebApi.Migrations.WmsWebApiJsonDb |
|||
{ |
|||
public partial class _202303070941 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "WmsWebApiBOMJsons", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
MATNR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MAKTX = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
WERKS = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
STLAN = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
STLAL = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DATUV = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
BMENG = table.Column<decimal>(type: "decimal(18,2)", nullable: true), |
|||
STLST = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
LOEKZ = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
JSON = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DYSJ = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ITYPE = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
EnumRetryStatus = table.Column<int>(type: "int", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WmsWebApiBOMJsons", x => x.Id); |
|||
}); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "WmsWebApiBOMJsons"); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,387 @@ |
|||
// <auto-generated />
|
|||
using System; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Infrastructure; |
|||
using Microsoft.EntityFrameworkCore.Metadata; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
|
|||
namespace WmsWebApi.Migrations.WmsWebApiJsonDb |
|||
{ |
|||
[DbContext(typeof(WmsWebApiJsonDbContext))] |
|||
[Migration("20230307062843_202303071428")] |
|||
partial class _202303071428 |
|||
{ |
|||
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|||
{ |
|||
#pragma warning disable 612, 618
|
|||
modelBuilder |
|||
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) |
|||
.HasAnnotation("Relational:MaxIdentifierLength", 128) |
|||
.HasAnnotation("ProductVersion", "5.0.17") |
|||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Boms.WmsWebApiBOMDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<decimal?>("BMENG") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("DATUV") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("LOEKZ") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MAKTX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MATNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("STLAL") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("STLAN") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("STLST") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("WERKS") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiBOMJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Domain.WmsWebApiProductRecieveDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("AccountDate") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("BillTime") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("BillType") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("GUID") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("OperName") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ReceiveDate") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SourceBillNum") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiProductRecieveJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Domain.WmsWebApiStockMoveDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("AccountDate") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("BillTime") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("BillType") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("GUID") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("OperName") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ReceiveDate") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SourceBillNum") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiStockMoveJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.OtherZll.WmsWebApiOtherZLLDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MBLNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MJAHR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZLLDJ") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZLLR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiOtherZllJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.PPlan.WmsWebApiPPLANDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("DISPO") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<decimal>("GSMNG") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("KAPTPROG") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MAKTX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MATNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("PEDTR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SCHGRUP") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("VERID") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("WERKS") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("XUBNAME") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZBZSM") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZCDATE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZCTIME") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZMACD") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZMATX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZSCSX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiPPlanJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Parts.WmsWebApiPARTDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("DISGR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("GROES") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MAKTX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MAKTX1") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MATKL") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MATNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MBRSH") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MEINS") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MTART") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("VTWEG") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("WERKS") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZTEXT22") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiPartJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Purchase.WmsWebApiPURCHASEDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("BUDAT") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MBLNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MJAHR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiPurchaseJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.ZlldcjLogs.WmsWebApiZLLDCJDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZDJLX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZLLDJ") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZLTLX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiZlldcjLogJsons"); |
|||
}); |
|||
#pragma warning restore 612, 618
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,192 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace WmsWebApi.Migrations.WmsWebApiJsonDb |
|||
{ |
|||
public partial class _202303071428 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "WmsWebApiOtherZllJsons", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ZLLR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ZLLDJ = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MBLNR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MJAHR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
JSON = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DYSJ = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ITYPE = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
EnumRetryStatus = table.Column<int>(type: "int", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WmsWebApiOtherZllJsons", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "WmsWebApiPartJsons", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
MATNR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MBRSH = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MTART = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
WERKS = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
VTWEG = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MAKTX = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MAKTX1 = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MEINS = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MATKL = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
GROES = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ZTEXT22 = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DISGR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
JSON = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DYSJ = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ITYPE = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
EnumRetryStatus = table.Column<int>(type: "int", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WmsWebApiPartJsons", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "WmsWebApiPPlanJsons", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
PEDTR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
SCHGRUP = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
KAPTPROG = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MATNR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MAKTX = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
WERKS = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
VERID = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ZSCSX = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ZMACD = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ZMATX = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DISPO = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
GSMNG = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
ZBZSM = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
XUBNAME = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ZCDATE = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ZCTIME = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
JSON = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DYSJ = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ITYPE = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
EnumRetryStatus = table.Column<int>(type: "int", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WmsWebApiPPlanJsons", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "WmsWebApiProductRecieveJsons", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
AccountDate = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
BillType = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ReceiveDate = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
GUID = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
OperName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
BillTime = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
SourceBillNum = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
JSON = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DYSJ = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ITYPE = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
EnumRetryStatus = table.Column<int>(type: "int", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WmsWebApiProductRecieveJsons", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "WmsWebApiPurchaseJsons", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
MBLNR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
MJAHR = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
BUDAT = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
JSON = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DYSJ = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ITYPE = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
EnumRetryStatus = table.Column<int>(type: "int", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WmsWebApiPurchaseJsons", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "WmsWebApiStockMoveJsons", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
AccountDate = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
BillType = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ReceiveDate = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
GUID = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
OperName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
BillTime = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
SourceBillNum = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
JSON = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DYSJ = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ITYPE = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
EnumRetryStatus = table.Column<int>(type: "int", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WmsWebApiStockMoveJsons", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "WmsWebApiZlldcjLogJsons", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ZLLDJ = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ZDJLX = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ZLTLX = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
JSON = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
DYSJ = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ITYPE = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
EnumRetryStatus = table.Column<int>(type: "int", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WmsWebApiZlldcjLogJsons", x => x.Id); |
|||
}); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "WmsWebApiOtherZllJsons"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WmsWebApiPartJsons"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WmsWebApiPPlanJsons"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WmsWebApiProductRecieveJsons"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WmsWebApiPurchaseJsons"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WmsWebApiStockMoveJsons"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WmsWebApiZlldcjLogJsons"); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,385 @@ |
|||
// <auto-generated />
|
|||
using System; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Infrastructure; |
|||
using Microsoft.EntityFrameworkCore.Metadata; |
|||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using WmsWebApi.EntityFrameworkCore; |
|||
|
|||
namespace WmsWebApi.Migrations.WmsWebApiJsonDb |
|||
{ |
|||
[DbContext(typeof(WmsWebApiJsonDbContext))] |
|||
partial class WmsWebApiJsonDbContextModelSnapshot : ModelSnapshot |
|||
{ |
|||
protected override void BuildModel(ModelBuilder modelBuilder) |
|||
{ |
|||
#pragma warning disable 612, 618
|
|||
modelBuilder |
|||
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) |
|||
.HasAnnotation("Relational:MaxIdentifierLength", 128) |
|||
.HasAnnotation("ProductVersion", "5.0.17") |
|||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Boms.WmsWebApiBOMDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<decimal?>("BMENG") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("DATUV") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("LOEKZ") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MAKTX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MATNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("STLAL") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("STLAN") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("STLST") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("WERKS") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiBOMJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Domain.WmsWebApiProductRecieveDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("AccountDate") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("BillTime") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("BillType") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("GUID") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("OperName") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ReceiveDate") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SourceBillNum") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiProductRecieveJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Domain.WmsWebApiStockMoveDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("AccountDate") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("BillTime") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("BillType") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("GUID") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("OperName") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ReceiveDate") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SourceBillNum") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiStockMoveJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.OtherZll.WmsWebApiOtherZLLDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MBLNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MJAHR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZLLDJ") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZLLR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiOtherZllJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.PPlan.WmsWebApiPPLANDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("DISPO") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<decimal>("GSMNG") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("KAPTPROG") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MAKTX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MATNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("PEDTR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SCHGRUP") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("VERID") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("WERKS") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("XUBNAME") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZBZSM") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZCDATE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZCTIME") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZMACD") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZMATX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZSCSX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiPPlanJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Parts.WmsWebApiPARTDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("DISGR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("GROES") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MAKTX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MAKTX1") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MATKL") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MATNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MBRSH") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MEINS") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MTART") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("VTWEG") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("WERKS") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZTEXT22") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiPartJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.Purchase.WmsWebApiPURCHASEDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("BUDAT") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MBLNR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("MJAHR") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiPurchaseJsons"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("WmsWebApi.ZlldcjLogs.WmsWebApiZLLDCJDTO", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<DateTime>("DYSJ") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<int>("EnumRetryStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("ITYPE") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("JSON") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZDJLX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZLLDJ") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("ZLTLX") |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.ToTable("WmsWebApiZlldcjLogJsons"); |
|||
}); |
|||
#pragma warning restore 612, 618
|
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue