From dc9adc975cdd34e4e11e9547971fd4aca8a12460 Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Fri, 15 Mar 2024 16:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/WeighingService/Services/WeighingService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs index 03196ae..42c131c 100644 --- a/BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs +++ b/BPA.SAAS.Manage.Application/AExternalPlatform/Service/WeighingService/Services/WeighingService.cs @@ -20,7 +20,9 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.WeighingService. public async Task> GetGoodsInfo() { //获取商品类型 - var goodsType = await SqlSugarDb.Db.Queryable().OrderBy(x => x.Sort) + var goodsType = await SqlSugarDb.Db.Queryable() + .OrderBy(x => x.Sort) + .Where(x=>x.IsDeleted==0) .Select(x => new GoodsTypeDto() { Id = x.Id, @@ -30,6 +32,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.WeighingService. //获取商品 var goodsList = await SqlSugarDb.Db.Queryable().OrderBy(x => x.Sort) + .Where(x => x.IsDeleted == 0) .Select(x => new GoodsDto() { Id = x.Id,