Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is running Details

Test_IRC_Net8
hang 2026-01-16 16:50:51 +08:00
commit 7f9d6afc62
7 changed files with 21527 additions and 0 deletions

View File

@ -208,6 +208,7 @@ namespace IRaCIS.Core.Application.Services
await _systemDocumentRepository.BatchUpdateNoTrackingAsync(x => inDto.Ids.Contains(x.Id), x => new SystemDocument()
{
IsPublish = true,
PublishDate= DateTime.Now,
IsDeleted = false,
});

View File

@ -101,6 +101,7 @@ namespace IRaCIS.Core.Application.Services
await _trialDocumentRepository.UpdatePartialFromQueryAsync(x => inDto.Ids.Contains(x.Id), x => new TrialDocument()
{
IsPublish = true,
PublishDate = DateTime.Now,
IsDeleted = false,
}, false, true);
await _trialDocumentRepository.SaveChangesAsync();

View File

@ -46,6 +46,11 @@ public class SystemDocument : BaseFullDeleteAuditEntity
public bool IsPublish { get; set; } = true;
/// <summary>
/// 发布时间
/// </summary>
public DateTime? PublishDate { get; set; }
}

View File

@ -50,6 +50,11 @@ public class TrialDocument : BaseFullDeleteAuditEntity
/// </summary>
public bool IsPublish { get; set; } = true;
/// <summary>
/// 发布时间
/// </summary>
public DateTime? PublishDate { get; set; }
}
[Comment("项目签署文档附件")]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,39 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class PublishDate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "PublishDate",
table: "TrialDocument",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "PublishDate",
table: "SystemDocument",
type: "datetime2",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PublishDate",
table: "TrialDocument");
migrationBuilder.DropColumn(
name: "PublishDate",
table: "SystemDocument");
}
}
}

View File

@ -10780,6 +10780,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<DateTime?>("PublishDate")
.HasColumnType("datetime2");
b.Property<int>("SignViewMinimumMinutes")
.HasColumnType("int");
@ -13046,6 +13049,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
b.Property<DateTime?>("PublishDate")
.HasColumnType("datetime2");
b.Property<int>("SignViewMinimumMinutes")
.HasColumnType("int");