|
|
|
@ -8,6 +8,7 @@
|
|
|
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="knowledgeId" column="knowledge_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="flowId" column="flow_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="flowType" column="flow_type" jdbcType="INTEGER"/>
|
|
|
|
|
<result property="submitUserId" column="submit_user_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="submitDeptId" column="submit_dept_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
|
|
|
@ -17,7 +18,8 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id,knowledge_id,flow_id,
|
|
|
|
|
id
|
|
|
|
|
,knowledge_id,flow_id,
|
|
|
|
|
submit_user_id,submit_dept_id,create_user_id,
|
|
|
|
|
create_time,update_user_id,update_time
|
|
|
|
|
</sql>
|
|
|
|
@ -26,7 +28,8 @@
|
|
|
|
|
from ks_knowledge_submit_record t1
|
|
|
|
|
left join (select flow_id, knowledge_id
|
|
|
|
|
from ks_knowledge_flow_todo
|
|
|
|
|
group by flow_id, knowledge_id) t3 on t1.flow_id = t3.flow_id and t1.knowledge_id = t3.knowledge_id
|
|
|
|
|
group by flow_id, knowledge_id) t3
|
|
|
|
|
on t1.flow_id = t3.flow_id and t1.knowledge_id = t3.knowledge_id
|
|
|
|
|
where t1.submit_user_id = #{userId}
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|