|
|
|
@ -5,19 +5,21 @@
|
|
|
|
|
<mapper namespace="com.supervision.knowsub.mapper.KnowledgeSubmitRecordMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.supervision.knowsub.model.KnowledgeSubmitRecord">
|
|
|
|
|
<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="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"/>
|
|
|
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
|
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
|
|
<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"/>
|
|
|
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
|
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
|
|
</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,8 +28,9 @@
|
|
|
|
|
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
|
|
|
|
|
where t1.submit_user_id = #{userId}
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|