wanshenmean
2026-02-26 3de39066b5894850d0f0dc311b60cc09f599a025
Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockSerivce.cs
@@ -145,6 +145,20 @@
            return await StockInfoDetailService.Repository.DeleteDataAsync(detailEntities);
        }
        public async Task<bool> UpdateStockInfo(StockInfoDTO stock)
        {
            if (stock == null) return false;
            var existingStock = StockInfoService.Repository.QueryFirst(s => s.PalletCode == stock.PalletCode);
            if (existingStock == null) return false;
            existingStock.LocationCode = "";
            existingStock.LocationId = 0;
            return await StockInfoService.Repository.UpdateDataAsync(existingStock);
        }
        private static List<Dt_StockInfoDetail_Hty> CreateDetailHistory(IEnumerable<Dt_StockInfoDetail> details, string operateType)
        {
            var now = DateTime.Now;