修改GrowthPoint不为int?的类型

This commit is contained in:
2026-07-01 10:27:19 +08:00
parent b822489111
commit 87bc5c0e0c
5 changed files with 22 additions and 24 deletions

View File

@ -61,7 +61,7 @@ public class JournalPageTaskService(BaseRepository<Journal> journalRepository, O
task.Type = input.Type;
task.Task = input.Task;
task.Points = input.Points;
task.GrowthPoint = (int?)input.GrowthPoint;
task.GrowthPoint = input.GrowthPoint;
task.Comprehension = input.Comprehension;
task.Judgment = input.Judgment;
task.Expression = input.Expression;
@ -99,7 +99,7 @@ public class JournalPageTaskService(BaseRepository<Journal> journalRepository, O
No = task.No,
Type = task.Type,
Points = task.Points,
GrowthPoint = task.GrowthPoint ?? 0,
GrowthPoint = task.GrowthPoint,
Comprehension = task.Comprehension,
Judgment = task.Judgment,
Expression = task.Expression,