提交代码

This commit is contained in:
2024-01-22 10:35:43 +08:00
parent ce4763c8bb
commit ff0cc67d87
2 changed files with 4 additions and 3 deletions
@@ -30,7 +30,7 @@ namespace BLL
public string ReceiveDate { get; set; }
public string PlanStartDate { get; set; }
public string Code { get; set; }
}
@@ -144,9 +144,10 @@ namespace BLL
ReceiveMan = t.PersonName,
ReceiveDate = x.ReceiveDate.HasValue ? string.Format("{0:g}", x.ReceiveDate) : "",
PlanStartDate = GetMinPlanStartDate(x.PackagingManageId),
Code = x.PackagingCode.Substring(0, x.PackagingCode.LastIndexOf("-")).Substring(x.PackagingCode.Substring(0, x.PackagingCode.LastIndexOf("-")).LastIndexOf("-") + 1),
}).Distinct();
return q.ToList();
return q.OrderByDescending(x => x.Code).ToList();
}
}