|
|
|
@ -159,11 +159,14 @@ |
|
|
|
dp.detail_desc, |
|
|
|
dps.unit_original_price, |
|
|
|
dps.unit_selling_price, |
|
|
|
dpst2.`value` as validityPeriodDays |
|
|
|
dpst3.`value` as validityPeriodDays, |
|
|
|
dpst5.`value` as liveDurationHours |
|
|
|
from da_product as dp |
|
|
|
LEFT JOIN da_product_spec as dps on dps.is_delete=0 and dps.product_id=dp.id |
|
|
|
LEFT JOIN da_product_spec_term as dpst2 on dpst2.is_delete=0 and dpst2.product_spec_id =dps.id and |
|
|
|
dpst2.`name`=3 |
|
|
|
LEFT JOIN da_product_spec_term as dpst3 on dpst3.is_delete=0 and dpst3.product_spec_id =dps.id and |
|
|
|
dpst3.`name`=3 |
|
|
|
LEFT JOIN da_product_spec_term as dpst5 on dpst5.is_delete=0 and dpst5.product_spec_id =dps.id and |
|
|
|
dpst5.`name`=5 |
|
|
|
where dp.is_delete=0 and dp.`status`=1 and dp.product_type=3 |
|
|
|
<if test="queryParam.subCategory != null"> |
|
|
|
AND dp.sub_category = #{queryParam.subCategory} |
|
|
|
|