Browse Source

修改 Qad发票同步状态查询 字段名称

master
mahao 1 year ago
parent
commit
b1afbf70a5
  1. 12
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/InvoiceSyncQadDto.cs
  2. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs
  3. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/InvoiceSyncQadInvocable.cs
  4. 8
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/InvoiceSyncQad.cs
  5. 6170
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.Designer.cs
  6. 188
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.cs
  7. 30
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

12
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/InvoiceSyncQadDto.cs

@ -19,17 +19,17 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// 任务ID /// 任务ID
/// </summary> /// </summary>
[Display(Name = "任务ID")] [Display(Name = "任务ID")]
public Guid TaskID { get; set; } public Guid TaskId { get; set; }
/// <summary> /// <summary>
/// 表名 /// 表名
/// </summary> /// </summary>
[Display(Name = "表名")] [Display(Name = "表名")]
public string TaskName { get; set; } public string TableName { get; set; }
/// <summary> /// <summary>
/// 信息 /// 信息
/// </summary> /// </summary>
[Display(Name = "信息")] [Display(Name = "信息")]
public string Failedinfo { get; set; } public string FailedInfo { get; set; }
/// <summary> /// <summary>
/// 域 /// 域
/// </summary> /// </summary>
@ -78,19 +78,19 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
/// </summary> /// </summary>
[Display(Name = "任务ID")] [Display(Name = "任务ID")]
[ExporterHeader(DisplayName = "任务ID")] [ExporterHeader(DisplayName = "任务ID")]
public Guid TaskID { get; set; } public Guid TaskId { get; set; }
/// <summary> /// <summary>
/// 表名 /// 表名
/// </summary> /// </summary>
[Display(Name = "表名")] [Display(Name = "表名")]
[ExporterHeader(DisplayName = "表名")] [ExporterHeader(DisplayName = "表名")]
public string TaskName { get; set; } public string TableName { get; set; }
/// <summary> /// <summary>
/// 信息 /// 信息
/// </summary> /// </summary>
[Display(Name = "信息")] [Display(Name = "信息")]
[ExporterHeader(DisplayName = "信息")] [ExporterHeader(DisplayName = "信息")]
public string Failedinfo { get; set; } public string FailedInfo { get; set; }
/// <summary> /// <summary>
/// 域 /// 域
/// </summary> /// </summary>

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

