From 687c7eb08e7c3a803a3b60dedc9c394dbb6ba411 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 24 七月 2024 10:46:07 +0800
Subject: [PATCH] 增加采购验退,调整代码结构

---
 MESApplication/Controllers/Warehouse/MesInvItemArnController.cs |   35 +++++++++++++++++++++++++++--------
 1 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/MESApplication/Controllers/MesLineUserController.cs b/MESApplication/Controllers/Warehouse/MesInvItemArnController.cs
similarity index 78%
copy from MESApplication/Controllers/MesLineUserController.cs
copy to MESApplication/Controllers/Warehouse/MesInvItemArnController.cs
index 74259cf..007d9f9 100644
--- a/MESApplication/Controllers/MesLineUserController.cs
+++ b/MESApplication/Controllers/Warehouse/MesInvItemArnController.cs
@@ -1,19 +1,38 @@
 锘縰sing System.Dynamic;
+using MES.Service.Dto.service;
 using MES.Service.Modes;
-using MES.Service.service;
+using MES.Service.service.Warehouse;
 using MES.Service.util;
 using Microsoft.AspNetCore.Mvc;
 
-namespace MESApplication.Controllers;
+namespace MESApplication.Controllers.Warehouse;
 
 [ApiController]
 [Route("api/[controller]")]
-public class MesLineUserController : ControllerBase
+public class MesInvItemArnController : ControllerBase
 {
-    private readonly MesLineUserManager m = new();
+    private readonly MesInvItemArnManager m = new();
 
 
-    /***杩涘叆妯$増绠$悊鍙互淇敼妯$増***/
+    [HttpPost("GetPageList")]
+    public ResponseResult GetPageList(WarehouseQuery query)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            resultInfos.tbBillList = m.GetPagedResults(query);
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
 
     /// <summary>
     ///     鑾峰彇鎵�鏈�
@@ -93,7 +112,7 @@
     /// </summary>
     /// <returns></returns>
     [HttpPost("Insert")]
-    public ResponseResult Add([FromBody] MesLineUser data)
+    public ResponseResult Add([FromBody] MesInvItemArn data)
     {
         try
         {
@@ -117,7 +136,7 @@
     /// </summary>
     /// <returns></returns>
     [HttpPost("InsertReturnIdentity")]
-    public ResponseResult InsertReturnIdentity([FromBody] MesLineUser data)
+    public ResponseResult InsertReturnIdentity([FromBody] MesInvItemArn data)
     {
         try
         {
@@ -141,7 +160,7 @@
     /// </summary>
     /// <returns></returns>
     [HttpPost("Update")]
-    public ResponseResult Update([FromBody] MesLineUser data)
+    public ResponseResult Update([FromBody] MesInvItemArn data)
     {
         try
         {

--
Gitblit v1.9.3