From 94599b9c3aea00a8a8d27e33edc7bb2c227ca967 Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Sun, 29 Dec 2024 21:33:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=95=86=E5=93=81?= =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coal/warehouseGoods/service/WarehouseGoodsService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/cn/lihongjie/coal/warehouseGoods/service/WarehouseGoodsService.java b/src/main/java/cn/lihongjie/coal/warehouseGoods/service/WarehouseGoodsService.java index 98f46677..05b7403b 100644 --- a/src/main/java/cn/lihongjie/coal/warehouseGoods/service/WarehouseGoodsService.java +++ b/src/main/java/cn/lihongjie/coal/warehouseGoods/service/WarehouseGoodsService.java @@ -38,7 +38,6 @@ import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; @@ -162,7 +161,7 @@ public class WarehouseGoodsService max(d.price) filter ( where d.receipt_type = '1' ) as type_1_max_price, avg(d.price) filter ( where d.receipt_type = '1' ) as type_1_avg_price from t_warehouse_receipt_detail d - where id = :id + where goods_id = :id