添加文档发布时间
parent
6874459046
commit
74a8ac7575
|
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -46,6 +46,11 @@ public class SystemDocument : BaseFullDeleteAuditEntity
|
|||
|
||||
public bool IsPublish { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 发布时间
|
||||
/// </summary>
|
||||
public DateTime? PublishDate { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,11 @@ public class TrialDocument : BaseFullDeleteAuditEntity
|
|||
/// </summary>
|
||||
|
||||
public bool IsPublish { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 发布时间
|
||||
/// </summary>
|
||||
public DateTime? PublishDate { get; set; }
|
||||
}
|
||||
|
||||
[Comment("项目签署文档附件")]
|
||||
|
|
|
|||
21470
IRaCIS.Core.Infra.EFCore/Migrations/20260116084058_PublishDate.Designer.cs
generated
Normal file
21470
IRaCIS.Core.Infra.EFCore/Migrations/20260116084058_PublishDate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue