Compare commits
No commits in common. "af160e3c96f416ece558e363c2513ec5a2877969" and "58eb59bd6133f7613c00c30cd77c23f50c549f04" have entirely different histories.
af160e3c96
...
58eb59bd61
|
|
@ -117,7 +117,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
public async Task<IResponseOutput> SetAutoCutNextTask(SetAutoCutNextTaskInDto inDto)
|
public async Task<IResponseOutput> SetAutoCutNextTask(SetAutoCutNextTaskInDto inDto)
|
||||||
{
|
{
|
||||||
|
|
||||||
var userConfig = await _readingUserConfigRepository.FirstOrDefaultNoTrackingAsync(x => x.UserRoleId == _userInfo.UserRoleId && x.ImageToolType == inDto.ImageToolType);
|
var userConfig = await _readingUserConfigRepository.FirstOrDefaultAsync(x => x.UserRoleId == _userInfo.UserRoleId && x.ImageToolType == inDto.ImageToolType);
|
||||||
|
|
||||||
if (userConfig == null)
|
if (userConfig == null)
|
||||||
{
|
{
|
||||||
|
|
@ -131,7 +131,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
await _readingUserConfigRepository.UpdatePartialFromQueryAsync(x=>x.Id==userConfig.Id, x => new ReadingUserConfig
|
await _readingUserConfigRepository.UpdatePartialFromQueryAsync(x => x.Id == userConfig.Id, x => new ReadingUserConfig
|
||||||
{
|
{
|
||||||
AutoCutNextTask = inDto.AutoCutNextTask,
|
AutoCutNextTask = inDto.AutoCutNextTask,
|
||||||
IsDoubleScreen = inDto.IsDoubleScreen,
|
IsDoubleScreen = inDto.IsDoubleScreen,
|
||||||
|
|
@ -139,7 +139,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
await _readingUserConfigRepository.SaveChangesAsync();
|
await _userRoleRepository.SaveChangesAsync();
|
||||||
|
|
||||||
return ResponseOutput.Ok();
|
return ResponseOutput.Ok();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,6 @@ public class UserFeedBack : BaseFullAuditEntity
|
||||||
public Guid? TrialSiteId { get; set; }
|
public Guid? TrialSiteId { get; set; }
|
||||||
public Guid? TrialId { get; set; }
|
public Guid? TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 原因
|
|
||||||
/// </summary>
|
|
||||||
public string Reason { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
[MaxLength]
|
[MaxLength]
|
||||||
public string ScreenshotListStr { get; set; } = string.Empty;
|
public string ScreenshotListStr { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,30 +0,0 @@
|
||||||
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,11 +15684,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<int>("QuestionType")
|
b.Property<int>("QuestionType")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<string>("Reason")
|
|
||||||
.IsRequired()
|
|
||||||
.HasMaxLength(400)
|
|
||||||
.HasColumnType("nvarchar(400)");
|
|
||||||
|
|
||||||
b.Property<string>("ScreenshotListStr")
|
b.Property<string>("ScreenshotListStr")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue