|
@ -28,8 +28,13 @@ |
|
|
<select id="selectTopicDraftByGroup" resultType="com.epmet.resi.group.dto.topic.result.TopicAuditResultDTO"> |
|
|
<select id="selectTopicDraftByGroup" resultType="com.epmet.resi.group.dto.topic.result.TopicAuditResultDTO"> |
|
|
SELECT ID AS topicDraftId, |
|
|
SELECT ID AS topicDraftId, |
|
|
TOPIC_CONTENT AS topicContent, |
|
|
TOPIC_CONTENT AS topicContent, |
|
|
CREATED_BY AS userName, |
|
|
<if test="status == 'review'"> |
|
|
UNIX_TIMESTAMP(CREATED_TIME) AS releaseTime |
|
|
UNIX_TIMESTAMP(CREATED_TIME) AS releaseTime, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="status == 'rejected'"> |
|
|
|
|
|
UNIX_TIMESTAMP(UPDATED_TIME) AS releaseTime, |
|
|
|
|
|
</if> |
|
|
|
|
|
CREATED_BY AS userName |
|
|
FROM |
|
|
FROM |
|
|
topic_draft |
|
|
topic_draft |
|
|
WHERE |
|
|
WHERE |
|
@ -41,6 +46,13 @@ |
|
|
<if test="status == 'rejected'"> |
|
|
<if test="status == 'rejected'"> |
|
|
AND (DRAFT_STATUS = 'block' OR DRAFT_STATUS = 'rejected') |
|
|
AND (DRAFT_STATUS = 'block' OR DRAFT_STATUS = 'rejected') |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
ORDER BY |
|
|
|
|
|
<if test="status == 'review'"> |
|
|
|
|
|
CREATED_TIME DESC |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="status == 'rejected'"> |
|
|
|
|
|
UPDATED_TIME DESC |
|
|
|
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectTopicDraftDetail" resultType="com.epmet.resi.group.dto.topic.result.DraftDetailResultDTO"> |
|
|
<select id="selectTopicDraftDetail" resultType="com.epmet.resi.group.dto.topic.result.DraftDetailResultDTO"> |
|
|
|
|
|
|
|
|