|
|
@ -97,7 +97,7 @@ |
|
|
LEFT JOIN da_product_spec_term as dpst2 on dpst2.is_delete=0 and dpst2.product_spec_id =ps.id and dpst2.`name`=3 |
|
|
LEFT JOIN da_product_spec_term as dpst2 on dpst2.is_delete=0 and dpst2.product_spec_id =ps.id and dpst2.`name`=3 |
|
|
LEFT JOIN da_product_spec_term as dpst3 on dpst3.is_delete=0 and dpst3.product_spec_id =ps.id and dpst3.`name`=2 |
|
|
LEFT JOIN da_product_spec_term as dpst3 on dpst3.is_delete=0 and dpst3.product_spec_id =ps.id and dpst3.`name`=2 |
|
|
LEFT JOIN da_product_spec_term as dpst4 on dpst4.is_delete=0 and dpst4.product_spec_id =ps.id and dpst4.`name`=4 |
|
|
LEFT JOIN da_product_spec_term as dpst4 on dpst4.is_delete=0 and dpst4.product_spec_id =ps.id and dpst4.`name`=4 |
|
|
WHERE a.is_delete = 0 AND a.status = 1 AND a.start_time <= NOW() AND a.end_time >= NOW() |
|
|
|
|
|
|
|
|
WHERE a.is_delete = 0 AND a.status = 1 AND a.start_time <= NOW() AND a.end_time >= NOW() AND a.display = 0 |
|
|
<if test="id != null and id != ''"> |
|
|
<if test="id != null and id != ''"> |
|
|
AND a.id = #{id} |
|
|
AND a.id = #{id} |
|
|
</if> |
|
|
</if> |
|
|
@ -125,7 +125,7 @@ |
|
|
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 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`=2 |
|
|
LEFT JOIN da_product_spec_term as dpst3 on dpst3.is_delete=0 and dpst3.product_spec_id =dps.id and dpst3.`name`=2 |
|
|
LEFT JOIN da_product_spec_term as dpst4 on dpst4.is_delete=0 and dpst4.product_spec_id =dps.id and dpst4.`name`=4 |
|
|
LEFT JOIN da_product_spec_term as dpst4 on dpst4.is_delete=0 and dpst4.product_spec_id =dps.id and dpst4.`name`=4 |
|
|
where dp.is_delete=0 and dp.`status`=1 and dp.product_type=2 |
|
|
|
|
|
|
|
|
where dp.is_delete=0 and dp.`status`=1 and dp.product_type=2 AND dp.display = 0 |
|
|
<if test="id != null and id != ''"> |
|
|
<if test="id != null and id != ''"> |
|
|
AND dp.id = #{id} |
|
|
AND dp.id = #{id} |
|
|
</if> |
|
|
</if> |
|
|
|