Browse Source

草稿列表不查询已发布文章的

dev
sunyuchao 3 years ago
parent
commit
ce8b83d33d
  1. 3
      epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/DraftDao.xml

3
epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/DraftDao.xml

@ -201,7 +201,8 @@
draft a draft a
LEFT JOIN draft_cover ac ON a.id = ac.draft_id AND ac.del_flag = '0' LEFT JOIN draft_cover ac ON a.id = ac.draft_id AND ac.del_flag = '0'
WHERE WHERE
a.del_flag = '0' a.del_flag = '0'
AND (a.STATUS_FLAG = 'unpublish' OR a.STATUS_FLAG = 'auditfail')
<if test="draftId != null and draftId != '' "> <if test="draftId != null and draftId != '' ">
AND a.id = #{draftId} AND a.id = #{draftId}
</if> </if>

Loading…
Cancel
Save