|
@@ -378,7 +378,35 @@
|
|
|
|
|
|
<select id="getSeconHandProductList" resultType="com.caimei.module.base.entity.po.SeconHandProduct">
|
|
|
SELECT
|
|
|
- IF(p.brandID != 161,cb.name ,cshd.brandName) as "brandName",p.*,cshd.*
|
|
|
+ IF(p.brandID != 161,cb.name ,cshd.brandName) as "brandName",p.*,
|
|
|
+ a.sold AS "sold",
|
|
|
+ cshd.secondHandType AS "secondHandType",
|
|
|
+ cshd.instrumentType AS "instrumentType",
|
|
|
+ cshd.fixedYears AS "fixedYears",
|
|
|
+ cshd.maturityYears AS "maturityYears",
|
|
|
+ cshd.companyName AS "companyName",
|
|
|
+ cshd.detailTalkFlag AS "detailTalkFlag",
|
|
|
+ cshd.originalPrice AS "originalPrice",
|
|
|
+ cshd.contactName AS "contactName",
|
|
|
+ cshd.contactMobile AS "contactMobile",
|
|
|
+ cshd.secondProductType AS "secondProductType",
|
|
|
+ cshd.provinceCityDistrict AS "provinceCityDistrict",
|
|
|
+ cshd.townId as "townId",
|
|
|
+ cshd.address AS "address",
|
|
|
+ cshd.productQuality AS "productQuality",
|
|
|
+ cshd.productDetails AS "productDetails",
|
|
|
+ cshd.viewingNum AS "viewingNum",
|
|
|
+ cshd.brandName AS "brandName",
|
|
|
+ cshd.payStatus AS "payStatus",
|
|
|
+ cshd.payAmount AS "payAmount",
|
|
|
+ cshd.payFormData AS "payFormData",
|
|
|
+ cshd.payType AS "payType",
|
|
|
+ cshd.payDate AS "payDate",
|
|
|
+ cshd.submitDate AS "submitDate",
|
|
|
+ cshd.reviewedDate AS "reviewedDate",
|
|
|
+ cshd.onLineDate AS "onLineDate",
|
|
|
+ cshd.source AS "source",
|
|
|
+ cshd.showContactFlag AS "showContactFlag",
|
|
|
FROM
|
|
|
product p
|
|
|
LEFT JOIN cm_second_hand_detail cshd ON p.productID = cshd.productID
|