在 GroupsController.cs 中,将 groups.Select 中的 x.CompletedCount 从注释状态恢复为有效代码,确保 x.CompletedCount 的值被正确包含在生成的 groups1 结果中。
@@ -28297,7 +28297,7 @@ ORDER BY
var groups1 = groups.Select(x => new {
x.Id,
x.GroupName,
- //x.CompletedCount
+ x.CompletedCount
}).ToList();
return Ok(JsonView(true, msg, groups1, total));