加强判断完成判断标志以及给默认值
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5a7796939f
commit
e6bdb51b5b
|
|
@ -41,7 +41,6 @@ public class FileUploadRecordView : FileUploadRecordAddOrEdit
|
|||
|
||||
public DateTime UpdateTime { get; set; }
|
||||
|
||||
public bool? IsSync { get; set; }
|
||||
|
||||
|
||||
[Comment("同步结束时间-最后一个任务的时间")]
|
||||
|
|
@ -93,6 +92,8 @@ public class FileUploadRecordAddOrEdit
|
|||
public bool? IsNeedSync { get; set; }
|
||||
public string UploadRegion { get; set; }
|
||||
public string TargetRegion { get; set; }
|
||||
|
||||
public bool? IsSync { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class FileUploadRecordService(IRepository<FileUploadRecord> _fileUploadRe
|
|||
|
||||
TargetRegion = g.First().TargetRegion,
|
||||
|
||||
IsSync = !g.Any(t => t.IsSync == false)
|
||||
IsSync = !g.Any(t => t.IsSync == false || t.IsSync == null)
|
||||
|
||||
});
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ public class FileUploadRecordService(IRepository<FileUploadRecord> _fileUploadRe
|
|||
|
||||
addOrEditFileUploadRecord.Priority = 0;
|
||||
|
||||
|
||||
addOrEditFileUploadRecord.IsSync = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -238,6 +238,8 @@ public class FileUploadRecordService(IRepository<FileUploadRecord> _fileUploadRe
|
|||
//系统文件,默认同步
|
||||
addOrEditFileUploadRecord.IsNeedSync = true;
|
||||
|
||||
addOrEditFileUploadRecord.IsSync = false;
|
||||
|
||||
addOrEditFileUploadRecord.Priority = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue