|
|
@@ -318,11 +318,11 @@
|
|
|
${repairOrder.params.businessDataScope}
|
|
|
</if>
|
|
|
<!-- 限制待下发工单只能创建人本部门查看 -->
|
|
|
- <if test="repairOrder.createBy != null and repairOrder.createBy != ''">
|
|
|
+ <if test="repairOrder.params.currentUser != null and repairOrder.params.currentUser != ''">
|
|
|
and ((t.work_order_status != 'to_issue' and t.work_order_status != 'accept_return') or t.create_by in
|
|
|
(select user_name from sys_user t1
|
|
|
left join sys_dept t2 on t1.dept_id = t2.dept_id
|
|
|
- where t2.dept_id = (select dept_id from sys_user where user_name = #{repairOrder.createBy,jdbcType=VARCHAR} and del_flag='0')))
|
|
|
+ where t2.dept_id = (select dept_id from sys_user where user_name = #{repairOrder.params.currentUser,jdbcType=VARCHAR} and del_flag='0')))
|
|
|
</if>
|
|
|
</where>
|
|
|
|
|
|
@@ -414,11 +414,11 @@
|
|
|
${workOrder.params.businessDataScope}
|
|
|
</if>
|
|
|
<!-- 限制待下发工单只能创建人本部门查看 -->
|
|
|
- <if test="workOrder.createBy != null and workOrder.createBy != ''">
|
|
|
+ <if test="workOrder.params.currentUser != null and workOrder.params.currentUser != ''">
|
|
|
and ((t.work_order_status != 'to_issue' and t.work_order_status != 'accept_return') or t.create_by in
|
|
|
(select user_name from sys_user t1
|
|
|
left join sys_dept t2 on t1.dept_id = t2.dept_id
|
|
|
- where t2.dept_id = (select dept_id from sys_user where user_name = #{workOrder.createBy,jdbcType=VARCHAR} and del_flag='0')))
|
|
|
+ where t2.dept_id = (select dept_id from sys_user where user_name = #{workOrder.params.currentUser,jdbcType=VARCHAR} and del_flag='0')))
|
|
|
</if>
|
|
|
</where>
|
|
|
) t
|