|
@@ -41,7 +41,7 @@
|
|
|
<select id="level1Knowledge" resultType="string">
|
|
|
select PK_ID
|
|
|
from KM_KNOWLEDGE_CATEGORY
|
|
|
- where PARENT = '0' and IS_DEL = 0
|
|
|
+ where PARENT = '0'
|
|
|
</select>
|
|
|
|
|
|
<select id="level1KnowledgeHistogram" resultType="int">
|
|
@@ -49,7 +49,7 @@
|
|
|
from KM_KNOWLEDGE
|
|
|
<where>
|
|
|
CATEGORY_ID IN (
|
|
|
- SELECT c.PK_ID FROM KM_KNOWLEDGE_CATEGORY c WHERE c.IS_DEL = 0 START WITH c.PK_ID = #{categoryId} CONNECT BY PRIOR c.PK_ID = c.PARENT and c.IS_DEL = 0
|
|
|
+ SELECT c.PK_ID FROM KM_KNOWLEDGE_CATEGORY c WHERE START WITH c.PK_ID = #{categoryId} CONNECT BY PRIOR c.PK_ID = c.PARENT
|
|
|
)
|
|
|
<if test="firstDay != null and lastDay != null">
|
|
|
and TO_CHAR(CREATE_TIME_,'yyyy-mm-dd') >= #{firstDay}
|