From 73e0e7c3886bc88e7ed37db24d28d8f6d159f1c0 Mon Sep 17 00:00:00 2001
From: qinchulong <qinchulong@hnkhzn.com>
Date: 星期六, 08 三月 2025 18:57:10 +0800
Subject: [PATCH] 优先级修改

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_batchinfoService.cs |   73 ++++++++++++++++++++++++++++++++++++
 1 files changed, 73 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_batchinfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_batchinfoService.cs"
index 2833c26..26a7aef 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_batchinfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_batchinfoService.cs"
@@ -5,6 +5,7 @@
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.BaseRepository;
 using WIDESEAWCS_Core.BaseServices;
 using WIDESEAWCS_ISystemServices;
@@ -15,6 +16,10 @@
     public class dt_batchinfoService : ServiceBase<dt_batchInfo, IRepository<dt_batchInfo>>, Idt_BatchinfoService
     {
         private readonly IMapper _mapper;
+        public override PageGridData<dt_batchInfo> GetPageData(PageDataOptions options)
+        {
+            return base.GetPageData(options);
+        }
         /// <summary>
         /// 浠撳偍灞�(鏁版嵁搴撹闂�)
         /// </summary>
@@ -24,5 +29,73 @@
             _mapper = mapper;
         }
 
+        /// <summary>
+        /// 淇敼鍏ュ簱鎵规淇℃伅
+        /// </summary>
+        /// <param name="batch"></param>
+        /// <returns></returns>
+        public WebResponseContent UpdateInBatch(string batch) 
+        {
+            WebResponseContent content = new WebResponseContent();
+            try
+            {
+                var batchibfo = BaseDal.QueryFirst(v=>v.Id==1);
+                batchibfo.InBatch = batch;
+                BaseDal.UpdateData(batchibfo);
+
+                content = WebResponseContent.Instance.OK();
+            }
+            catch (Exception ex)
+            {
+                content = WebResponseContent.Instance.Error($"淇敼鍏ュ簱鎵规鍙峰け璐�:銆恵ex.Message}銆�");
+            }
+            return content;
+        }
+
+        /// <summary>
+        /// 淇敼鍑哄簱鎵规淇℃伅
+        /// </summary>
+        /// <param name="batch"></param>
+        /// <returns></returns>
+        public WebResponseContent UpdateOutBatch(string batch)
+        {
+            WebResponseContent content = new WebResponseContent();
+            try
+            {
+                var batchibfo = BaseDal.QueryFirst(v => v.Id == 1);
+                batchibfo.OutBatch = batch;
+                BaseDal.UpdateData(batchibfo);
+
+                content = WebResponseContent.Instance.OK();
+            }
+            catch (Exception ex)
+            {
+                content = WebResponseContent.Instance.Error($"淇敼鍏ュ簱鎵规鍙峰け璐�:銆恵ex.Message}銆�");
+            }
+            return content;
+        }
+
+        /// <summary>
+        /// 淇敼鍑哄簱鐗╂枡淇℃伅锛岄渶瑕佸嚭澶栬喘杩樻槸鑷骇
+        /// </summary>
+        /// <param name="batch"></param>
+        /// <returns></returns>
+        public WebResponseContent UpdateOutStorageMode(int mode)
+        {
+            WebResponseContent content = new WebResponseContent();
+            try
+            {
+                var batchibfo = BaseDal.QueryFirst(v => v.Id == 1);
+                batchibfo.materType = mode;
+                BaseDal.UpdateData(batchibfo);
+
+                content = WebResponseContent.Instance.OK();
+            }
+            catch (Exception ex)
+            {
+                content = WebResponseContent.Instance.Error($"淇敼鍏ュ簱鎵规鍙峰け璐�:銆恵ex.Message}銆�");
+            }
+            return content;
+        }
     }
 }

--
Gitblit v1.9.3