diff --git a/framework/src/main/java/cn/lili/modules/goods/entity/dto/GoodsSearchParams.java b/framework/src/main/java/cn/lili/modules/goods/entity/dto/GoodsSearchParams.java index 9e30d21da..7c5ce6e73 100644 --- a/framework/src/main/java/cn/lili/modules/goods/entity/dto/GoodsSearchParams.java +++ b/framework/src/main/java/cn/lili/modules/goods/entity/dto/GoodsSearchParams.java @@ -132,7 +132,7 @@ public class GoodsSearchParams extends PageVO { queryWrapper.le("quantity", leQuantity); } if (geQuantity != null) { - queryWrapper.ge("quantity", geQuantity); + queryWrapper.gt("quantity", geQuantity); } if (recommend != null) { queryWrapper.le("recommend", recommend); @@ -145,6 +145,7 @@ public class GoodsSearchParams extends PageVO { } if(alertQuantity != null && alertQuantity){ queryWrapper.apply("quantity <= alert_quantity"); + queryWrapper.ge("alert_quantity", 0); } queryWrapper.in(CollUtil.isNotEmpty(ids), "id", ids); diff --git a/framework/src/main/java/cn/lili/modules/statistics/service/GoodsStatisticsService.java b/framework/src/main/java/cn/lili/modules/statistics/service/GoodsStatisticsService.java index 19f3b00fe..a6a4653de 100644 --- a/framework/src/main/java/cn/lili/modules/statistics/service/GoodsStatisticsService.java +++ b/framework/src/main/java/cn/lili/modules/statistics/service/GoodsStatisticsService.java @@ -28,6 +28,10 @@ public interface GoodsStatisticsService extends IService { */ long todayUpperNum(); + /** + * 预警库存数 + * @return + */ long alertQuantityNum(); } \ No newline at end of file diff --git a/framework/src/main/java/cn/lili/modules/statistics/serviceimpl/GoodsStatisticsServiceImpl.java b/framework/src/main/java/cn/lili/modules/statistics/serviceimpl/GoodsStatisticsServiceImpl.java index b6afc59b7..2192cf81a 100644 --- a/framework/src/main/java/cn/lili/modules/statistics/serviceimpl/GoodsStatisticsServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/statistics/serviceimpl/GoodsStatisticsServiceImpl.java @@ -68,6 +68,7 @@ public class GoodsStatisticsServiceImpl extends ServiceImpl