Compare commits
2 Commits
58eb59bd61
...
af160e3c96
| Author | SHA1 | Date |
|---|---|---|
|
|
af160e3c96 | |
|
|
b5e6a81a52 |
|
|
@ -117,7 +117,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
public async Task<IResponseOutput> SetAutoCutNextTask(SetAutoCutNextTaskInDto inDto)
|
||||
{
|
||||
|
||||
var userConfig = await _readingUserConfigRepository.FirstOrDefaultAsync(x => x.UserRoleId == _userInfo.UserRoleId && x.ImageToolType == inDto.ImageToolType);
|
||||
var userConfig = await _readingUserConfigRepository.FirstOrDefaultNoTrackingAsync(x => x.UserRoleId == _userInfo.UserRoleId && x.ImageToolType == inDto.ImageToolType);
|
||||
|
||||
if (userConfig == null)
|
||||
{
|
||||
|
|
@ -139,7 +139,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
}
|
||||
|
||||
|
||||
await _userRoleRepository.SaveChangesAsync();
|
||||
await _readingUserConfigRepository.SaveChangesAsync();
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,11 @@ public class UserFeedBack : BaseFullAuditEntity
|
|||
public Guid? TrialSiteId { get; set; }
|
||||
public Guid? TrialId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原因
|
||||
/// </summary>
|
||||
public string Reason { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength]
|
||||
public string ScreenshotListStr { get; set; } = string.Empty;
|
||||
}
|
||||
|
|
|
|||
22116
IRaCIS.Core.Infra.EFCore/Migrations/20260423065512_UserFeedBack2.Designer.cs
generated
Normal file
22116
IRaCIS.Core.Infra.EFCore/Migrations/20260423065512_UserFeedBack2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,30 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class UserFeedBack2 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Reason",
|
||||
table: "UserFeedBack",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Reason",
|
||||
table: "UserFeedBack");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -15684,6 +15684,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
b.Property<int>("QuestionType")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("nvarchar(400)");
|
||||
|
||||
b.Property<string>("ScreenshotListStr")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
|
|
|||
Loading…
Reference in New Issue