@ -291,7 +291,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
{ {
var invoiceSyncQad = new InvoiceSyncQad(teaTaskSub.TaskID, invoiceNumber, sasInvoiceNumber) var invoiceSyncQad = new InvoiceSyncQad(teaTaskSub.TaskID, invoiceNumber, sasInvoiceNumber)
{ {
TaskName = teaTaskSub.TableName, TableName = teaTaskSub.TableName,
Domain = teaTaskSub.Domain, Domain = teaTaskSub.Domain,
Site = teaTaskSub.Site, Site = teaTaskSub.Site,
Customer = customer, Customer = customer,

6
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/InvoiceSyncQadInvocable.cs

@ -51,12 +51,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
return; return;
} }
var taskIDs = invoiceSyncQads.Select(t => t.TaskID); var taskIds = invoiceSyncQads.Select(t => t.TaskId);
var teaTaskSubs = _exChangeCenterDbContext.TEA_TASK_SUB.AsNoTracking().Where(t => taskIDs.Contains(t.TaskID)).ToList(); var teaTaskSubs = _exChangeCenterDbContext.TEA_TASK_SUB.AsNoTracking().Where(t => taskIds.Contains(t.TaskID)).ToList();
invoiceSyncQads.ForEach(invoiceSyncQad => invoiceSyncQads.ForEach(invoiceSyncQad =>
{ {
var teaTaskSub = teaTaskSubs.FirstOrDefault(t => t.TaskID == invoiceSyncQad.TaskID); var teaTaskSub = teaTaskSubs.FirstOrDefault(t => t.TaskID == invoiceSyncQad.TaskId);
if (teaTaskSub != null) if (teaTaskSub != null)
{ {
invoiceSyncQad.UpdateTaskState(teaTaskSub.TaskState); invoiceSyncQad.UpdateTaskState(teaTaskSub.TaskState);

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

@ -18,13 +18,13 @@ namespace SettleAccount.Domain.BQ
/// 任务ID /// 任务ID
/// </summary> /// </summary>
[Display(Name = "任务ID")] [Display(Name = "任务ID")]
public Guid TaskID { get; set; } public Guid TaskId { get; set; }
/// <summary> /// <summary>
/// 表名 /// 表名
/// </summary> /// </summary>
[Display(Name = "表名")] [Display(Name = "表名")]
[MaxLength(64)] [MaxLength(64)]
public string TaskName { get; set; } public string TableName { get; set; }
/// <summary> /// <summary>
/// 信息 /// 信息
/// </summary> /// </summary>
@ -73,9 +73,9 @@ namespace SettleAccount.Domain.BQ
} }
public InvoiceSyncQad(Guid taskID, string invoiceNumber, string sasInvoiceNumber) public InvoiceSyncQad(Guid taskId, string invoiceNumber, string sasInvoiceNumber)
{ {
TaskID = taskID; TaskId = taskId;
InvoiceNumber = invoiceNumber; InvoiceNumber = invoiceNumber;
SasInvoiceNumber = sasInvoiceNumber; SasInvoiceNumber = sasInvoiceNumber;
} }

6170
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.Designer.cs

File diff suppressed because it is too large

188
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231016031124_20231016-1.cs

@ -0,0 +1,188 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202310161 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "TaskID",
table: "Set_InvoiceSyncQad",
newName: "TaskId");
migrationBuilder.RenameColumn(
name: "TaskName",
table: "Set_InvoiceSyncQad",
newName: "TableName");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"),
column: "ConcurrencyStamp",
value: "4ea75fc9726a401f9a0f56dbbb39e023");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"),
column: "ConcurrencyStamp",
value: "2d81af0f1dc147648bb26c425ad46fac");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"),
column: "ConcurrencyStamp",
value: "63eabf4b40c246088eafb9dace7ff8cd");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"),
column: "ConcurrencyStamp",
value: "e541a21d877746f39f33705b9b65c610");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"),
column: "ConcurrencyStamp",
value: "3bb7d703bfc5494a96a813f8d0cc4372");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"),
column: "ConcurrencyStamp",
value: "22525cd539bb4643b9fc29fdad20b553");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"),
column: "ConcurrencyStamp",
value: "a4f52d8fd24d4c278266799c591c9c01");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"),
column: "ConcurrencyStamp",
value: "6d2f6b84833f4056be750234138b128e");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"),
column: "ConcurrencyStamp",
value: "bbef0e9d31184d5d87943e69ed366118");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"),
column: "ConcurrencyStamp",
value: "a618b89180be498b83c0293e64ed74ac");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"),
column: "ConcurrencyStamp",
value: "d7c49aaf06804a0fb70f3e1ce4fb87fe");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "TaskId",
table: "Set_InvoiceSyncQad",
newName: "TaskID");
migrationBuilder.RenameColumn(
name: "TableName",
table: "Set_InvoiceSyncQad",
newName: "TaskName");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"),
column: "ConcurrencyStamp",
value: "a9b7c93f626040ad9263c02685f632fd");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"),
column: "ConcurrencyStamp",
value: "9b2db87bd049489ea604914c36d72f21");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"),
column: "ConcurrencyStamp",
value: "666f8653c5df429291d8f9bf340272ad");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"),
column: "ConcurrencyStamp",
value: "e80a3d92203642cca3d05f3c8b658d4d");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"),
column: "ConcurrencyStamp",
value: "047259cc9d7a4f01b43465207f937bbe");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"),
column: "ConcurrencyStamp",
value: "40a18956b53248bfa975b313aa03b571");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"),
column: "ConcurrencyStamp",
value: "0ca8403cc0674c56b2e136103af08ebd");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"),
column: "ConcurrencyStamp",
value: "682f0162c2c0488fa56edb41b89bc4ec");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"),
column: "ConcurrencyStamp",
value: "2f5fa52bb80b46b39eecb861a73c71f2");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"),
column: "ConcurrencyStamp",
value: "1199edad1ea74d6ea16ed79c4d695306");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"),
column: "ConcurrencyStamp",
value: "1573edbadee043c0a8f663bf5a8569b1");
}
}
}

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

@ -2954,13 +2954,13 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("nvarchar(64)");
b.Property<Guid>("TaskID") b.Property<string>("TableName")
.HasColumnType("uniqueidentifier");
b.Property<string>("TaskName")
.HasMaxLength(64) .HasMaxLength(64)
.HasColumnType("nvarchar(64)"); .HasColumnType("nvarchar(64)");
b.Property<Guid>("TaskId")
.HasColumnType("uniqueidentifier");
b.Property<int>("TaskState") b.Property<int>("TaskState")
.HasColumnType("int"); .HasColumnType("int");
@ -4709,7 +4709,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"),
ConcurrencyStamp = "1199edad1ea74d6ea16ed79c4d695306", ConcurrencyStamp = "a618b89180be498b83c0293e64ed74ac",
Cron = "0 0 8 26 *", Cron = "0 0 8 26 *",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4719,7 +4719,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"),
ConcurrencyStamp = "a9b7c93f626040ad9263c02685f632fd", ConcurrencyStamp = "4ea75fc9726a401f9a0f56dbbb39e023",
Cron = "0 0/1 * * * ?", Cron = "0 0/1 * * * ?",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4729,7 +4729,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"),
ConcurrencyStamp = "9b2db87bd049489ea604914c36d72f21", ConcurrencyStamp = "2d81af0f1dc147648bb26c425ad46fac",
Cron = "0 0/1 * * * ?", Cron = "0 0/1 * * * ?",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4739,7 +4739,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"),
ConcurrencyStamp = "0ca8403cc0674c56b2e136103af08ebd", ConcurrencyStamp = "a4f52d8fd24d4c278266799c591c9c01",
Cron = "0 0/30 * * * ? ", Cron = "0 0/30 * * * ? ",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4749,7 +4749,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"),
ConcurrencyStamp = "666f8653c5df429291d8f9bf340272ad", ConcurrencyStamp = "63eabf4b40c246088eafb9dace7ff8cd",
Cron = "0 0/30 * * * ? ", Cron = "0 0/30 * * * ? ",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4759,7 +4759,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"),
ConcurrencyStamp = "047259cc9d7a4f01b43465207f937bbe", ConcurrencyStamp = "3bb7d703bfc5494a96a813f8d0cc4372",
Cron = "0 0/30 * * * ? ", Cron = "0 0/30 * * * ? ",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4769,7 +4769,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"),
ConcurrencyStamp = "e80a3d92203642cca3d05f3c8b658d4d", ConcurrencyStamp = "e541a21d877746f39f33705b9b65c610",
Cron = "0 0/30 * * * ? ", Cron = "0 0/30 * * * ? ",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4779,7 +4779,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"),
ConcurrencyStamp = "1573edbadee043c0a8f663bf5a8569b1", ConcurrencyStamp = "d7c49aaf06804a0fb70f3e1ce4fb87fe",
Cron = "0 0/30 * * * ? ", Cron = "0 0/30 * * * ? ",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4789,7 +4789,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"),
ConcurrencyStamp = "40a18956b53248bfa975b313aa03b571", ConcurrencyStamp = "22525cd539bb4643b9fc29fdad20b553",
Cron = "0 0/30 * * * ? ", Cron = "0 0/30 * * * ? ",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4799,7 +4799,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"),
ConcurrencyStamp = "2f5fa52bb80b46b39eecb861a73c71f2", ConcurrencyStamp = "bbef0e9d31184d5d87943e69ed366118",
Cron = "0 0/30 * * * ? ", Cron = "0 0/30 * * * ? ",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,
@ -4809,7 +4809,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new new
{ {
Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"),
ConcurrencyStamp = "682f0162c2c0488fa56edb41b89bc4ec", ConcurrencyStamp = "6d2f6b84833f4056be750234138b128e",
Cron = "0 0/30 * * * ? ", Cron = "0 0/30 * * * ? ",
IsDisabled = false, IsDisabled = false,
IsRunning = false, IsRunning = false,

Loading…
Cancel
Save