Browse Source

[CI SKIP] EF迁移 发票同步Qad 实体

master
mahao 1 year ago
parent
commit
dd00159e0d
  1. 73
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs
  2. 71
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/InvoiceSyncQad.cs
  3. 15
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
  4. 5981
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.Designer.cs
  5. 198
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.cs
  6. 97
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

73
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs

@ -90,77 +90,4 @@ namespace SettleAccount.Domain.BQ
{
}
}
/// <summary>
/// 发票同步Qad
/// </summary>
public class InvoiceSyncQad : AuditedAggregateRoot<Guid>
{
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
public int TaskState { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
public Guid TaskID { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
[MaxLength(64)]
public string TaskName { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
[MaxLength(64)]
public string Failedinfo { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
[MaxLength(64)]
public string Domain { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
[MaxLength(64)]
public string Site { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
[MaxLength(64)]
public string InvoiceNumber { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
[MaxLength(64)]
public string SaslnvoiceNumber { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
[MaxLength(64)]
public string Customer { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
[MaxLength(64)]
public string Voucher { get; set; }
}
public enum EnumTaskState
{
None,
Reading,
Success,
Fail
}
}

71
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/InvoiceSyncQad.cs

@ -0,0 +1,71 @@
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;
namespace SettleAccount.Domain.BQ
{
/// <summary>
/// 发票同步Qad
/// </summary>
public class InvoiceSyncQad : AuditedAggregateRoot<Guid>
{
/// <summary>
/// 状态
/// </summary>
[Display(Name = "状态")]
public int TaskState { get; set; }
/// <summary>
/// 任务ID
/// </summary>
[Display(Name = "任务ID")]
public Guid TaskID { get; set; }
/// <summary>
/// 表名
/// </summary>
[Display(Name = "表名")]
[MaxLength(64)]
public string TaskName { get; set; }
/// <summary>
/// 信息
/// </summary>
[Display(Name = "信息")]
[MaxLength(64)]
public string Failedinfo { get; set; }
/// <summary>
/// 域
/// </summary>
[Display(Name = "域")]
[MaxLength(64)]
public string Domain { get; set; }
/// <summary>
/// 地点
/// </summary>
[Display(Name = "地点")]
[MaxLength(64)]
public string Site { get; set; }
/// <summary>
/// 金税发票号
/// </summary>
[Display(Name = "金税发票号")]
[MaxLength(64)]
public string InvoiceNumber { get; set; }
/// <summary>
/// 结算发票号
/// </summary>
[Display(Name = "结算发票号")]
[MaxLength(64)]
public string SaslnvoiceNumber { get; set; }
/// <summary>
/// 客户
/// </summary>
[Display(Name = "客户")]
[MaxLength(64)]
public string Customer { get; set; }
/// <summary>
/// 凭证号
/// </summary>
[Display(Name = "凭证号")]
[MaxLength(64)]
public string Voucher { get; set; }
}
}

15
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs

@ -62,7 +62,7 @@ namespace Win.Sfs.SettleAccount
builder.ConfigureTB_RePartsRelationship(options);
//同步位置标记
builder.ConfigureSyncPositionFlag(options);
builder.ConfigureInvoiceSyncQad(options);
#endregion 基础数据
#region 北汽结算
@ -331,6 +331,19 @@ namespace Win.Sfs.SettleAccount
});
}
/// <summary>
/// 发票同步Qad
/// </summary>
private static void ConfigureInvoiceSyncQad(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
{
builder.Entity<InvoiceSyncQad>(b =>
{
b.ToTable($"{options.TablePrefix}_InvoiceSyncQad", options.Schema);
b.ConfigureByConvention();
});
}
#endregion 基础数据
#region 北汽

5981
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.Designer.cs

File diff suppressed because it is too large

198
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231012015823_20231012-1.cs

@ -0,0 +1,198 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202310121 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Set_InvoiceSyncQad",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TaskState = table.Column<int>(type: "int", nullable: false),
TaskID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TaskName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Failedinfo = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Domain = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Site = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
InvoiceNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
SaslnvoiceNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Customer = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
Voucher = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Set_InvoiceSyncQad", x => x.Id);
});
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"),
column: "ConcurrencyStamp",
value: "325bc4e2a3074f7ab1b41ed5cfd1e8ca");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"),
column: "ConcurrencyStamp",
value: "a11a0e1af79040a5901a0f290cbb7936");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"),
column: "ConcurrencyStamp",
value: "d6afa4a5cbd94ca08f6a7591c80d2531");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"),
column: "ConcurrencyStamp",
value: "c2d69fd69946428bb3aaceef7d68f5b9");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"),
column: "ConcurrencyStamp",
value: "af52a9e211b247b4accd0361198621e1");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"),
column: "ConcurrencyStamp",
value: "295cdcf125a64355afa3d5974c7d79be");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"),
column: "ConcurrencyStamp",
value: "cfa9502d5e314d70b0c1ddef91853d36");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"),
column: "ConcurrencyStamp",
value: "320f864ee06b472eb196e2ad3edc412f");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"),
column: "ConcurrencyStamp",
value: "f9bed92b9cd9469c93829cdb37784b82");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"),
column: "ConcurrencyStamp",
value: "1e5f1338551448eaa8ce065e77578fc4");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"),
column: "ConcurrencyStamp",
value: "6182defa2c0b477186fa6a4de7ea7f2e");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Set_InvoiceSyncQad");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"),
column: "ConcurrencyStamp",
value: "1a1e601cecf048be81c05fef8276da45");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"),
column: "ConcurrencyStamp",
value: "173befe56a454211b5e7a34055c05028");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"),
column: "ConcurrencyStamp",
value: "ece4fb3c94d84db49b29bb7ce5403e0f");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"),
column: "ConcurrencyStamp",
value: "55e773e2549a4b8eb37290f10b2217de");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"),
column: "ConcurrencyStamp",
value: "8df83c3b351c4501af06cb28800daf40");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"),
column: "ConcurrencyStamp",
value: "2f67425d15004f4fbca4ce530ba6fd78");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"),
column: "ConcurrencyStamp",
value: "39237411d84b425d82b192f2d34fa311");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"),
column: "ConcurrencyStamp",
value: "c6ff3a457eab4058aa63aee66825624e");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"),
column: "ConcurrencyStamp",
value: "e59e2f6af2c44e40b0f9b82817789e1d");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"),
column: "ConcurrencyStamp",
value: "4ce40eb18ef0488d81ba2906a4c80b0b");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"),
column: "ConcurrencyStamp",
value: "facdc1ba48df49138b67cf266a4936f2");
}
}
}

