From 6cd141c34337214ceb63f96686cb9dcb71784234 Mon Sep 17 00:00:00 2001 From: lihongjie0209 Date: Tue, 12 Nov 2024 23:10:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BA=93=E5=AD=98=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/WarehouseGoodsSummaryEntity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cn/lihongjie/coal/warehouseGoodsSummary/entity/WarehouseGoodsSummaryEntity.java b/src/main/java/cn/lihongjie/coal/warehouseGoodsSummary/entity/WarehouseGoodsSummaryEntity.java index 3a68d77a..fd5a355c 100644 --- a/src/main/java/cn/lihongjie/coal/warehouseGoodsSummary/entity/WarehouseGoodsSummaryEntity.java +++ b/src/main/java/cn/lihongjie/coal/warehouseGoodsSummary/entity/WarehouseGoodsSummaryEntity.java @@ -51,14 +51,14 @@ select d.warehouse_id as warehouse_id, count(d.id) over (partition by g.id) as detail_count, round((sum(d.number) filter ( where d.receipt_type = '0' ) over (partition by g.id, d.warehouse_id))::numeric, - 2) as type0_number, + 2) as type0number, round((sum(d.number) filter ( where d.receipt_type = '1' ) over (partition by g.id, d.warehouse_id))::numeric, - 2) as type1_number, + 2) as type1number, round((sum(d.amount) filter ( where d.receipt_type = '0' ) over (partition by g.id, d.warehouse_id))::numeric, - 2) as type0_amount, + 2) as type0amount, round((sum(d.amount) filter ( where d.receipt_type = '1' ) over (partition by g.id, d.warehouse_id))::numeric, - 2) as type1_amount + 2) as type1amount from t_warehouse_goods g inner join t_warehouse_receipt_detail d on d.goods_id = g.id and d.organization_id = g.organization_id