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