Przeglądaj źródła

完善物资接收功能和注释

在 `PersonnelModuleController.cs` 中添加了 `GoodsReceiveBatchList` 方法的 XML 注释,提供了方法说明和参数描述。同时,在 `GoodsRepository.cs` 中实现了接收列表按创建时间降序排序的功能,以提升物资接收记录的管理和展示效果。
LEIYI 6 dni temu
rodzic
commit
81412938a9

+ 0 - 1
OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

@@ -2355,7 +2355,6 @@ WHERE
         /// 物资进销存
         /// 领用 批量领用 List
         /// </summary>
-        /// <param name="id">id</param>
         /// <returns></returns>
         [HttpPost]
         [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]

+ 1 - 0
OASystem/OASystem.Infrastructure/Repositories/PersonnelModule/GoodsRepository.cs

@@ -3367,6 +3367,7 @@ FROM
                 .Where((x, y) => x.IsDel == 0 && x.GoodsId == 0 )
                 .WhereIF(!string.IsNullOrEmpty(goodsName), (x,y) => x.GoodsName.Contains(goodsName))
                 .WhereIF(!isShowAllPeople,(x,y) => x.CreateUserId == currUserId)
+                .OrderByDescending((x, y) => x.CreateTime)
                 .Select((x,y) => new GoodsReceiveBatchListView() { 
                     Id   = x.Id,
                     GoodsName = x.GoodsName,