From f69333e16126053d0ec985c5f4ec9165d109b456 Mon Sep 17 00:00:00 2001 From: tongfei <244188119@qq.com> Date: Tue, 21 Nov 2023 15:22:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WMS.Web.Domain/Services/BoxInventoryService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WMS.Web.Domain/Services/BoxInventoryService.cs b/src/WMS.Web.Domain/Services/BoxInventoryService.cs index 89adec24..078e6bd3 100644 --- a/src/WMS.Web.Domain/Services/BoxInventoryService.cs +++ b/src/WMS.Web.Domain/Services/BoxInventoryService.cs @@ -44,7 +44,7 @@ namespace WMS.Web.Domain.Services public async Task GenerateChangeBox(List dtoDatas, bool isTransaction) { //1.判断来源数据是否存在 - if (dtoDatas != null || dtoDatas.Count == 0) + if (dtoDatas == null || dtoDatas.Count == 0) return Result.ReFailure(ResultCodes.InventoryNoSourceError); var update_entitys = new List(); @@ -154,7 +154,7 @@ namespace WMS.Web.Domain.Services public async Task GenerateMoveBox(List dtoDatas, bool isTransaction) { //1.判断来源数据是否存在 - if (dtoDatas != null || dtoDatas.Count == 0) + if (dtoDatas == null || dtoDatas.Count == 0) return Result.ReFailure(ResultCodes.InventoryNoSourceError); var delete_entitys = new List(); @@ -235,7 +235,7 @@ namespace WMS.Web.Domain.Services public async Task GenerateBackBox(List dtoDatas, bool isTransaction) { //1.判断来源数据是否存在 - if (dtoDatas != null || dtoDatas.Count == 0) + if (dtoDatas == null || dtoDatas.Count == 0) return Result.ReFailure(ResultCodes.InventoryNoSourceError); var update_entitys = new List(); @@ -543,7 +543,7 @@ namespace WMS.Web.Domain.Services public async Task HandlBoxInventory(List dtoDatas, bool isTransaction) { //1.判断来源数据是否存在 - if (dtoDatas != null || dtoDatas.Count == 0) + if (dtoDatas == null || dtoDatas.Count == 0) return Result.ReFailure(ResultCodes.InventoryNoSourceError); var delete_ids = new List();