薪酬系统-薪资核算,薪资核算列表工号查询逻辑优化
This commit is contained in:
parent
fb03cf98a7
commit
007328476a
|
|
@ -174,6 +174,7 @@
|
|||
AND tax_agent_id = #{param.taxAgentId}
|
||||
</if>
|
||||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.workcode != null and param.workcode != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
|
|
@ -184,6 +185,9 @@
|
|||
<if test="param.employeeName != null and param.employeeName != ''">
|
||||
AND em.lastname LIKE '%'||#{param.employeeName}||'%'
|
||||
</if>
|
||||
<if test="param.workcode != null and param.workcode != ''">
|
||||
AND em.workcode like '%'||#{param.workcode}||'%'
|
||||
</if>
|
||||
<if test="param.departmentIds != null and param.departmentIds.size()>0">
|
||||
AND em.departmentid IN
|
||||
<foreach collection="param.departmentIds" open="(" item="departmentId" separator="," close=")">
|
||||
|
|
@ -251,6 +255,7 @@
|
|||
AND tax_agent_id = #{param.taxAgentId}
|
||||
</if>
|
||||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.workcode != null and param.workcode != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
|
|
@ -261,6 +266,9 @@
|
|||
<if test="param.employeeName != null and param.employeeName != ''">
|
||||
AND em.lastname LIKE '%'+#{param.employeeName}+'%'
|
||||
</if>
|
||||
<if test="param.workcode != null and param.workcode != ''">
|
||||
AND em.workcode like '%'+#{param.workcode}+'%'
|
||||
</if>
|
||||
<if test="param.departmentIds != null and param.departmentIds.size()>0">
|
||||
AND em.departmentid IN
|
||||
<foreach collection="param.departmentIds" open="(" item="departmentId" separator="," close=")">
|
||||
|
|
@ -485,6 +493,7 @@
|
|||
AND t.tax_agent_id = #{param.taxAgentId}
|
||||
</if>
|
||||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.workcode != null and param.workcode != '')
|
||||
or (param.subcompanyIds != null and param.subcompanyIds.size()>0)
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
|
|
@ -569,6 +578,7 @@
|
|||
AND t.tax_agent_id = #{param.taxAgentId}
|
||||
</if>
|
||||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.workcode != null and param.workcode != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
|
|
@ -644,6 +654,7 @@
|
|||
AND t.tax_agent_id = #{param.taxAgentId}
|
||||
</if>
|
||||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.workcode != null and param.workcode != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
|
|
|
|||
Loading…
Reference in New Issue