feat: 增加商品价格接口

This commit is contained in:
2024-12-29 21:33:31 +08:00
parent ed16e86aa6
commit 94599b9c3a

View File

@@ -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