|
|
@@ -25,6 +25,7 @@
|
|
|
<result column="status" property="status"/>
|
|
|
<result column="sb_status" property="sbStatus"/>
|
|
|
<result column="check_user_id" property="checkUserId"/>
|
|
|
+ <result column="check_dept_id" property="checkDeptId"/>
|
|
|
<result column="created_user_id" property="createdUserId"/>
|
|
|
<result column="update_user_id" property="updateUserId"/>
|
|
|
<result column="created_user_name" property="createdUserName"/>
|
|
|
@@ -50,6 +51,7 @@
|
|
|
<result column="periodType" property="periodType"/>
|
|
|
<result column="positionId" property="positionId"/>
|
|
|
<result column="positionName" property="positionName"/>
|
|
|
+ <result column="checkDeptName" property="checkDeptName"/>
|
|
|
|
|
|
<collection property="requirementList" ofType="com.platform.dao.entity.check.CheckRequirement">
|
|
|
<id column="requirement_id" property="id" />
|
|
|
@@ -79,6 +81,7 @@
|
|
|
checkjob.sb_status,
|
|
|
checkjob.receive_overtime,
|
|
|
checkjob.check_user_id,
|
|
|
+ checkjob.check_dept_id,
|
|
|
checkjob.created_user_id,
|
|
|
checkjob.update_user_id,
|
|
|
checkjob.created_user_name,
|
|
|
@@ -94,6 +97,7 @@
|
|
|
checkjob.start_time,
|
|
|
checkjob.type,
|
|
|
checkjob.check_user_id,
|
|
|
+ checkjob.check_dept_id,
|
|
|
checkjob.end_time,
|
|
|
checkjob.actual_start_time,
|
|
|
checkjob.actual_end_time,
|
|
|
@@ -232,6 +236,9 @@
|
|
|
<if test="checkUserId != null and checkUserId != ''">
|
|
|
and checkjob.check_user_id = #{checkUserId}
|
|
|
</if>
|
|
|
+ <if test="checkDeptId != null and checkDeptId != ''">
|
|
|
+ and checkjob.check_dept_id = #{checkDeptId}
|
|
|
+ </if>
|
|
|
<if test="type != null and type != ''">
|
|
|
and checkjob.type = #{type}
|
|
|
</if>
|
|
|
@@ -408,6 +415,9 @@
|
|
|
<if test="checkUserId != null and checkUserId != ''">
|
|
|
and checkjob_inner.check_user_id = #{checkUserId}
|
|
|
</if>
|
|
|
+ <if test="checkDeptId != null and checkDeptId != ''">
|
|
|
+ and checkjob_inner.check_dept_id = #{checkDeptId}
|
|
|
+ </if>
|
|
|
<if test="type != null and type != ''">
|
|
|
and checkjob_inner.type = #{type}
|
|
|
</if>
|
|
|
@@ -476,6 +486,7 @@
|
|
|
checkjob.status as status,
|
|
|
checkjob.sb_status as sb_status,
|
|
|
checkjob.check_user_id as check_user_id,
|
|
|
+ checkjob.check_dept_id as check_dept_id,
|
|
|
checkjob.created_user_id as created_user_id,
|
|
|
checkjob.update_user_id as update_user_id,
|
|
|
checkjob.created_user_name as created_user_name,
|
|
|
@@ -488,6 +499,7 @@
|
|
|
checkjob.receive_overtime as receive_overtime,
|
|
|
checkjob.con_task as con_task,
|
|
|
u.real_name as checkUserName,
|
|
|
+ dept.name as checkDeptName,
|
|
|
sbinfo.name as sbName,
|
|
|
sbinfo.no as sbNo,
|
|
|
sbinfo.level as sbLevel,
|
|
|
@@ -515,6 +527,7 @@
|
|
|
left join t_part_info partinfo on partinfo.id = checkjob.part_id
|
|
|
left join t_check_standard standard on standard.id = checkjob.standard_id
|
|
|
left join t_sys_user u on checkjob.check_user_id = u.user_id
|
|
|
+ left join t_sys_dept dept on checkjob.check_dept_id = dept.dept_id
|
|
|
left join t_sb_position position on position.id = sbinfo.position_id
|
|
|
left join t_check_standard_requirement csr on csr.standard_id = standard.id
|
|
|
left join t_check_requirement cr on cr.id = csr.requirement_id
|
|
|
@@ -570,6 +583,7 @@
|
|
|
checkjob.status as status,
|
|
|
checkjob.sb_status as sb_status,
|
|
|
checkjob.check_user_id as check_user_id,
|
|
|
+ checkjob.check_dept_id as check_dept_id,
|
|
|
checkjob.created_user_id as created_user_id,
|
|
|
checkjob.update_user_id as update_user_id,
|
|
|
checkjob.created_user_name as created_user_name,
|
|
|
@@ -582,6 +596,7 @@
|
|
|
checkjob.receive_overtime as receive_overtime,
|
|
|
checkjob.con_task as con_task,
|
|
|
u.real_name as checkUserName,
|
|
|
+ dept.name as checkDeptName,
|
|
|
sbinfo.name as sbName,
|
|
|
sbinfo.no as sbNo,
|
|
|
sbinfo.level as sbLevel,
|
|
|
@@ -610,6 +625,7 @@
|
|
|
left join t_part_info partinfo on partinfo.id = checkjob.part_id
|
|
|
left join t_check_standard standard on standard.id = checkjob.standard_id
|
|
|
left join t_sys_user u on checkjob.check_user_id = u.user_id
|
|
|
+ left join t_sys_dept dept on checkjob.check_dept_id = dept.dept_id
|
|
|
left join t_sb_position position on position.id = sbinfo.position_id
|
|
|
<!-- 关联保养要求表 -->
|
|
|
left join t_check_standard_requirement csr on csr.standard_id = standard.id
|
|
|
@@ -667,6 +683,7 @@
|
|
|
checkjob.status as status,
|
|
|
checkjob.sb_status as sb_status,
|
|
|
checkjob.check_user_id as check_user_id,
|
|
|
+ checkjob.check_dept_id as check_dept_id,
|
|
|
checkjob.created_user_id as created_user_id,
|
|
|
checkjob.update_user_id as update_user_id,
|
|
|
checkjob.created_user_name as created_user_name,
|
|
|
@@ -679,6 +696,7 @@
|
|
|
checkjob.receive_overtime as receive_overtime,
|
|
|
checkjob.con_task as con_task,
|
|
|
u.real_name as checkUserName,
|
|
|
+ dept.name as checkDeptName,
|
|
|
sbinfo.name sbName,
|
|
|
sbinfo.no sbNo,
|
|
|
sbinfo.level sbLevel,
|
|
|
@@ -694,6 +712,7 @@
|
|
|
left join t_part_info partinfo on partinfo.id = checkjob.part_id
|
|
|
left join t_check_standard standard on standard.id = checkjob.standard_id
|
|
|
left join t_sys_user u on checkjob.check_user_id = u.user_id
|
|
|
+ left join t_sys_dept dept on checkjob.check_dept_id = dept.dept_id
|
|
|
where checkjob.id = #{id}
|
|
|
</select>
|
|
|
|
|
|
@@ -730,6 +749,7 @@
|
|
|
checkjob.status as status,
|
|
|
checkjob.sb_status as sb_status,
|
|
|
checkjob.check_user_id as check_user_id,
|
|
|
+ checkjob.check_dept_id as check_dept_id,
|
|
|
checkjob.created_user_id as created_user_id,
|
|
|
checkjob.update_user_id as update_user_id,
|
|
|
checkjob.created_user_name as created_user_name,
|
|
|
@@ -793,6 +813,7 @@
|
|
|
checkjob.status as status,
|
|
|
checkjob.sb_status as sb_status,
|
|
|
checkjob.check_user_id as check_user_id,
|
|
|
+ checkjob.check_dept_id as check_dept_id,
|
|
|
checkjob.created_user_id as created_user_id,
|
|
|
checkjob.update_user_id as update_user_id,
|
|
|
checkjob.created_user_name as created_user_name,
|
|
|
@@ -850,6 +871,7 @@
|
|
|
checkjob.status as status,
|
|
|
checkjob.sb_status as sb_status,
|
|
|
checkjob.check_user_id as check_user_id,
|
|
|
+ checkjob.check_dept_id as check_dept_id,
|
|
|
checkjob.created_user_id as created_user_id,
|
|
|
checkjob.update_user_id as update_user_id,
|
|
|
checkjob.created_user_name as created_user_name,
|
|
|
@@ -862,6 +884,7 @@
|
|
|
checkjob.receive_overtime as receive_overtime,
|
|
|
checkjob.con_task as con_task,
|
|
|
u.real_name as checkUserName,
|
|
|
+ dept.name as checkDeptName,
|
|
|
sbinfo.name as sbName,
|
|
|
sbinfo.no as sbNo,
|
|
|
sbinfo.level as sbLevel,
|
|
|
@@ -889,6 +912,7 @@
|
|
|
left join t_part_info partinfo on partinfo.id = checkjob.part_id
|
|
|
left join t_check_standard standard on standard.id = checkjob.standard_id
|
|
|
left join t_sys_user u on checkjob.check_user_id = u.user_id
|
|
|
+ left join t_sys_dept dept on checkjob.check_dept_id = dept.dept_id
|
|
|
left join t_sb_position position on position.id = sbinfo.position_id
|
|
|
left join t_check_standard_requirement csr on csr.standard_id = standard.id
|
|
|
left join t_check_requirement cr on cr.id = csr.requirement_id
|
|
|
@@ -930,6 +954,7 @@
|
|
|
checkjob.status as status,
|
|
|
checkjob.sb_status as sb_status,
|
|
|
checkjob.check_user_id as check_user_id,
|
|
|
+ checkjob.check_dept_id as check_dept_id,
|
|
|
checkjob.created_user_id as created_user_id,
|
|
|
checkjob.update_user_id as update_user_id,
|
|
|
checkjob.created_user_name as created_user_name,
|
|
|
@@ -942,6 +967,7 @@
|
|
|
checkjob.receive_overtime as receive_overtime,
|
|
|
checkjob.con_task as con_task,
|
|
|
u.real_name as checkUserName,
|
|
|
+ dept.name as checkDeptName,
|
|
|
sbinfo.name as sbName,
|
|
|
sbinfo.no as sbNo,
|
|
|
sbinfo.level as sbLevel,
|
|
|
@@ -969,6 +995,7 @@
|
|
|
left join t_part_info partinfo on partinfo.id = checkjob.part_id
|
|
|
left join t_check_standard standard on standard.id = checkjob.standard_id
|
|
|
left join t_sys_user u on checkjob.check_user_id = u.user_id
|
|
|
+ left join t_sys_dept dept on checkjob.check_dept_id = dept.dept_id
|
|
|
left join t_sb_position position on position.id = sbinfo.position_id
|
|
|
left join t_check_standard_requirement csr on csr.standard_id = standard.id
|
|
|
left join t_check_requirement cr on cr.id = csr.requirement_id and cr.status = 1
|