From 3abb32b69c30885ebad54c44cf36d425f9673a7d Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期四, 13 十一月 2025 15:10:24 +0800
Subject: [PATCH] 格式化代码

---
 Wms/WMS.BLL/DataServer/StockServer.cs |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/Wms/WMS.BLL/DataServer/StockServer.cs b/Wms/WMS.BLL/DataServer/StockServer.cs
index 093a005..01ec337 100644
--- a/Wms/WMS.BLL/DataServer/StockServer.cs
+++ b/Wms/WMS.BLL/DataServer/StockServer.cs
@@ -164,8 +164,8 @@
         {
             string stockUseSql = $@"select a.Id,a.WareHouseNo,a.WareHouseName,b.num as stockNum,c.num as useNum
 	from SysWareHouse a
-	left join (select WareHouseNo,count(Id) as num from SysStorageLocat where IsDel='0' group by WareHouseNo) b on b.WareHouseNo=a.WareHouseNo
-	left join (select WareHouseNo,count(Id) as num from SysStorageLocat where IsDel='0' and Status='1' group by WareHouseNo) c on c.WareHouseNo=a.WareHouseNo
+	left join (select WareHouseNo,count(Id) as num from SysStorageLocat where IsDel='0' and Make=1 group by WareHouseNo) b on b.WareHouseNo=a.WareHouseNo 
+	left join (select WareHouseNo,count(Id) as num from SysStorageLocat where IsDel='0' and Make=1 and Status='1' group by WareHouseNo) c on c.WareHouseNo=a.WareHouseNo
 	where a.IsDel='0'
 	order by a.WareHouseNo";
             DataTable stockUseDt = Db.Ado.GetDataTable(stockUseSql);
@@ -196,8 +196,7 @@
         /// <param name="wareHouseNo">鎵�灞炰粨搴�</param>
         /// <param name="areaNo">鎵�灞炲尯鍩�</param>
         /// <returns></returns>
-        public async Task<List<MateDataStockDto>> GetDataStockList(string selectType, string skuNo, string skuName, string ownerNo,
-            string ownerName, string lotNo, string status, string inspectStatus, string wareHouseNo, string areaNo)
+        public async Task<List<MateDataStockDto>> GetDataStockList(string selectType, string skuNo, string skuName, string ownerNo, string ownerName, string lotNo, string status, string inspectStatus, string wareHouseNo, string areaNo)
         {
             Expression<Func<DataStockDetail, bool>> item = Expressionable.Create<DataStockDetail>()
             .AndIF(!string.IsNullOrEmpty(skuNo), a => a.SkuNo.Contains(skuNo))
@@ -338,8 +337,7 @@
         /// <param name="status">搴撳瓨鐘舵��</param>
         /// <param name="inspectStatus">璐ㄦ鐘舵��</param>
         /// <returns></returns>
-        public List<StockDetailDto> GetInventoryList1(string skuNo, string skuName, string lotNo, string locatNo, string palletNo,
-            string status, string inspectStatus, string ownerNo, string ownerName, string startTime, string endTime)
+        public List<StockDetailDto> GetInventoryList1(string skuNo, string skuName, string lotNo, string locatNo, string palletNo, string status, string inspectStatus, string ownerNo, string ownerName, string startTime, string endTime)
         {
             string str = "select detail.*,house.WareHouseNo + '-' + house.WareHouseName as WareHouseName," +
                 "roadway.RoadwayNo + '-' + roadway.RoadwayName as RoadwayName,area.AreaNo + '-' + area.AreaName as AreaName  " +

--
Gitblit v1.8.0