Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
38917e05ab
|
@ -44,7 +44,7 @@ public class TrialTrianingRecordAddOrEdit
|
||||||
|
|
||||||
public int? TrianingCount { get; set; }
|
public int? TrianingCount { get; set; }
|
||||||
|
|
||||||
public DateOnly TrianingDate { get; set; }
|
public DateOnly? TrianingDate { get; set; }
|
||||||
|
|
||||||
public int? TrianingState { get; set; }
|
public int? TrianingState { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@ public class TrialNormalRecordService(IRepository<TrialNormalRecord> _trialNorma
|
||||||
|
|
||||||
var trialNormalRecordQueryable = _trialNormalRecordRepository
|
var trialNormalRecordQueryable = _trialNormalRecordRepository
|
||||||
.Where(x => x.TrialFileTypeId == inDto.TrialFileTypeId)
|
.Where(x => x.TrialFileTypeId == inDto.TrialFileTypeId)
|
||||||
|
.WhereIf(inDto.IsAuthorizedView != null, x => x.IsAuthorizedView == inDto.IsAuthorizedView)
|
||||||
.WhereIf(inDto.FileName.IsNotNullOrEmpty(), x => x.TrialFileRecord.FileName.Contains(inDto.FileName))
|
.WhereIf(inDto.FileName.IsNotNullOrEmpty(), x => x.TrialFileRecord.FileName.Contains(inDto.FileName))
|
||||||
.ProjectTo<TrialNormalRecordView>(_mapper.ConfigurationProvider);
|
.ProjectTo<TrialNormalRecordView>(_mapper.ConfigurationProvider);
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ public class TrialTrianingRecordService(IRepository<
|
||||||
|
|
||||||
var trialTrianingRecordQueryable = _trialTrianingRecordRepository
|
var trialTrianingRecordQueryable = _trialTrianingRecordRepository
|
||||||
.Where(x => x.TrialFileTypeId == inDto.TrialFileTypeId)
|
.Where(x => x.TrialFileTypeId == inDto.TrialFileTypeId)
|
||||||
|
.WhereIf(inDto.IsAuthorizedView != null, x => x.IsAuthorizedView == inDto.IsAuthorizedView)
|
||||||
.WhereIf(inDto.FileName.IsNotNullOrEmpty(), x => x.TrialFileRecord.FileName.Contains(inDto.FileName))
|
.WhereIf(inDto.FileName.IsNotNullOrEmpty(), x => x.TrialFileRecord.FileName.Contains(inDto.FileName))
|
||||||
.WhereIf(inDto.TrianingDateStartTime != null, x => x.TrianingDate >= inDto.TrianingDateStartTime)
|
.WhereIf(inDto.TrianingDateStartTime != null, x => x.TrianingDate >= inDto.TrianingDateStartTime)
|
||||||
.WhereIf(inDto.TrianingDateEndTime != null, x => x.TrianingDate <= inDto.TrianingDateEndTime)
|
.WhereIf(inDto.TrianingDateEndTime != null, x => x.TrianingDate <= inDto.TrianingDateEndTime)
|
||||||
|
|
|
@ -63,7 +63,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var list = await noneDicomStudyQueryable.ToListAsync();
|
var list = await noneDicomStudyQueryable.OrderBy(x => x.ImageDate).ThenBy(x => x.CreateTime).ToListAsync();
|
||||||
|
|
||||||
var config = await _subjectVisitRepository.Where(t => t.Id == subjectVisitId).Select(t => new { t.Trial.ImageFormatList, t.Trial.StudyNameList ,t.Trial.IsShowStudyName}).FirstOrDefaultAsync();
|
var config = await _subjectVisitRepository.Where(t => t.Id == subjectVisitId).Select(t => new { t.Trial.ImageFormatList, t.Trial.StudyNameList ,t.Trial.IsShowStudyName}).FirstOrDefaultAsync();
|
||||||
return ResponseOutput.Ok(list, config) ;
|
return ResponseOutput.Ok(list, config) ;
|
||||||
|
|
|
@ -151,7 +151,7 @@ public class TrialTrianingRecord : BaseFullAuditEntity
|
||||||
public Guid TrialFileTypeId { get; set; }
|
public Guid TrialFileTypeId { get; set; }
|
||||||
|
|
||||||
#region 培训记录相关字段
|
#region 培训记录相关字段
|
||||||
public DateOnly TrianingDate { get; set; }
|
public DateOnly? TrianingDate { get; set; }
|
||||||
|
|
||||||
public int? TrianingCount { get; set; }
|
public int? TrianingCount { get; set; }
|
||||||
|
|
||||||
|
|
19147
IRaCIS.Core.Infra.EFCore/Migrations/20250305032415_trialDateOnly.Designer.cs
generated
Normal file
19147
IRaCIS.Core.Infra.EFCore/Migrations/20250305032415_trialDateOnly.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,37 @@
|
||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class trialDateOnly : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<DateOnly>(
|
||||||
|
name: "TrianingDate",
|
||||||
|
table: "TrialTrianingRecord",
|
||||||
|
type: "date",
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(DateOnly),
|
||||||
|
oldType: "date");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<DateOnly>(
|
||||||
|
name: "TrianingDate",
|
||||||
|
table: "TrialTrianingRecord",
|
||||||
|
type: "date",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: new DateOnly(1, 1, 1),
|
||||||
|
oldClrType: typeof(DateOnly),
|
||||||
|
oldType: "date",
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -13175,7 +13175,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<int?>("TrianingCount")
|
b.Property<int?>("TrianingCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<DateOnly>("TrianingDate")
|
b.Property<DateOnly?>("TrianingDate")
|
||||||
.HasColumnType("date");
|
.HasColumnType("date");
|
||||||
|
|
||||||
b.Property<int?>("TrianingState")
|
b.Property<int?>("TrianingState")
|
||||||
|
|
Loading…
Reference in New Issue