Merge branch 'feature/bug-1333' into feature/quotation
This commit is contained in:
commit
5f61508ac8
|
|
@ -6,7 +6,7 @@
|
||||||
SELECT pmvi.*
|
SELECT pmvi.*
|
||||||
FROM product_model_video pmv
|
FROM product_model_video pmv
|
||||||
INNER JOIN product_model_video_item pmvi ON pmv.id=pmvi.model_video_id
|
INNER JOIN product_model_video_item pmvi ON pmv.id=pmvi.model_video_id
|
||||||
WHERE pmv.state=1 AND pmv.`enable`=1 AND pmv.model_id=#{modelId} AND pmvi.language_code=#{language} and LENGTH(pmvi.video)>0
|
WHERE pmv.state=1 AND pmv.`enable`=1 AND pmv.model_id=#{modelId} AND pmvi.language_code=#{language} and (LENGTH(pmvi.video)>0 or LENGTH(pmvi.image)>0)
|
||||||
ORDER BY pmv.sort DESC
|
ORDER BY pmv.sort DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue