修改
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
he 2025-03-14 14:25:02 +08:00
parent f9c2ac030a
commit c2360dd519
6 changed files with 19268 additions and 5 deletions

View File

@ -1096,6 +1096,13 @@
<param name="inDto"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.Service.AttachmentService.GetTrialDoctorList(IRaCIS.Application.Contracts.GetTrialDoctorSelectInDto)">
<summary>
获取医生列表
</summary>
<param name="inDto"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.Service.AttachmentService.SetAuthorizedView(IRaCIS.Application.Contracts.SetAttachmentAuthorizedView)">
<summary>
修改稽查状态

View File

@ -15,6 +15,15 @@
public bool ReUpload { get; set; } = false;
public Guid? TrialId { get; set; }
public string BlindName { get; set; } = string.Empty;
public string BlindNameCN { get; set; } = string.Empty;
public string ChineseName { get; set; } = string.Empty;
public string FirstName { get; set; } = string.Empty;
public string FullName => LastName + " / " + FirstName;
public string LastName { get; set; } = string.Empty;
}
public class SetAttachmentAuthorizedView

View File

@ -70,7 +70,13 @@ namespace IRaCIS.Core.Application.Service
CreateMap<Postgraduate, PostgraduateViewModel>();
// .ForMember(t => t.Hospital, c => c.MapFrom(d => d.HospitalEnt.HospitalName))
//.ForMember(t => t.HospitalCN, c => c.MapFrom(d => d.HospitalEnt.HospitalNameCN));
CreateMap<Attachment, AttachmentDTO>();
CreateMap<Attachment, AttachmentDTO>()
.ForMember(d => d.BlindName, u => u.MapFrom(t => t.Doctor.BlindName))
.ForMember(d => d.BlindNameCN, u => u.MapFrom(t => t.Doctor.BlindNameCN))
.ForMember(d => d.ChineseName, u => u.MapFrom(t => t.Doctor.ChineseName))
.ForMember(d => d.FirstName, u => u.MapFrom(t => t.Doctor.FirstName))
.ForMember(d => d.LastName, u => u.MapFrom(t => t.Doctor.LastName))
;
CreateMap<Doctor, GetTrialDoctorListOutDto>();
CreateMap<Doctor, ResumeConfirmDTO>();

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,81 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class IsAuthorizedView : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Attachment_Doctor_DoctorId",
table: "Attachment");
migrationBuilder.AlterColumn<Guid>(
name: "DoctorId",
table: "Attachment",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier");
migrationBuilder.AddColumn<bool>(
name: "IsAuthorizedView",
table: "Attachment",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<Guid>(
name: "TrialId",
table: "Attachment",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddForeignKey(
name: "FK_Attachment_Doctor_DoctorId",
table: "Attachment",
column: "DoctorId",
principalTable: "Doctor",
principalColumn: "Id");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Attachment_Doctor_DoctorId",
table: "Attachment");
migrationBuilder.DropColumn(
name: "IsAuthorizedView",
table: "Attachment");
migrationBuilder.DropColumn(
name: "TrialId",
table: "Attachment");
migrationBuilder.AlterColumn<Guid>(
name: "DoctorId",
table: "Attachment",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AddForeignKey(
name: "FK_Attachment_Doctor_DoctorId",
table: "Attachment",
column: "DoctorId",
principalTable: "Doctor",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
}
}

View File

@ -39,7 +39,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<Guid>("CreateUserId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("DoctorId")
b.Property<Guid?>("DoctorId")
.HasColumnType("uniqueidentifier");
b.Property<DateTime?>("ExpiryDate")
@ -51,6 +51,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
b.Property<bool>("IsAuthorizedView")
.HasColumnType("bit");
b.Property<bool>("IsOfficial")
.HasColumnType("bit")
.HasComment("是否正式简历");
@ -64,6 +67,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
b.Property<Guid?>("TrialId")
.HasColumnType("uniqueidentifier");
b.Property<string>("Type")
.IsRequired()
.HasMaxLength(400)
@ -14528,9 +14534,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasOne("IRaCIS.Core.Domain.Models.Doctor", "Doctor")
.WithMany("AttachmentList")
.HasForeignKey("DoctorId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
.HasForeignKey("DoctorId");
b.Navigation("CreateUserRole");