LEFT JOIN knowledgeCategory c ON b.parentCategoryID = c.knowledgeCategoryID
LEFT JOIN knowledgeCategory c ON b.parentCategoryID = c.knowledgeCategoryID
WHERE 1=1
WHERE 1=1
<choose>
<choose>
<whentest="newsParams.levels !=null">
<whentest="newsParams.levels !=null and newsParams.levels !=''">
AND a.levels = #{newsParams.levels}
AND a.levels = #{newsParams.levels}
</when>
</when>
<otherwise>
<otherwise>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<iftest="newsParams.status !=null and newsParams.status !=''">
<iftest="newsParams.status !=null and newsParams.status !=''">
and a.status =#{newsParams.status}
and a.status =#{newsParams.status}
</if>
</if>
<iftest="newsParams.releaseTimeStart !=null and newsParams.releaseTimeEnd !=null">
<iftest="newsParams.releaseTimeStart !=null and newsParams.releaseTimeEnd !=null and newsParams.releaseTimeStart !='' and newsParams.releaseTimeEnd !='' ">
and a.inputdate BETWEEN #{newsParams.releaseTimeStart} AND #{newsParams.releaseTimeEnd}
and a.inputdate BETWEEN #{newsParams.releaseTimeStart} AND #{newsParams.releaseTimeEnd}
</if>
</if>
<iftest="newsParams.parentCategoryId !=null and newsParams.parentCategoryId !=''">
<iftest="newsParams.parentCategoryId !=null and newsParams.parentCategoryId !=''">