public static string AuditResult(this ApplyResponseDto model) { if (model == null) { return("无审批结果"); } var remark = (model.Remark != null && model.Remark.Length > 0) ? $"({model.Remark})" : null; return($"{model.Status.ToStr()}{remark}"); }
public static ApplyResponseDto ToResponseDto(this ApplyResponse model) { var b = new ApplyResponseDto() { AuditingUserRealName = model?.AuditingBy?.BaseInfo?.RealName, AuditingUserId = model?.AuditingBy?.Id, Index = model.StepIndex, HandleStamp = model.HandleStamp, Remark = model.Remark, Status = model.Status }; return(b); }