|
|
@@ -8,7 +8,8 @@
|
|
|
user3.real_name as checkUserName,
|
|
|
sb.name as sbName,part.name as partName,
|
|
|
sb.no as sbNo, sb.cph as sbCph, sb.model_id as modelId,
|
|
|
- error.name as repairErrorTypeName
|
|
|
+ error.name as repairErrorTypeName,
|
|
|
+ dept.name as deptName
|
|
|
</sql>
|
|
|
<select id="selectPageList" parameterType="com.platform.dao.dto.repair.RepairApplicationFormDTO"
|
|
|
resultType="com.platform.dao.vo.repair.RepairApplicationFormVO">
|
|
|
@@ -29,6 +30,7 @@
|
|
|
left join t_sys_user user4 on sb.repair_user = user4.user_id
|
|
|
left join t_error_type error on application.repair_error_type_id = error.id
|
|
|
left join t_part_info part on application.part_id = part.id
|
|
|
+ left join t_sys_dept dept on application.dept_id = dept.dept_id
|
|
|
<where>
|
|
|
<if test="keyword != null and keyword != ''">
|
|
|
and (
|
|
|
@@ -125,6 +127,9 @@
|
|
|
<if test="searchEndTime != null">
|
|
|
and application.apply_time <![CDATA[ <= ]]> #{searchEndTime}
|
|
|
</if>
|
|
|
+ <if test="deptId != null and deptId != ''">
|
|
|
+ and application.dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
<select id="selectById" parameterType="java.lang.Object"
|
|
|
@@ -138,6 +143,7 @@
|
|
|
left join t_sb_info sb on application.sb_id = sb.id
|
|
|
left join t_part_info part on application.part_id = part.id
|
|
|
left join t_error_type error on application.repair_error_type_id = error.id
|
|
|
+ left join t_sys_dept dept on application.dept_id = dept.dept_id
|
|
|
where application.id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|