|
|
@ -37,8 +37,8 @@ |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test="req.templateStatus ==0"> |
|
|
|
<if test="req.isDisable != null and req.isDisable != '' or req.isDisable==0"> |
|
|
|
AND c.is_disable = #{req.templateStatus} |
|
|
|
AND c.is_disable = #{req.isDisable} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -59,7 +59,6 @@ |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -162,24 +161,20 @@ |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="columnConditionsFilterArticles" resultType="com.huoran.iasf.vo.resp.PageContentRespVO"> |
|
|
|
<select id="columnConditionsFilterArticles" resultType="com.huoran.iasf.vo.resp.PageContentRespVO"> |
|
|
|
SELECT |
|
|
|
SELECT t.*, |
|
|
|
t.*, |
|
|
|
(SELECT cl.list_style_id FROM sys_column cl WHERE cl.id = t.column_id) AS listStyleId |
|
|
|
( SELECT cl.list_style_id FROM sys_column cl WHERE cl.id = t.column_id ) AS listStyleId |
|
|
|
FROM (SELECT s.*, |
|
|
|
FROM |
|
|
|
(SELECT GROUP_CONCAT(label_name) |
|
|
|
( |
|
|
|
FROM sys_content_label l |
|
|
|
SELECT |
|
|
|
WHERE deleted = 1 AND FIND_IN_SET(l.id, s.lable_id)) AS labelName, |
|
|
|
s.*, |
|
|
|
(SELECT c.classification_name |
|
|
|
( SELECT GROUP_CONCAT( label_name ) FROM sys_content_label l WHERE deleted = 1 AND FIND_IN_SET( l.id, s.lable_id ) ) AS labelName, |
|
|
|
FROM sys_content_classification c |
|
|
|
( SELECT c.classification_name FROM sys_content_classification c WHERE deleted = 1 AND s.classification_id = c.id ) AS classificationName |
|
|
|
WHERE deleted = 1 AND s.classification_id = c.id) AS classificationName |
|
|
|
FROM |
|
|
|
FROM sys_content s |
|
|
|
sys_content s |
|
|
|
WHERE s.deleted = 1 |
|
|
|
WHERE |
|
|
|
|
|
|
|
s.deleted = 1 |
|
|
|
|
|
|
|
AND is_disable = 0 |
|
|
|
AND is_disable = 0 |
|
|
|
AND is_release = 1 |
|
|
|
AND is_release = 1) t |
|
|
|
) t |
|
|
|
WHERE FIND_IN_SET(t.column_id, #{columnId}) |
|
|
|
WHERE |
|
|
|
|
|
|
|
FIND_IN_SET( t.column_id, #{columnId} ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ORDER BY t.release_time DESC |
|
|
|
ORDER BY t.release_time DESC |
|
|
|
</select> |
|
|
|
</select> |
|
|
|