From 55c8f66d8f041c99c9296e9b5cec516299779c6e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com>
Date: Tue, 31 Dec 2024 10:28:06 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=BC=96=E5=86=99=E5=B7=A5?=
=?UTF-8?q?=E4=BD=9C=E7=AB=99=E5=BA=93=E4=BD=8D=E5=90=8C=E6=AD=A5=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../DTOs/PostionLocationDTO.cs | 19 +++++++++++++++++++
.../PostionLocationAppService.cs | 19 +++++++++++++++----
2 files changed, 34 insertions(+), 4 deletions(-)
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;
}