|
|
|
@ -46,8 +46,8 @@
|
|
|
|
|
where 1 = 1
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="status == null">
|
|
|
|
|
-- 如果为空,是查全部通过的,不分人(驳回的删除和撤回,其实也属于正常上线的)
|
|
|
|
|
and ( status = 2 or status = 16 or status = 17 )
|
|
|
|
|
-- 如果为空,是查全部通过的,不分人(驳回的删除和撤回审核中的,其实也属于正常上线的)
|
|
|
|
|
and ( status in (2 , 16 , 17 , 11 , 12) )
|
|
|
|
|
</when>
|
|
|
|
|
<when test="status == 1">
|
|
|
|
|
-- 如果是1,只查自己的草稿
|
|
|
|
@ -92,12 +92,12 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="queryKnowledgeInvalidList" resultType="com.supervision.knowsub.dto.knowledge.CheckInvalidDTO">
|
|
|
|
|
select t1.id as knowledgeId,
|
|
|
|
|
t1.title as title,
|
|
|
|
|
t1.status as status,
|
|
|
|
|
t2.timeliness as timeliness,
|
|
|
|
|
t2.exec_time_begin as execTimeBegin,
|
|
|
|
|
t2.exec_time_end as execTimeEnd
|
|
|
|
|
select t1.id as knowledgeId,
|
|
|
|
|
t1.title as title,
|
|
|
|
|
t1.status as status,
|
|
|
|
|
t2.timeliness as timeliness,
|
|
|
|
|
t2.exec_time_begin as execTimeBegin,
|
|
|
|
|
t2.exec_time_end as execTimeEnd
|
|
|
|
|
from ks_knowledge t1
|
|
|
|
|
left join ks_knowledge_info t2 on t1.info_id = t2.id
|
|
|
|
|
where status = 2
|
|
|
|
|