diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/PostionLocations/DTOs/PostionLocationDTO.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/PostionLocations/DTOs/PostionLocationDTO.cs
index 59a8cad02..8a9c91f01 100644
--- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/PostionLocations/DTOs/PostionLocationDTO.cs
+++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/PostionLocations/DTOs/PostionLocationDTO.cs
@@ -27,3 +27,22 @@ public class PostionLocationDTO : SfsBaseDataDTOBase, IHasCode, IHasName
[Required(ErrorMessage = "{0}是必填项")]
public string LocationCode { get; set; }
}
+public class PostionLocationAgvDTO
+{
+ [Display(Name = "工作站编号")]
+ [Required(ErrorMessage = "{0}是必填项")]
+ public string Code { get; set; }
+
+ ///
+ /// 名称
+ ///
+ [Display(Name = "名称")]
+ public string Name { get; set; }
+
+ ///
+ /// WMS库位
+ ///
+ [Display(Name = "库位")]
+ [Required(ErrorMessage = "{0}是必填项")]
+ public string LocationCode { get; set; }
+}
diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs
index 83ca0dc0e..898432875 100644
--- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs
+++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs
@@ -188,11 +188,22 @@ public class PostionLocationAppService
}
- [HttpGet("get-all-list")]
- public async Task> GetAllListAsync()
+ [HttpPost("get-all-list")]
+ public async Task> GetAllListAsync()
{
- var result =await base.GetAllListByFilterAsync(new SfsBaseDataRequestInputBase() ).ConfigureAwait(false);
- return result;
+ var result =await base.GetAllListByFilterAsync(new SfsBaseDataRequestInputBase()).ConfigureAwait(false);
+ List list = new List();
+ foreach (var item in result)
+ {
+ PostionLocationAgvDTO dto = new PostionLocationAgvDTO();
+ dto.LocationCode = item.LocationCode;
+ dto.Code= item.Code;
+ dto.Name = item.Name;
+ list.Add(dto);
+ }
+
+
+ return list;
}