|
@@ -368,7 +368,7 @@
|
|
|
|
|
|
<select id="getSeconHandProductList" resultType="com.caimei.module.base.entity.po.SeconHandProduct">
|
|
|
SELECT
|
|
|
- *,IF(p.brandID != 161,cb.name ,cshd.brandName) as "brandName"
|
|
|
+ IF(p.brandID != 161,cb.name ,cshd.brandName) as "brandName",p.*,cb.*,cshd.*
|
|
|
FROM
|
|
|
product p
|
|
|
LEFT JOIN cm_second_hand_detail cshd ON p.productID = cshd.productID
|
|
@@ -386,7 +386,7 @@
|
|
|
</select>
|
|
|
<select id="getSencondHandProductDetail" resultType="com.caimei.module.base.entity.po.SeconHandProduct">
|
|
|
SELECT
|
|
|
- *,cb.name as "brandName"
|
|
|
+ IF(p.brandID != 161,cb.name ,cshd.brandName) as "brandName",p.*,cb.*,cshd.*,cb.description as "brandInfo"
|
|
|
FROM
|
|
|
product p
|
|
|
LEFT JOIN cm_second_hand_detail cshd ON p.productID = cshd.productID
|