手动通过的时候设置时间
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
hang 2025-09-25 16:19:18 +08:00
parent e641e78fb3
commit 48c9721ab4
2 changed files with 5 additions and 0 deletions

View File

@ -541,6 +541,7 @@ namespace IRaCIS.Core.Application.Image.QA
sv.CheckUserId = _userInfo.UserRoleId; sv.CheckUserId = _userInfo.UserRoleId;
sv.CheckState = CheckStateEnum.CVPassed; sv.CheckState = CheckStateEnum.CVPassed;
sv.CheckTime = DateTime.Now;
sv.ReadingStatus = ReadingStatusEnum.TaskAllocate; sv.ReadingStatus = ReadingStatusEnum.TaskAllocate;

View File

@ -3,6 +3,7 @@ using IRaCIS.Core.Domain.Models;
using IRaCIS.Core.Infra.EFCore.Common; using IRaCIS.Core.Infra.EFCore.Common;
using IRaCIS.Core.Infrastructure.Encryption; using IRaCIS.Core.Infrastructure.Encryption;
using IRaCIS.Core.Infrastructure.Extention; using IRaCIS.Core.Infrastructure.Extention;
using Microsoft.EntityFrameworkCore.Metadata.Conventions;
using Microsoft.EntityFrameworkCore.Metadata.Internal; using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Newtonsoft.Json; using Newtonsoft.Json;
@ -58,6 +59,9 @@ public class IRaCISDBContext : DbContext
//configurationBuilder.Conventions.Add(_ => new DecimalPrecisionConvention(18,2)); //configurationBuilder.Conventions.Add(_ => new DecimalPrecisionConvention(18,2));
//针对字符串使用默认的长度配置为200如果标注了StringLength 其他长度就是标注的长度如果标注了MaxLength 那么就是nvarcharMax //针对字符串使用默认的长度配置为200如果标注了StringLength 其他长度就是标注的长度如果标注了MaxLength 那么就是nvarcharMax
configurationBuilder.Conventions.Add(_ => new DefaultStringLengthConvention(400)); configurationBuilder.Conventions.Add(_ => new DefaultStringLengthConvention(400));
//https://learn.microsoft.com/zh-cn/ef/core/modeling/relationships/conventions?utm_source=chatgpt.com
configurationBuilder.Conventions.Remove(typeof(ForeignKeyIndexConvention));
} }
protected override void OnModelCreating(ModelBuilder modelBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder)