|
|
@@ -64,6 +64,7 @@
|
|
|
fpd.brand_item AS brandItem,
|
|
|
fpd.cname_int AS cnameInt,
|
|
|
fpd.inventory AS inventoryLocal,
|
|
|
+ fpd.suggestedRetailPrice,
|
|
|
(SELECT IFNULL(SUM(smd.inventory), 0.00) allInventory
|
|
|
FROM pjpf_shopping_mall_detail smd
|
|
|
WHERE smd.goods_code = fpd.goods_code
|
|
|
@@ -121,7 +122,19 @@
|
|
|
and fpd.inventory > #{inventoryStatus}
|
|
|
</if>
|
|
|
GROUP BY
|
|
|
- fpd.goods_code
|
|
|
+ fpd.goods_code,
|
|
|
+ fpd.id,
|
|
|
+ fpd.goods_name ,
|
|
|
+ fpd.bill_type ,
|
|
|
+ fpd.brand_id ,
|
|
|
+ fpd.price_one,
|
|
|
+ fpd.price_two,
|
|
|
+ fpd.price_three ,
|
|
|
+ fpd.price_four ,
|
|
|
+ fpd.brand_item ,
|
|
|
+ fpd.cname_int ,
|
|
|
+ fpd.inventory,
|
|
|
+ fpd.suggestedRetailPrice
|
|
|
) AS allGoods
|
|
|
<if test="brandId != null or brandName != null and brandName != ''">
|
|
|
order by cnameInt, sort DESC
|