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