From 9fb86c28d3c9e6305c39719fcdfc737f330613e3 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Fri, 16 Aug 2024 20:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E6=8F=90=E5=BA=93=E5=AD=98=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8D=E5=9C=A8=E6=9F=A5=E8=AF=A20=20?= =?UTF-8?q?=E7=9A=84=E5=BA=93=E5=AD=98=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DistributionStockListController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListController.java index b37e5d760..e86651894 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockListController.java @@ -16,6 +16,7 @@ */ package com.logpm.distribution.controller; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.logpm.distribution.dto.DistributionStockListDTO; @@ -79,7 +80,10 @@ public class DistributionStockListController extends BladeController { @ApiOperationSupport(order = 2) @ApiOperation(value = "分页", notes = "传入distributionStockList") public R> list(@ApiIgnore @RequestParam Map distributionStockList, Query query) { - IPage pages = distributionStockListService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionStockList, DistributionStockListEntity.class)); + + QueryWrapper queryWrapper = Condition.getQueryWrapper(distributionStockList, DistributionStockListEntity.class); + queryWrapper.ne("quantity_stock", 0); + IPage pages = distributionStockListService.page(Condition.getPage(query), queryWrapper); return R.data(pages); }