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
continuous-integration/drone/push Build is running
Details
commit
7f9d6afc62
|
|
@ -208,6 +208,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
await _systemDocumentRepository.BatchUpdateNoTrackingAsync(x => inDto.Ids.Contains(x.Id), x => new SystemDocument()
|
await _systemDocumentRepository.BatchUpdateNoTrackingAsync(x => inDto.Ids.Contains(x.Id), x => new SystemDocument()
|
||||||
{
|
{
|
||||||
IsPublish = true,
|
IsPublish = true,
|
||||||
|
PublishDate= DateTime.Now,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
await _trialDocumentRepository.UpdatePartialFromQueryAsync(x => inDto.Ids.Contains(x.Id), x => new TrialDocument()
|
await _trialDocumentRepository.UpdatePartialFromQueryAsync(x => inDto.Ids.Contains(x.Id), x => new TrialDocument()
|
||||||
{
|
{
|
||||||
IsPublish = true,
|
IsPublish = true,
|
||||||
|
PublishDate = DateTime.Now,
|
||||||
IsDeleted = false,
|
IsDeleted = false,
|
||||||
}, false, true);
|
}, false, true);
|
||||||
await _trialDocumentRepository.SaveChangesAsync();
|
await _trialDocumentRepository.SaveChangesAsync();
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,11 @@ public class SystemDocument : BaseFullDeleteAuditEntity
|
||||||
|
|
||||||
public bool IsPublish { get; set; } = true;
|
public bool IsPublish { get; set; } = true;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 发布时间
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? PublishDate { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,11 @@ public class TrialDocument : BaseFullDeleteAuditEntity
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
||||||
public bool IsPublish { get; set; } = true;
|
public bool IsPublish { get; set; } = true;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 发布时间
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? PublishDate { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[Comment("项目签署文档附件")]
|
[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)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("PublishDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<int>("SignViewMinimumMinutes")
|
b.Property<int>("SignViewMinimumMinutes")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
|
@ -13046,6 +13049,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("PublishDate")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
b.Property<int>("SignViewMinimumMinutes")
|
b.Property<int>("SignViewMinimumMinutes")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue