From 1385b128cbbb0f6f5a42b4391309a5beac4d5983 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 02 一月 2025 14:29:05 +0800
Subject: [PATCH] 定时任务

---
 manage/src/main/java/com/jilongda/manage/controller/TWarehousingController.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/manage/src/main/java/com/jilongda/manage/controller/TWarehousingController.java b/manage/src/main/java/com/jilongda/manage/controller/TWarehousingController.java
index c1e09dc..051a1d1 100644
--- a/manage/src/main/java/com/jilongda/manage/controller/TWarehousingController.java
+++ b/manage/src/main/java/com/jilongda/manage/controller/TWarehousingController.java
@@ -80,6 +80,7 @@
                 .eq(StringUtils.hasLength(getCurrentByParam.getColor()),TModel::getColor,getCurrentByParam.getColor())
                 .eq(Objects.nonNull(getCurrentByParam.getBrandId()),TModel::getBrandId,getCurrentByParam.getBrandId())
                 .list().stream().map(TModel::getId).collect(Collectors.toList());
+        if (collect.isEmpty())collect.add(-1);
         TFrameGoods one = frameGoodsService.lambdaQuery().in(TFrameGoods::getModelId, collect)
                 .eq(TFrameGoods::getColor, getCurrentByParam.getColor())
                 .eq(TFrameGoods::getStoreId, getCurrentByParam.getStoreId()).one();
@@ -91,7 +92,7 @@
     @ApiOperation(value = "镜片-根据系列id、球/非球、品牌id、折射率、ballMirror、columnMirror查询当前库存")
     @PostMapping(value = "/getCurrentByParamLens")
     public ApiResult<Integer> getCurrentByParamLens(@RequestBody GetCurrentByParamLens dto) {
-        TLensGoods one = lensGoodsService.lambdaQuery().in(TLensGoods::getSeriesId, dto.getSeriesId())
+        TLensGoods one = lensGoodsService.lambdaQuery().eq(TLensGoods::getSeriesId, dto.getSeriesId())
                 .eq(dto.getLensType()!=null,TLensGoods::getLensType, dto.getLensType())
                 .eq(dto.getRefractiveIndex()!=null,TLensGoods::getRefractiveIndex, dto.getRefractiveIndex())
                 .eq(dto.getBallMirror()!=null,TLensGoods::getBallMirror, dto.getBallMirror())

--
Gitblit v1.7.1