修改用户参与项目接口
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-02-25 09:57:45 +08:00
parent 1f8caa4616
commit 812035686e
3 changed files with 7 additions and 1 deletions
@@ -139,6 +139,11 @@ namespace IRaCIS.Application.Contracts
public DateTime? JoinTime { get; set; }
public string Roles => string.Join(',', TrialUserRoleList.Select(t => t.UserTypeShortName));
public string JoinTimeStr => JoinTime?.ToString("yyyy-MM-dd") ?? string.Empty;
public string RemoveTimeStr => RemoveTime?.ToString("yyyy-MM-dd") ?? string.Empty;
}
public class TrialMaintenanceDTO : UserTrialCommand
@@ -50,7 +50,7 @@ namespace IRaCIS.Core.Application.Service
IsDeleted = t.IsDeleted,
JoinTime = t.JoinTime,
RemoveTime = t.RemoveTime,
TrialUserRoleList = t.TrialUserRoleList.Select(t => new UserTypeSelectDto() { UserTypeId = t.UserRole.UserTypeRole.Id, UserTypeShortName = t.UserRole.UserTypeRole.UserTypeShortName }).ToList(),
TrialUserRoleList = t.TrialUserRoleList.Select(t => new UserTypeSelectDto() { IsDeleted = t.IsDeleted, UserTypeId = t.UserRole.UserTypeRole.Id, UserTypeShortName = t.UserRole.UserTypeRole.UserTypeShortName }).ToList(),
}).ToPagedListAsync(inQuery);