97
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

@ -2798,6 +2798,81 @@ namespace Win.Sfs.SettleAccount.Migrations
b.ToTable("Set_INVOICE_WAIT_DETAIL");
});
modelBuilder.Entity("SettleAccount.Domain.BQ.InvoiceSyncQad", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("Customer")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Domain")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("Failedinfo")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("InvoiceNumber")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("SaslnvoiceNumber")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("Site")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<Guid>("TaskID")
.HasColumnType("uniqueidentifier");
b.Property<string>("TaskName")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("TaskState")
.HasColumnType("int");
b.Property<string>("Voucher")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.HasKey("Id");
b.ToTable("Set_InvoiceSyncQad");
});
modelBuilder.Entity("SettleAccount.Domain.BQ.JIT_SE_SA_REPORT", b =>
{
b.Property<Guid>("Id")
@ -4510,7 +4585,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"),
ConcurrencyStamp = "4ce40eb18ef0488d81ba2906a4c80b0b",
ConcurrencyStamp = "1e5f1338551448eaa8ce065e77578fc4",
Cron = "0 0 8 26 *",
IsDisabled = false,
IsRunning = false,
@ -4520,7 +4595,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"),
ConcurrencyStamp = "1a1e601cecf048be81c05fef8276da45",
ConcurrencyStamp = "325bc4e2a3074f7ab1b41ed5cfd1e8ca",
Cron = "0 0/1 * * * ?",
IsDisabled = false,
IsRunning = false,
@ -4530,7 +4605,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"),
ConcurrencyStamp = "173befe56a454211b5e7a34055c05028",
ConcurrencyStamp = "a11a0e1af79040a5901a0f290cbb7936",
Cron = "0 0/1 * * * ?",
IsDisabled = false,
IsRunning = false,
@ -4540,7 +4615,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"),
ConcurrencyStamp = "39237411d84b425d82b192f2d34fa311",
ConcurrencyStamp = "cfa9502d5e314d70b0c1ddef91853d36",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4550,7 +4625,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"),
ConcurrencyStamp = "ece4fb3c94d84db49b29bb7ce5403e0f",
ConcurrencyStamp = "d6afa4a5cbd94ca08f6a7591c80d2531",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4560,7 +4635,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"),
ConcurrencyStamp = "8df83c3b351c4501af06cb28800daf40",
ConcurrencyStamp = "af52a9e211b247b4accd0361198621e1",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4570,7 +4645,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"),
ConcurrencyStamp = "55e773e2549a4b8eb37290f10b2217de",
ConcurrencyStamp = "c2d69fd69946428bb3aaceef7d68f5b9",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4580,7 +4655,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"),
ConcurrencyStamp = "facdc1ba48df49138b67cf266a4936f2",
ConcurrencyStamp = "6182defa2c0b477186fa6a4de7ea7f2e",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4590,7 +4665,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"),
ConcurrencyStamp = "2f67425d15004f4fbca4ce530ba6fd78",
ConcurrencyStamp = "295cdcf125a64355afa3d5974c7d79be",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4600,7 +4675,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"),
ConcurrencyStamp = "e59e2f6af2c44e40b0f9b82817789e1d",
ConcurrencyStamp = "f9bed92b9cd9469c93829cdb37784b82",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4610,7 +4685,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"),
ConcurrencyStamp = "c6ff3a457eab4058aa63aee66825624e",
ConcurrencyStamp = "320f864ee06b472eb196e2ad3edc412f",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,

Loading…
Cancel
Save