Commit 859bb1a2 authored by hongguangwu's avatar hongguangwu

档案优化

parent 043f4627
...@@ -492,7 +492,7 @@ ...@@ -492,7 +492,7 @@
<include refid="baseParam"/> <include refid="baseParam"/>
from t_employee_info a from t_employee_info a
<if test="tEmployeeInfo.authSql != null and tEmployeeInfo.authSql.contains('b.DEPT_ID') "> <if test="tEmployeeInfo.authSql != null and tEmployeeInfo.authSql.contains('b.DEPT_ID') ">
left join t_employee_project b on a.id=b.EMP_ID left join t_employee_project b on a.id=b.EMP_ID and b.DELETE_FLAG = '0'
</if> </if>
where a.DELETE_FLAG = '0' where a.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
...@@ -517,8 +517,8 @@ ...@@ -517,8 +517,8 @@
,a.LEAVE_USER ,a.LEAVE_USER
,a.LEAVE_REASON ,a.LEAVE_REASON
from t_employee_info a from t_employee_info a
left join t_employee_project b on a.id = b.EMP_ID left join t_employee_project b on a.id = b.EMP_ID and b.DELETE_FLAG = '0'
where a.DELETE_FLAG = '0' and b.DELETE_FLAG = '0' where a.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
<if test="tEmployeeInfo.authSql != null and tEmployeeInfo.authSql.trim() != ''"> <if test="tEmployeeInfo.authSql != null and tEmployeeInfo.authSql.trim() != ''">
${tEmployeeInfo.authSql} ${tEmployeeInfo.authSql}
...@@ -629,9 +629,9 @@ ...@@ -629,9 +629,9 @@
select select
<include refid="Base_Export_List"/> <include refid="Base_Export_List"/>
from t_employee_info a from t_employee_info a
left join t_employee_project b on a.id = b.EMP_ID left join t_employee_project b on a.id = b.EMP_ID and b.DELETE_FLAG = '0'
<where> <where>
a.DELETE_FLAG = '0' and b.DELETE_FLAG = '0' a.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
<if test="tEmployeeInfo.authSql != null and tEmployeeInfo.authSql.trim() != ''"> <if test="tEmployeeInfo.authSql != null and tEmployeeInfo.authSql.trim() != ''">
${tEmployeeInfo.authSql} ${tEmployeeInfo.authSql}
...@@ -652,9 +652,9 @@ ...@@ -652,9 +652,9 @@
,a.LEAVE_USER_NAME ,a.LEAVE_USER_NAME
,a.LEAVE_REASON ,a.LEAVE_REASON
from t_employee_info a from t_employee_info a
left join t_employee_project b on a.id = b.EMP_ID left join t_employee_project b on a.id = b.EMP_ID and b.DELETE_FLAG = '0'
<where> <where>
a.DELETE_FLAG = '0' and b.DELETE_FLAG = '0' a.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
<if test="tEmployeeInfo.authSql != null and tEmployeeInfo.authSql.trim() != ''"> <if test="tEmployeeInfo.authSql != null and tEmployeeInfo.authSql.trim() != ''">
${tEmployeeInfo.authSql} ${tEmployeeInfo.authSql}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment