Compare commits
2 Commits
50df3c6dad
...
6f503997d6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f503997d6 | ||
|
|
bf03034f4b |
102
APT.BaseData.Domain/Entities/PF/T_PF_ANNOURCEMENT.cs
Normal file
102
APT.BaseData.Domain/Entities/PF/T_PF_ANNOURCEMENT.cs
Normal file
@ -0,0 +1,102 @@
|
||||
using APT.BaseData.Domain.Entities.BD;
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
namespace APT.BaseData.Domain.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 公告
|
||||
/// </summary>
|
||||
[Description("公告")]
|
||||
public partial class T_PF_ANNOURCEMENT : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
[Description("标题")]
|
||||
[FormFieldEdit]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
[DataFieldLength(300)]
|
||||
public string TITLE { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 摘要
|
||||
/// </summary>
|
||||
[Description("摘要")]
|
||||
[FormFieldEdit]
|
||||
[DataFieldLength(1000)]
|
||||
public string ABSTRACT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
[Description("开始日期")]
|
||||
[FormFieldEdit]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public DateTime START { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束日期
|
||||
/// </summary>
|
||||
[Description("结束日期")]
|
||||
[FormFieldEdit]
|
||||
[FormFieldTable]
|
||||
public DateTime END { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 正文
|
||||
/// </summary>
|
||||
[Description("正文")]
|
||||
[FormFieldEdit]
|
||||
[FormFieldTable]
|
||||
[DataFieldLength(5000)]
|
||||
public string CONTENT { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号
|
||||
/// </summary>
|
||||
[Description("序号")]
|
||||
[FormFieldEdit]
|
||||
[FormFieldTable]
|
||||
public int NUM { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否发布
|
||||
/// </summary>
|
||||
[Description("是否发布")]
|
||||
[FormFieldEdit]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public bool ISPUBLISH { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 启用标志 0 启用 1禁用
|
||||
/// </summary>
|
||||
[Description("启用标志")]
|
||||
[FormFieldEdit]
|
||||
[FormFieldTable]
|
||||
[FormFieldQuery]
|
||||
public Enums.FMEnableStatusEnum ENABLE_STATUS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 附件
|
||||
/// </summary>
|
||||
[Description("附件")]
|
||||
public ICollection<T_PF_ANNOURCEMENT_FILE> Nav_Files { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否集团公告
|
||||
/// </summary>
|
||||
[Description("是否集团公告")]
|
||||
public bool ISHEAD { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下发哪些子公司
|
||||
/// </summary>
|
||||
[Description("下发哪些子公司")]
|
||||
public ICollection<T_PF_ANNOURCEMENT_ORG> Nav_Orgs { get; set; }
|
||||
}
|
||||
}
|
||||
25
APT.BaseData.Domain/Entities/PF/T_PF_ANNOURCEMENT_FILE.cs
Normal file
25
APT.BaseData.Domain/Entities/PF/T_PF_ANNOURCEMENT_FILE.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using APT.BaseData.Domain.Entities.BD;
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
namespace APT.BaseData.Domain.Entities
|
||||
{
|
||||
[Description("公告附件")]
|
||||
public partial class T_PF_ANNOURCEMENT_FILE : MesEntityBase
|
||||
{
|
||||
|
||||
[Description("App版本记录ID")]
|
||||
[DataFieldForeignKey("Nav_Annourcement", "Nav_Files")]
|
||||
public Guid ANNOURCEMENT_ID { get; set; }
|
||||
|
||||
[Description("导航属性:App版本记录")]
|
||||
public virtual T_PF_ANNOURCEMENT Nav_Annourcement { get; set; }
|
||||
|
||||
[Description("文件ID")]
|
||||
[DataFieldForeignKey("Nav_ImgFile")]
|
||||
public Guid? IMG_FILE_ID { get; set; }
|
||||
|
||||
[Description("导航属性:文件")]
|
||||
public virtual T_PF_IMG_FILE Nav_ImgFile { get; set; }
|
||||
}
|
||||
}
|
||||
31
APT.BaseData.Domain/Entities/PF/T_PF_ANNOURCEMENT_ORG.cs
Normal file
31
APT.BaseData.Domain/Entities/PF/T_PF_ANNOURCEMENT_ORG.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using APT.BaseData.Domain.Entities.BD;
|
||||
using APT.BaseData.Domain.Entities.FM;
|
||||
using APT.Infrastructure.Core;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
namespace APT.BaseData.Domain.Entities
|
||||
{
|
||||
[Description("公告下属公司")]
|
||||
public partial class T_PF_ANNOURCEMENT_ORG : MesEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 发送公告
|
||||
/// </summary>
|
||||
[Description("发送公告")]
|
||||
[DataFieldForeignKey("Nav_Annourcement", "Nav_Orgs")]
|
||||
public Guid ANNOURCEMENT_ID { get; set; }
|
||||
|
||||
[Description("公告")]
|
||||
public virtual T_PF_ANNOURCEMENT Nav_Annourcement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发送组织
|
||||
/// </summary>
|
||||
[Description("发送组织")]
|
||||
[DataFieldForeignKey("Nav_OrgSub")]
|
||||
public Guid ORG_ID_SUB { get; set; }
|
||||
|
||||
[Description("发送组织")]
|
||||
public virtual T_FM_ORGANIZATION Nav_OrgSub { get; set; }
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,108 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025121903 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "TEXT_ID",
|
||||
table: "T_SE_NEW_USER_DETAIL_PAPER",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_NEW_USER_DETAIL_TEXT",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
SCORE = table.Column<int>(type: "int", nullable: true),
|
||||
TEXT_TIMES = table.Column<int>(type: "int", nullable: false),
|
||||
ISPASS = table.Column<bool>(type: "bit", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SE_NEW_USER_DETAIL_TEXT", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_NEW_USER_DETAIL_TEXT_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_NEW_USER_DETAIL_TEXT_T_FM_USER_USER_ID",
|
||||
column: x => x.USER_ID,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_NEW_USER_DETAIL_TEXT_T_SE_NEW_USER_DETAIL_RECORD_ID",
|
||||
column: x => x.RECORD_ID,
|
||||
principalTable: "T_SE_NEW_USER_DETAIL",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_NEW_USER_DETAIL_PAPER_TEXT_ID",
|
||||
table: "T_SE_NEW_USER_DETAIL_PAPER",
|
||||
column: "TEXT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_NEW_USER_DETAIL_TEXT_ORG_ID",
|
||||
table: "T_SE_NEW_USER_DETAIL_TEXT",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_NEW_USER_DETAIL_TEXT_RECORD_ID",
|
||||
table: "T_SE_NEW_USER_DETAIL_TEXT",
|
||||
column: "RECORD_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_NEW_USER_DETAIL_TEXT_USER_ID",
|
||||
table: "T_SE_NEW_USER_DETAIL_TEXT",
|
||||
column: "USER_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SE_NEW_USER_DETAIL_PAPER_T_SE_NEW_USER_DETAIL_TEXT_TEXT_ID",
|
||||
table: "T_SE_NEW_USER_DETAIL_PAPER",
|
||||
column: "TEXT_ID",
|
||||
principalTable: "T_SE_NEW_USER_DETAIL_TEXT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SE_NEW_USER_DETAIL_PAPER_T_SE_NEW_USER_DETAIL_TEXT_TEXT_ID",
|
||||
table: "T_SE_NEW_USER_DETAIL_PAPER");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_NEW_USER_DETAIL_TEXT");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_SE_NEW_USER_DETAIL_PAPER_TEXT_ID",
|
||||
table: "T_SE_NEW_USER_DETAIL_PAPER");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TEXT_ID",
|
||||
table: "T_SE_NEW_USER_DETAIL_PAPER");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,232 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2025122601 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "CODE",
|
||||
table: "T_SE_NEW_USER_DETAIL",
|
||||
type: "nvarchar(30)",
|
||||
maxLength: 30,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(10)",
|
||||
oldMaxLength: 10,
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_COURSEWEARLIBRARY",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
CODE = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
||||
DEPARTMENTID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
FILE_DB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FILE_PATH = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SE_COURSEWEARLIBRARY", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_T_FM_DEPARTMENT_DEPARTMENTID",
|
||||
column: x => x.DEPARTMENTID,
|
||||
principalTable: "T_FM_DEPARTMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_T_FM_USER_USER_ID",
|
||||
column: x => x.USER_ID,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_T_PF_FILE_DB_FILE_DB_ID",
|
||||
column: x => x.FILE_DB_ID,
|
||||
principalTable: "T_PF_FILE_DB",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_COURSEWEARLIBRARY_DETAIL",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
EDU_CARD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
NUM = table.Column<int>(type: "int", nullable: false),
|
||||
TEST_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SE_COURSEWEARLIBRARY_DETAIL", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_DETAIL_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_DETAIL_T_SE_COURSEWEARLIBRARY_EDU_CARD_ID",
|
||||
column: x => x.EDU_CARD_ID,
|
||||
principalTable: "T_SE_COURSEWEARLIBRARY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_DETAIL_T_SE_TEST_TEST_ID",
|
||||
column: x => x.TEST_ID,
|
||||
principalTable: "T_SE_TEST",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_COURSEWEARLIBRARY_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
COURSEWEARLIBRARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SE_COURSEWEARLIBRARY_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_FILE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||
column: x => x.IMG_FILE_ID,
|
||||
principalTable: "T_PF_IMG_FILE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_COURSEWEARLIBRARY_FILE_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
column: x => x.COURSEWEARLIBRARY_ID,
|
||||
principalTable: "T_SE_COURSEWEARLIBRARY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_DEPARTMENTID",
|
||||
table: "T_SE_COURSEWEARLIBRARY",
|
||||
column: "DEPARTMENTID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_FILE_DB_ID",
|
||||
table: "T_SE_COURSEWEARLIBRARY",
|
||||
column: "FILE_DB_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_ORG_ID",
|
||||
table: "T_SE_COURSEWEARLIBRARY",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_USER_ID",
|
||||
table: "T_SE_COURSEWEARLIBRARY",
|
||||
column: "USER_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_DETAIL_EDU_CARD_ID",
|
||||
table: "T_SE_COURSEWEARLIBRARY_DETAIL",
|
||||
column: "EDU_CARD_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_DETAIL_ORG_ID",
|
||||
table: "T_SE_COURSEWEARLIBRARY_DETAIL",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_DETAIL_TEST_ID",
|
||||
table: "T_SE_COURSEWEARLIBRARY_DETAIL",
|
||||
column: "TEST_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_FILE_COURSEWEARLIBRARY_ID",
|
||||
table: "T_SE_COURSEWEARLIBRARY_FILE",
|
||||
column: "COURSEWEARLIBRARY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_FILE_IMG_FILE_ID",
|
||||
table: "T_SE_COURSEWEARLIBRARY_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_COURSEWEARLIBRARY_FILE_ORG_ID",
|
||||
table: "T_SE_COURSEWEARLIBRARY_FILE",
|
||||
column: "ORG_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_COURSEWEARLIBRARY_DETAIL");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_COURSEWEARLIBRARY_FILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "CODE",
|
||||
table: "T_SE_NEW_USER_DETAIL",
|
||||
type: "nvarchar(10)",
|
||||
maxLength: 10,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(30)",
|
||||
oldMaxLength: 30,
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,23 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026011301 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EXAMINATION_RESULTS",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EXAMINATION_RESULTS",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,33 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026011302 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EXAMINATION_RESULTS",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EXAMINATION_RESULTS",
|
||||
table: "T_SE_TRAIN_RECORD_REPORT",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EXAMINATION_RESULTS",
|
||||
table: "T_SE_TRAIN_RECORD_REPORT");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EXAMINATION_RESULTS",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,35 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw20260114 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "SCOREPER",
|
||||
table: "T_SE_COURSEWEARLIBRARY_DETAIL",
|
||||
type: "decimal(18,2)",
|
||||
nullable: false,
|
||||
defaultValue: 0m);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "SCOREPASS",
|
||||
table: "T_SE_COURSEWEARLIBRARY",
|
||||
type: "decimal(18,2)",
|
||||
nullable: false,
|
||||
defaultValue: 0m);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SCOREPER",
|
||||
table: "T_SE_COURSEWEARLIBRARY_DETAIL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SCOREPASS",
|
||||
table: "T_SE_COURSEWEARLIBRARY");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026011501 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "FILENAME",
|
||||
table: "T_SE_COURSEWEARLIBRARY",
|
||||
type: "nvarchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "FILENAME",
|
||||
table: "T_SE_COURSEWEARLIBRARY");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,122 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026012101 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "EXAMETYPE",
|
||||
table: "T_SE_TRAIN_NOTIFY",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
table: "T_PF_PARAM",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
//migrationBuilder.CreateTable(
|
||||
// name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// columns: table => new
|
||||
// {
|
||||
// ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
// NOTIFY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
// //Nav_NotifyID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
// COURSEWEARLIBRARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
// //Nav_CourID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
// NUM = table.Column<int>(type: "int", nullable: false),
|
||||
// IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
// ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
// ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
// FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
// FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
// FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
// FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
// CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
// MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
// CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
// MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
// DbConn = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
// //Nav_OrgID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
// TaskID = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
|
||||
// },
|
||||
// constraints: table =>
|
||||
// {
|
||||
// table.PrimaryKey("PK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY", x => x.ID);
|
||||
// //table.ForeignKey(
|
||||
// // name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
|
||||
// // column: x => x.Nav_OrgID,
|
||||
// // principalTable: "T_FM_ORGANIZATION",
|
||||
// // principalColumn: "ID",
|
||||
// // onDelete: ReferentialAction.Restrict);
|
||||
// table.ForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// column: x => x.COURSEWEARLIBRARY_ID,
|
||||
// principalTable: "T_SE_COURSEWEARLIBRARY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
// table.ForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
||||
// column: x => x.NOTIFY_ID,
|
||||
// principalTable: "T_SE_TRAIN_NOTIFY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
// });
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM",
|
||||
// column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID");
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "COURSEWEARLIBRARY_ID");
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "NOTIFY_ID");
|
||||
|
||||
////migrationBuilder.CreateIndex(
|
||||
//// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
|
||||
//// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
//// column: "Nav_OrgID");
|
||||
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM",
|
||||
// column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// principalTable: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM");
|
||||
|
||||
//migrationBuilder.DropTable(
|
||||
// name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EXAMETYPE",
|
||||
table: "T_SE_TRAIN_NOTIFY");
|
||||
|
||||
//migrationBuilder.DropColumn(
|
||||
// name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,355 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026020201 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM");
|
||||
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_Nav_CourID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_Nav_NotifyID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_NotifyID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM");
|
||||
|
||||
//migrationBuilder.DropColumn(
|
||||
// name: "DbConn",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropColumn(
|
||||
// name: "Nav_CourID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropColumn(
|
||||
// name: "Nav_NotifyID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropColumn(
|
||||
// name: "Nav_OrgID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropColumn(
|
||||
// name: "TaskID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
table: "T_PF_PARAM");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "EDU_CARD_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "FILE_PATH",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||
type: "nvarchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "TEXT_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<Guid>(
|
||||
name: "ORG_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||
oldClrType: typeof(Guid),
|
||||
oldType: "uniqueidentifier",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_TRAIN_RECORD_TEXT",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
SCORE = table.Column<int>(type: "int", nullable: true),
|
||||
TEXT_TIMES = table.Column<int>(type: "int", nullable: false),
|
||||
ISPASS = table.Column<bool>(type: "bit", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SE_TRAIN_RECORD_TEXT", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_TEXT_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_TEXT_T_FM_USER_USER_ID",
|
||||
column: x => x.USER_ID,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_TEXT_T_SE_TRAIN_RECORD_RECORD_ID",
|
||||
column: x => x.RECORD_ID,
|
||||
principalTable: "T_SE_TRAIN_RECORD",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_RECORD_PAPER_TEXT_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||
column: "TEXT_ID");
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "COURSEWEARLIBRARY_ID");
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "NOTIFY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID",
|
||||
table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_RECORD_TEXT_ORG_ID",
|
||||
table: "T_SE_TRAIN_RECORD_TEXT",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_RECORD_TEXT_RECORD_ID",
|
||||
table: "T_SE_TRAIN_RECORD_TEXT",
|
||||
column: "RECORD_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_RECORD_TEXT_USER_ID",
|
||||
table: "T_SE_TRAIN_RECORD_TEXT",
|
||||
column: "USER_ID");
|
||||
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "ORG_ID",
|
||||
// principalTable: "T_FM_ORGANIZATION",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "COURSEWEARLIBRARY_ID",
|
||||
// principalTable: "T_SE_COURSEWEARLIBRARY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "NOTIFY_ID",
|
||||
// principalTable: "T_SE_TRAIN_NOTIFY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_TEXT_TEXT_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER",
|
||||
column: "TEXT_ID",
|
||||
principalTable: "T_SE_TRAIN_RECORD_TEXT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_ORG_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_NOTIFY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_PAPER_T_SE_TRAIN_RECORD_TEXT_TEXT_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_TRAIN_RECORD_TEXT");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_SE_TRAIN_RECORD_PAPER_TEXT_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_COURSEWEARLIBRARY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_NOTIFY_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
//migrationBuilder.DropIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_ORG_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EDU_CARD_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "FILE_PATH",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TEXT_ID",
|
||||
table: "T_SE_TRAIN_RECORD_PAPER");
|
||||
|
||||
//migrationBuilder.AlterColumn<Guid>(
|
||||
// name: "ORG_ID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true,
|
||||
// oldClrType: typeof(Guid),
|
||||
// oldType: "uniqueidentifier");
|
||||
|
||||
//migrationBuilder.AddColumn<string>(
|
||||
// name: "DbConn",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "nvarchar(max)",
|
||||
// nullable: true);
|
||||
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "Nav_CourID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true);
|
||||
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "Nav_NotifyID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true);
|
||||
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "Nav_OrgID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true);
|
||||
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "TaskID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: false,
|
||||
// defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
|
||||
//migrationBuilder.AddColumn<Guid>(
|
||||
// name: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM",
|
||||
// type: "uniqueidentifier",
|
||||
// nullable: true);
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_CourID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "Nav_CourID");
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_NotifyID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "Nav_NotifyID");
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_Nav_OrgID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "Nav_OrgID");
|
||||
|
||||
//migrationBuilder.CreateIndex(
|
||||
// name: "IX_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM",
|
||||
// column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID");
|
||||
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_PF_PARAM_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// table: "T_PF_PARAM",
|
||||
// column: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARYID",
|
||||
// principalTable: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_FM_ORGANIZATION_Nav_OrgID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "Nav_OrgID",
|
||||
// principalTable: "T_FM_ORGANIZATION",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_COURSEWEARLIBRARY_Nav_CourID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "Nav_CourID",
|
||||
// principalTable: "T_SE_COURSEWEARLIBRARY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
|
||||
//migrationBuilder.AddForeignKey(
|
||||
// name: "FK_T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY_T_SE_TRAIN_NOTIFY_Nav_NotifyID",
|
||||
// table: "T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY",
|
||||
// column: "Nav_NotifyID",
|
||||
// principalTable: "T_SE_TRAIN_NOTIFY",
|
||||
// principalColumn: "ID",
|
||||
// onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026020401 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "COUNT_RETRY",
|
||||
table: "T_SE_SECONFIG",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 1);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "COUNT_RETRY",
|
||||
table: "T_SE_SECONFIG");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,74 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026020501 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_TRAIN_RECORD_USER_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RECORD_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SE_TRAIN_RECORD_USER_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_USER_FILE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_USER_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||
column: x => x.IMG_FILE_ID,
|
||||
principalTable: "T_PF_IMG_FILE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_USER_FILE_T_SE_TRAIN_RECORD_USER_RECORD_USER_ID",
|
||||
column: x => x.RECORD_USER_ID,
|
||||
principalTable: "T_SE_TRAIN_RECORD_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_RECORD_USER_FILE_IMG_FILE_ID",
|
||||
table: "T_SE_TRAIN_RECORD_USER_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_RECORD_USER_FILE_ORG_ID",
|
||||
table: "T_SE_TRAIN_RECORD_USER_FILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_RECORD_USER_FILE_RECORD_USER_ID",
|
||||
table: "T_SE_TRAIN_RECORD_USER_FILE",
|
||||
column: "RECORD_USER_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_TRAIN_RECORD_USER_FILE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,117 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026020901 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "T_SE_SAFE_SURVEY_USERID",
|
||||
table: "T_PF_PARAM",
|
||||
type: "uniqueidentifier",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_SAFE_SURVEY_USER",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
SURVEY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SE_SAFE_SURVEY_USER", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_SAFE_SURVEY_USER_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
||||
column: x => x.DEPARTMENT_ID,
|
||||
principalTable: "T_FM_DEPARTMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_SAFE_SURVEY_USER_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_SAFE_SURVEY_USER_T_FM_USER_USER_ID",
|
||||
column: x => x.USER_ID,
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_SAFE_SURVEY_USER_T_SE_SAFE_SURVEY_SURVEY_ID",
|
||||
column: x => x.SURVEY_ID,
|
||||
principalTable: "T_SE_SAFE_SURVEY",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_PARAM_T_SE_SAFE_SURVEY_USERID",
|
||||
table: "T_PF_PARAM",
|
||||
column: "T_SE_SAFE_SURVEY_USERID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_SAFE_SURVEY_USER_DEPARTMENT_ID",
|
||||
table: "T_SE_SAFE_SURVEY_USER",
|
||||
column: "DEPARTMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_SAFE_SURVEY_USER_ORG_ID",
|
||||
table: "T_SE_SAFE_SURVEY_USER",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_SAFE_SURVEY_USER_SURVEY_ID",
|
||||
table: "T_SE_SAFE_SURVEY_USER",
|
||||
column: "SURVEY_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_SAFE_SURVEY_USER_USER_ID",
|
||||
table: "T_SE_SAFE_SURVEY_USER",
|
||||
column: "USER_ID");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_PF_PARAM_T_SE_SAFE_SURVEY_USER_T_SE_SAFE_SURVEY_USERID",
|
||||
table: "T_PF_PARAM",
|
||||
column: "T_SE_SAFE_SURVEY_USERID",
|
||||
principalTable: "T_SE_SAFE_SURVEY_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_PF_PARAM_T_SE_SAFE_SURVEY_USER_T_SE_SAFE_SURVEY_USERID",
|
||||
table: "T_PF_PARAM");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_SAFE_SURVEY_USER");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_T_PF_PARAM_T_SE_SAFE_SURVEY_USERID",
|
||||
table: "T_PF_PARAM");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "T_SE_SAFE_SURVEY_USERID",
|
||||
table: "T_PF_PARAM");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,25 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026022601 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISSIGN",
|
||||
table: "T_SE_NEW_USER_DETAIL",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISSIGN",
|
||||
table: "T_SE_NEW_USER_DETAIL");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026031002 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "CODE",
|
||||
table: "T_LR_LAW_TYPE",
|
||||
type: "nvarchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CODE",
|
||||
table: "T_LR_LAW_TYPE");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,123 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2026031301 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_SCOREL",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_SCOREE",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_SCOREC",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_RISK_TYPE",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_CHECK_QUESTION",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_CHECK_CONTENTS_BASIC",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_CHECK_CONTENTS",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_LR_LAW_TYPE",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_LR_LAW",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "JT_SYNC",
|
||||
table: "T_FM_USER_PRODUCTION_UNIT_SET",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_SCOREL");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_SCOREE");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_SCOREC");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_RISK_TYPE");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_CHECK_QUESTION");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_CHECK_CONTENTS_BASIC");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_SK_CHECK_CONTENTS");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_LR_LAW_TYPE");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_LR_LAW");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "JT_SYNC",
|
||||
table: "T_FM_USER_PRODUCTION_UNIT_SET");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,35 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026031901 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "NAME",
|
||||
table: "T_SE_THREE_LEVEL_SAFE_CONTENT",
|
||||
type: "nvarchar(500)",
|
||||
maxLength: 500,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(300)",
|
||||
oldMaxLength: 300,
|
||||
oldNullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "NAME",
|
||||
table: "T_SE_THREE_LEVEL_SAFE_CONTENT",
|
||||
type: "nvarchar(300)",
|
||||
maxLength: 300,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(500)",
|
||||
oldMaxLength: 500,
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -3,21 +3,23 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026033101 : Migration
|
||||
public partial class wyw2026041702 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_SE_TRAIN_RECORD_VIEW",
|
||||
name: "T_PF_ANNOURCEMENT",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TEXT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
EDU_CARD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ISEND = table.Column<bool>(type: "bit", nullable: false),
|
||||
VIEWSEC = table.Column<int>(type: "int", nullable: true),
|
||||
TITLE = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: true),
|
||||
ABSTRACT = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||
START = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
END = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CONTENT = table.Column<string>(type: "nvarchar(max)", maxLength: 5000, nullable: true),
|
||||
NUM = table.Column<int>(type: "int", nullable: false),
|
||||
ISPUBLISH = table.Column<bool>(type: "bit", nullable: false),
|
||||
ENABLE_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
@ -32,9 +34,9 @@ namespace APT.Data.Migrations.Migrations
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_SE_TRAIN_RECORD_VIEW", x => x.ID);
|
||||
table.PrimaryKey("PK_T_PF_ANNOURCEMENT", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_SE_TRAIN_RECORD_VIEW_T_FM_ORGANIZATION_ORG_ID",
|
||||
name: "FK_T_PF_ANNOURCEMENT_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
@ -42,15 +44,15 @@ namespace APT.Data.Migrations.Migrations
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_SE_TRAIN_RECORD_VIEW_ORG_ID",
|
||||
table: "T_SE_TRAIN_RECORD_VIEW",
|
||||
name: "IX_T_PF_ANNOURCEMENT_ORG_ID",
|
||||
table: "T_PF_ANNOURCEMENT",
|
||||
column: "ORG_ID");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_SE_TRAIN_RECORD_VIEW");
|
||||
name: "T_PF_ANNOURCEMENT");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
145
APT.Data.Migrations/Migrations/20260420011007_wyw2026042001.cs
Normal file
145
APT.Data.Migrations/Migrations/20260420011007_wyw2026042001.cs
Normal file
@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class wyw2026042001 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_ANNOURCEMENT",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_ANNOURCEMENT_FILE",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ANNOURCEMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_PF_ANNOURCEMENT_FILE", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_FILE_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_FILE_T_PF_ANNOURCEMENT_ANNOURCEMENT_ID",
|
||||
column: x => x.ANNOURCEMENT_ID,
|
||||
principalTable: "T_PF_ANNOURCEMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
||||
column: x => x.IMG_FILE_ID,
|
||||
principalTable: "T_PF_IMG_FILE",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "T_PF_ANNOURCEMENT_ORG",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ANNOURCEMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ORG_ID_SUB = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
||||
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
||||
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
||||
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_T_PF_ANNOURCEMENT_ORG", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_ORG_T_FM_ORGANIZATION_ORG_ID",
|
||||
column: x => x.ORG_ID,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_ORG_T_FM_ORGANIZATION_ORG_ID_SUB",
|
||||
column: x => x.ORG_ID_SUB,
|
||||
principalTable: "T_FM_ORGANIZATION",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_T_PF_ANNOURCEMENT_ORG_T_PF_ANNOURCEMENT_ANNOURCEMENT_ID",
|
||||
column: x => x.ANNOURCEMENT_ID,
|
||||
principalTable: "T_PF_ANNOURCEMENT",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_FILE_ANNOURCEMENT_ID",
|
||||
table: "T_PF_ANNOURCEMENT_FILE",
|
||||
column: "ANNOURCEMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_FILE_IMG_FILE_ID",
|
||||
table: "T_PF_ANNOURCEMENT_FILE",
|
||||
column: "IMG_FILE_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_FILE_ORG_ID",
|
||||
table: "T_PF_ANNOURCEMENT_FILE",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_ORG_ANNOURCEMENT_ID",
|
||||
table: "T_PF_ANNOURCEMENT_ORG",
|
||||
column: "ANNOURCEMENT_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_ORG_ORG_ID",
|
||||
table: "T_PF_ANNOURCEMENT_ORG",
|
||||
column: "ORG_ID");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_T_PF_ANNOURCEMENT_ORG_ORG_ID_SUB",
|
||||
table: "T_PF_ANNOURCEMENT_ORG",
|
||||
column: "ORG_ID_SUB");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_ANNOURCEMENT_FILE");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "T_PF_ANNOURCEMENT_ORG");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ISHEAD",
|
||||
table: "T_PF_ANNOURCEMENT");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -11498,6 +11498,197 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.ToTable("T_FM_NOTIFICATION_TASK_TIME_SET");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_ANNOURCEMENT", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("ABSTRACT")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)");
|
||||
|
||||
b.Property<string>("CONTENT")
|
||||
.HasMaxLength(5000)
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENABLE_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("END")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("ISHEAD")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("ISPUBLISH")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("NUM")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime>("START")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("TITLE")
|
||||
.HasMaxLength(300)
|
||||
.HasColumnType("nvarchar(300)");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.ToTable("T_PF_ANNOURCEMENT");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_ANNOURCEMENT_FILE", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("ANNOURCEMENT_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("IMG_FILE_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ANNOURCEMENT_ID");
|
||||
|
||||
b.HasIndex("IMG_FILE_ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.ToTable("T_PF_ANNOURCEMENT_FILE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_ANNOURCEMENT_ORG", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("ANNOURCEMENT_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("CREATER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("CREATE_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<int>("ENTITY_ORG_TPYE")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FLOW_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("FLOW_SEND_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("FLOW_STATUS")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("FORM_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("IS_DELETED")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<Guid?>("MODIFIER_ID")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime?>("MODIFY_TIME")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<Guid?>("ORG_ID")
|
||||
.IsRequired()
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("ORG_ID_SUB")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ANNOURCEMENT_ID");
|
||||
|
||||
b.HasIndex("ORG_ID");
|
||||
|
||||
b.HasIndex("ORG_ID_SUB");
|
||||
|
||||
b.ToTable("T_PF_ANNOURCEMENT_ORG");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPMENU", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
@ -102871,6 +103062,70 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_ANNOURCEMENT", b =>
|
||||
{
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_ANNOURCEMENT_FILE", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_ANNOURCEMENT", "Nav_Annourcement")
|
||||
.WithMany("Nav_Files")
|
||||
.HasForeignKey("ANNOURCEMENT_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_IMG_FILE", "Nav_ImgFile")
|
||||
.WithMany()
|
||||
.HasForeignKey("IMG_FILE_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_Annourcement");
|
||||
|
||||
b.Navigation("Nav_ImgFile");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_ANNOURCEMENT_ORG", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_ANNOURCEMENT", "Nav_Annourcement")
|
||||
.WithMany("Nav_Orgs")
|
||||
.HasForeignKey("ANNOURCEMENT_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_Org")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.Infrastructure.Core.T_FM_ORGANIZATION", "Nav_OrgSub")
|
||||
.WithMany()
|
||||
.HasForeignKey("ORG_ID_SUB")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Nav_Annourcement");
|
||||
|
||||
b.Navigation("Nav_Org");
|
||||
|
||||
b.Navigation("Nav_OrgSub");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPMENU", b =>
|
||||
{
|
||||
b.HasOne("APT.BaseData.Domain.Entities.T_PF_FORM", "Nav_MenuForm")
|
||||
@ -136192,6 +136447,13 @@ namespace APT.Data.Migrations.Migrations
|
||||
b.Navigation("Nav_Files");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_ANNOURCEMENT", b =>
|
||||
{
|
||||
b.Navigation("Nav_Files");
|
||||
|
||||
b.Navigation("Nav_Orgs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("APT.BaseData.Domain.Entities.T_PF_APPMENU", b =>
|
||||
{
|
||||
b.Navigation("Nav_Children");
|
||||
|
||||
@ -16682,6 +16682,40 @@ builder.HasOne(t => t.Nav_Tenant).WithMany().HasForeignKey(t => t.TEMPLATE_ID).O
|
||||
{
|
||||
base.Configure(builder);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Annourcement
|
||||
public partial class PFAnnourcementMap :APTEntityBaseMap<T_PF_ANNOURCEMENT>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_ANNOURCEMENT> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.Property(t => t.TITLE).HasMaxLength(300);
|
||||
builder.Property(t => t.ABSTRACT).HasMaxLength(1000);
|
||||
builder.Property(t => t.CONTENT).HasMaxLength(5000);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region AnnourcementFile
|
||||
public partial class PFAnnourcementFileMap :APTEntityBaseMap<T_PF_ANNOURCEMENT_FILE>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_ANNOURCEMENT_FILE> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Annourcement).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.ANNOURCEMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region AnnourcementOrg
|
||||
public partial class PFAnnourcementOrgMap :APTEntityBaseMap<T_PF_ANNOURCEMENT_ORG>
|
||||
{
|
||||
public override void Configure(EntityTypeBuilder<T_PF_ANNOURCEMENT_ORG> builder)
|
||||
{
|
||||
base.Configure(builder);
|
||||
builder.HasOne(t => t.Nav_Annourcement).WithMany(t=>t.Nav_Orgs).HasForeignKey(t => t.ANNOURCEMENT_ID).OnDelete(DeleteBehavior.Restrict);
|
||||
builder.HasOne(t => t.Nav_OrgSub).WithMany().HasForeignKey(t => t.ORG_ID_SUB).OnDelete(DeleteBehavior.Restrict);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ApprovalRole
|
||||
|
||||
@ -0,0 +1,340 @@
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.IServices;
|
||||
using APT.Infrastructure.Core;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using APT.Utility;
|
||||
using APT.Infrastructure.Api;
|
||||
using APT.Migrations;
|
||||
using APT.BaseData.Domain.Entities.OP;
|
||||
using APT.BaseData.Domain.Enums.OP;
|
||||
using APT.BaseData.Domain.Enums.PF;
|
||||
using APT.BaseData.Domain.IServices.OP;
|
||||
using Microsoft.Data.SqlClient;
|
||||
|
||||
namespace APT.PF.WebApiControllers.Api.PF
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Route("api/PF/PFAnnourcement")]
|
||||
public class PFAnnourcementController : AuthorizeApiController<T_PF_ANNOURCEMENT>
|
||||
{
|
||||
IOPTenantDBConnService OPTenantDBConnService { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="opTenantDBConnService"></param>
|
||||
public PFAnnourcementController(IOPTenantDBConnService opTenantDBConnService)
|
||||
{
|
||||
OPTenantDBConnService = opTenantDBConnService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("FullUpdate")]
|
||||
public JsonActionResult<bool> FullUpdate([FromBody] T_PF_ANNOURCEMENT entity)
|
||||
{
|
||||
return SafeExecute(() =>
|
||||
{
|
||||
if (!entity.ORG_ID.HasValue)
|
||||
{
|
||||
throw new Exception("获取信息有误!");
|
||||
}
|
||||
|
||||
if (entity.ORG_ID.Value.ToString() == FilePathHead.JY.GetDescription())
|
||||
{
|
||||
entity.ISHEAD = true;
|
||||
}
|
||||
var Nav_Files = entity.Nav_Files;
|
||||
entity.Nav_Files = null;
|
||||
var Nav_Orgs = entity.Nav_Orgs;
|
||||
entity.Nav_Orgs = null;
|
||||
if (entity.END < entity.START)
|
||||
{
|
||||
throw new Exception("结束日期不能小于开始日期!");
|
||||
}
|
||||
entity.START = entity.START.Date;
|
||||
entity.END = entity.END.Date.AddDays(1).AddSeconds(-1);
|
||||
foreach (var item in Nav_Orgs)
|
||||
{
|
||||
item.Nav_OrgSub = null;
|
||||
}
|
||||
this.UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
if (Nav_Files != null && Nav_Files.Any())
|
||||
BantchSaveEntityNoCommit(Nav_Files);
|
||||
if (Nav_Orgs != null && Nav_Orgs.Any())
|
||||
BantchSaveEntityNoCommit(Nav_Orgs);
|
||||
});
|
||||
IEnumerable<T_PF_IMG_FILE> listFileImgs = null;
|
||||
IEnumerable<T_PF_FILE> listFile = null;
|
||||
if (Nav_Files != null && Nav_Files.Count() > 0)
|
||||
{
|
||||
var listFileID = Nav_Files.Where(e => e.IMG_FILE_ID.HasValue).Select(e => e.IMG_FILE_ID.Value);
|
||||
listFileImgs = GetEntities<T_PF_IMG_FILE>(e => listFileID.Contains(e.ID), null, null);
|
||||
var listFileIDs = listFileImgs.Where(e => e.FILE_ID.HasValue).Select(e => e.FILE_ID.Value);
|
||||
listFile = GetEntities<T_PF_FILE>(e => listFileIDs.Contains(e.ID), null, null);
|
||||
}
|
||||
|
||||
if (entity.ISHEAD && entity.ISPUBLISH && Nav_Orgs != null && Nav_Orgs.Count() > 0)
|
||||
{
|
||||
//集团 发布了 同步到子公司
|
||||
entity.Nav_Orgs = null;
|
||||
entity.Nav_Files = null;
|
||||
T_PF_ANNOURCEMENT modelCheck = null;
|
||||
|
||||
List<T_PF_ANNOURCEMENT_FILE> listSubFilesAdd = null;
|
||||
List<T_PF_IMG_FILE> listSubImgAdd = null;
|
||||
List<T_PF_FILE> listSubFileAdd = null;
|
||||
List<T_PF_ANNOURCEMENT_FILE> listSubFilesUp = null;
|
||||
List<T_PF_IMG_FILE> listSubImgUp = null;
|
||||
List<T_PF_FILE> listSubFileUp = null;
|
||||
List<T_PF_ANNOURCEMENT_FILE> listSubFilesDB = null;
|
||||
List<T_PF_IMG_FILE> listSubImgDB = null;
|
||||
List<T_PF_FILE> listSubFileDB = null;
|
||||
|
||||
foreach (var item in Nav_Orgs)
|
||||
{
|
||||
if (item.IS_DELETED)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (Nav_Files != null && Nav_Files.Count() > 0)
|
||||
{
|
||||
foreach (var itemf in Nav_Files)
|
||||
{
|
||||
itemf.ORG_ID = item.ORG_ID_SUB;
|
||||
}
|
||||
foreach (var itemfm in listFileImgs)
|
||||
{
|
||||
itemfm.ORG_ID = item.ORG_ID_SUB;
|
||||
itemfm.Nav_File = null;
|
||||
}
|
||||
if (listFile != null && listFile.Count() > 0)
|
||||
{
|
||||
foreach (var itemf in listFile)
|
||||
{
|
||||
itemf.ORG_ID = item.ORG_ID_SUB;
|
||||
}
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
string strConn = OPTenantDBConnService.GetConnByORGID(item.ORG_ID_SUB);
|
||||
if (string.IsNullOrEmpty(strConn))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
using (var context = new MigrationContext(strConn))
|
||||
{
|
||||
entity.ISHEAD = true;
|
||||
entity.ORG_ID = item.ORG_ID_SUB;
|
||||
modelCheck = context.GetEntity<T_PF_ANNOURCEMENT>(e => e.ID == entity.ID, null, "Nav_Files.Nav_ImgFile.Nav_File");
|
||||
try
|
||||
{
|
||||
if (modelCheck == null)
|
||||
{
|
||||
//添加信息
|
||||
if (entity.Nav_Files != null && entity.Nav_Files.Count() > 0)
|
||||
{
|
||||
entity.Nav_Files = null;
|
||||
}
|
||||
context.Add(entity);
|
||||
if (Nav_Files != null && Nav_Files.Count() > 0)
|
||||
{
|
||||
foreach (var itemf in Nav_Files)
|
||||
{
|
||||
itemf.Nav_ImgFile = null;
|
||||
itemf.Nav_Annourcement = null;
|
||||
}
|
||||
foreach (var itemf in listFile)
|
||||
{
|
||||
itemf.Nav_ImgFiles = null;
|
||||
}
|
||||
context.AddRange(Nav_Files);
|
||||
context.AddRange(listFileImgs);
|
||||
context.AddRange(listFile);
|
||||
}
|
||||
context.SaveChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
//修改 判断附件哪些有哪些没有
|
||||
if (modelCheck.Nav_Files != null && modelCheck.Nav_Files.Count() > 0)
|
||||
{
|
||||
listSubFilesDB = modelCheck.Nav_Files.ToList();
|
||||
listSubImgDB = new List<T_PF_IMG_FILE>();
|
||||
listSubFileDB = new List<T_PF_FILE>();
|
||||
foreach (var itemDb in listSubFilesDB)
|
||||
{
|
||||
listSubImgDB.Add(itemDb.Nav_ImgFile);
|
||||
}
|
||||
foreach (var itemDB in listSubImgDB)
|
||||
{
|
||||
listSubFileDB.Add(itemDB.Nav_File);
|
||||
}
|
||||
|
||||
foreach (var itemd in listSubImgDB)
|
||||
{
|
||||
itemd.Nav_File = null;
|
||||
}
|
||||
foreach (var itemd in listSubFilesDB)
|
||||
{
|
||||
itemd.Nav_ImgFile = null;
|
||||
}
|
||||
foreach (var itemd in listSubFileDB)
|
||||
{
|
||||
itemd.Nav_ImgFiles = null;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
listSubFilesDB = null;
|
||||
listSubImgDB = null;
|
||||
listSubFileDB = null;
|
||||
}
|
||||
if ((Nav_Files != null && Nav_Files.Count() > 0) && (listSubFilesDB == null || listSubFilesDB.Count() < 1))
|
||||
{
|
||||
context.Update(entity);
|
||||
//直接添加
|
||||
context.AddRange(Nav_Files);
|
||||
context.AddRange(listFileImgs);
|
||||
context.AddRange(listFile);
|
||||
|
||||
context.SaveChanges();
|
||||
}
|
||||
else if ((Nav_Files != null && Nav_Files.Count() > 0) && listSubFilesDB != null && listSubFilesDB.Count() > 0)
|
||||
{
|
||||
//对比 DB 和传入值 //原来的和现在的做对比
|
||||
listSubFilesAdd = new List<T_PF_ANNOURCEMENT_FILE>();
|
||||
listSubImgAdd = new List<T_PF_IMG_FILE>();
|
||||
listSubFileAdd = new List<T_PF_FILE>();
|
||||
listSubFilesUp = new List<T_PF_ANNOURCEMENT_FILE>();
|
||||
listSubImgUp = new List<T_PF_IMG_FILE>();
|
||||
listSubFileUp = new List<T_PF_FILE>();
|
||||
foreach (var itemI in Nav_Files)
|
||||
{
|
||||
var checkF = listSubFilesDB.FirstOrDefault(e => e.ID == itemI.ID);
|
||||
if (checkF == null)
|
||||
{
|
||||
listSubFilesAdd.Add(itemI);
|
||||
}
|
||||
else
|
||||
{
|
||||
listSubFilesUp.Add(itemI);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var itemI in listFileImgs)
|
||||
{
|
||||
var checkImg = listSubImgDB.FirstOrDefault(e => e.ID == itemI.ID);
|
||||
if (checkImg == null)
|
||||
{
|
||||
listSubImgAdd.Add(itemI);
|
||||
}
|
||||
else
|
||||
{
|
||||
listSubImgUp.Add(itemI);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var itemI in listFile)
|
||||
{
|
||||
var checkF = listSubFileDB.FirstOrDefault(e => e.ID == itemI.ID);
|
||||
if (checkF == null)
|
||||
{
|
||||
listSubFileAdd.Add(itemI);
|
||||
}
|
||||
else
|
||||
{
|
||||
listSubFileUp.Add(itemI);
|
||||
}
|
||||
}
|
||||
entity.Nav_Files = null;
|
||||
context.Update(entity);
|
||||
if (listSubFilesAdd != null && listSubFilesAdd.Count > 0)
|
||||
{
|
||||
foreach (var itema in listSubFilesAdd)
|
||||
{
|
||||
itema.Nav_Annourcement = null;
|
||||
}
|
||||
context.AddRange(listSubFilesAdd);
|
||||
}
|
||||
if (listSubImgAdd != null && listSubImgAdd.Count > 0)
|
||||
context.AddRange(listSubImgAdd);
|
||||
if (listSubFileAdd != null && listSubFileAdd.Count > 0)
|
||||
context.AddRange(listSubFileAdd);
|
||||
if (listSubImgUp != null && listSubImgUp.Count > 0)
|
||||
context.UpdateRange(listSubImgUp);
|
||||
if (listSubFileUp != null && listSubFileUp.Count > 0)
|
||||
context.UpdateRange(listSubFileUp);
|
||||
if (listSubFilesUp != null && listSubFilesUp.Count > 0)
|
||||
{
|
||||
foreach (var itemf in listSubFilesUp)
|
||||
{
|
||||
itemf.Nav_Annourcement = null;
|
||||
itemf.Nav_ImgFile = null;
|
||||
}
|
||||
context.UpdateRange(listSubFilesUp);
|
||||
}
|
||||
context.SaveChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
//把原来的删除
|
||||
context.Update(entity);
|
||||
if (listSubFilesDB != null && listSubFilesDB.Count > 0)
|
||||
{
|
||||
if (listSubFilesDB != null && listSubFilesDB.Count > 0)
|
||||
{
|
||||
foreach (var itemD in listSubFilesDB)
|
||||
{
|
||||
itemD.IS_DELETED = true;
|
||||
}
|
||||
context.UpdateRange(listSubFilesDB);
|
||||
}
|
||||
if (listSubImgDB != null && listSubImgDB.Count > 0)
|
||||
{
|
||||
foreach (var itemD in listSubImgDB)
|
||||
{
|
||||
itemD.IS_DELETED = true;
|
||||
}
|
||||
context.UpdateRange(listSubImgDB);
|
||||
}
|
||||
if (listSubFileDB != null && listSubFileDB.Count > 0)
|
||||
{
|
||||
foreach (var itemD in listSubFileDB)
|
||||
{
|
||||
itemD.IS_DELETED = true;
|
||||
}
|
||||
context.UpdateRange(listSubFileDB);
|
||||
}
|
||||
}
|
||||
context.SaveChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -21,11 +21,344 @@ using APT.Infrastructure.Api;
|
||||
using APT.BaseData.Domain.ApiModel.PF;
|
||||
namespace APT.PF.WebApi.Controllers.Api
|
||||
{
|
||||
using APT.MS.Domain.Entities.PF;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.BaseData.Domain.Entities;
|
||||
using APT.MS.Domain.Entities.PF;
|
||||
using APT.BaseData.Domain.Entities.PF;
|
||||
using APT.BaseData.Domain.Entities.T4;
|
||||
|
||||
#region Annourcement-公告
|
||||
/// <summary>
|
||||
/// 公告
|
||||
/// </summary>
|
||||
[Route("api/PF/Annourcement")]
|
||||
public partial class AnnourcementController : AuthorizeApiController<T_PF_ANNOURCEMENT>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_PF_ANNOURCEMENT>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_PF_ANNOURCEMENT>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_PF_ANNOURCEMENT> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_PF_ANNOURCEMENT> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_PF_ANNOURCEMENT entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_PF_ANNOURCEMENT> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_PF_ANNOURCEMENT> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region AnnourcementFile-公告附件
|
||||
/// <summary>
|
||||
/// 公告附件
|
||||
/// </summary>
|
||||
[Route("api/PF/AnnourcementFile")]
|
||||
public partial class AnnourcementFileController : AuthorizeApiController<T_PF_ANNOURCEMENT_FILE>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_PF_ANNOURCEMENT_FILE>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_PF_ANNOURCEMENT_FILE>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_PF_ANNOURCEMENT_FILE> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_PF_ANNOURCEMENT_FILE> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_PF_ANNOURCEMENT_FILE entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_PF_ANNOURCEMENT_FILE> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_PF_ANNOURCEMENT_FILE> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region AnnourcementOrg-公告下属公司
|
||||
/// <summary>
|
||||
/// 公告下属公司
|
||||
/// </summary>
|
||||
[Route("api/PF/AnnourcementOrg")]
|
||||
public partial class AnnourcementOrgController : AuthorizeApiController<T_PF_ANNOURCEMENT_ORG>
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Entities")]
|
||||
public JsonActionResult<IEnumerable<T_PF_ANNOURCEMENT_ORG>> Entities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序查询所有数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
|
||||
[HttpPost, Route("OrderEntities")]
|
||||
public JsonActionResult<IEnumerable<T_PF_ANNOURCEMENT_ORG>> OrderEntities([FromBody]KeywordFilter filter)
|
||||
{
|
||||
return WitOrderEntities(null, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Paged")]
|
||||
public PagedActionResult<T_PF_ANNOURCEMENT_ORG> Paged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序分页查询数据
|
||||
/// </summary>
|
||||
/// <param name="pageFilter">分页过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("OrderPaged")]
|
||||
public PagedActionResult<T_PF_ANNOURCEMENT_ORG> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
||||
{
|
||||
return WitOrderPaged(null, pageFilter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除数据
|
||||
/// </summary>
|
||||
/// <param name="id">主键ID</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("Delete")]
|
||||
public JsonActionResult<bool> Delete(string id)
|
||||
{
|
||||
return WitRealDelete(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新或新增数据
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Update")]
|
||||
public JsonActionResult<bool> Update([FromBody]T_PF_ANNOURCEMENT_ORG entity)
|
||||
{
|
||||
return WitUpdate(entity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量更新
|
||||
/// </summary>
|
||||
/// <param name="entity">对象实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("BatchUpdate")]
|
||||
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_PF_ANNOURCEMENT_ORG> entity)
|
||||
{
|
||||
return WitBantchUpdate(entity?.Data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet, Route("BatchDelete")]
|
||||
public JsonActionResult<bool> BatchDelete(string ids)
|
||||
{
|
||||
return WitRealBatchDelete(ids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得单条实体数据
|
||||
/// </summary>
|
||||
/// <param name="filter">过滤实体</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost, Route("Get")]
|
||||
public JsonActionResult<T_PF_ANNOURCEMENT_ORG> Get([FromBody] KeywordFilter filter)
|
||||
{
|
||||
return WitEntity(null, filter);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ApprovalRole-审批角色
|
||||
/// <summary>
|
||||
/// 审批角色
|
||||
|
||||
Loading…
Reference in New Issue
Block a user