|
@ -10,7 +10,7 @@ |
|
|
<trim prefix="qx_dept_id =(case" suffix="end),"> |
|
|
<trim prefix="qx_dept_id =(case" suffix="end),"> |
|
|
<foreach collection="list" item="item"> |
|
|
<foreach collection="list" item="item"> |
|
|
<if test='null != item.qxDeptId'> |
|
|
<if test='null != item.qxDeptId'> |
|
|
when qx_dept_name = #{item.qxDeptName} then #{item.qxDeptId} |
|
|
when dept_name = #{item.qxDeptName} then #{item.qxDeptId} |
|
|
</if> |
|
|
</if> |
|
|
</foreach> |
|
|
</foreach> |
|
|
</trim> |
|
|
</trim> |
|
@ -18,7 +18,7 @@ |
|
|
<trim prefix="qx_dept_name =(case" suffix="end),"> |
|
|
<trim prefix="qx_dept_name =(case" suffix="end),"> |
|
|
<foreach collection="list" item="item"> |
|
|
<foreach collection="list" item="item"> |
|
|
<if test='null != item.qxDeptName'> |
|
|
<if test='null != item.qxDeptName'> |
|
|
when qx_dept_name = #{item.qxDeptName} then #{item.qxDeptId} |
|
|
when dept_name = #{item.qxDeptName} then #{item.qxDeptName} |
|
|
</if> |
|
|
</if> |
|
|
</foreach> |
|
|
</foreach> |
|
|
</trim> |
|
|
</trim> |
|
@ -26,7 +26,7 @@ |
|
|
<trim prefix="qx_dept_code =(case" suffix="end),"> |
|
|
<trim prefix="qx_dept_code =(case" suffix="end),"> |
|
|
<foreach collection="list" item="item"> |
|
|
<foreach collection="list" item="item"> |
|
|
<if test='null != item.qxDeptCode'> |
|
|
<if test='null != item.qxDeptCode'> |
|
|
when qx_dept_name = #{item.qxDeptName} then #{item.qxDeptCode} |
|
|
when dept_name = #{item.qxDeptName} then #{item.qxDeptCode} |
|
|
</if> |
|
|
</if> |
|
|
</foreach> |
|
|
</foreach> |
|
|
</trim> |
|
|
</trim> |
|
@ -34,7 +34,7 @@ |
|
|
<trim prefix="qx_customer_id =(case" suffix="end),"> |
|
|
<trim prefix="qx_customer_id =(case" suffix="end),"> |
|
|
<foreach collection="list" item="item"> |
|
|
<foreach collection="list" item="item"> |
|
|
<if test='null != item.qxCustomerId'> |
|
|
<if test='null != item.qxCustomerId'> |
|
|
when qx_dept_name = #{item.qxDeptName} then #{item.qxCustomerId} |
|
|
when dept_name = #{item.qxDeptName} then #{item.qxCustomerId} |
|
|
</if> |
|
|
</if> |
|
|
</foreach> |
|
|
</foreach> |
|
|
</trim> |
|
|
</trim> |
|
@ -43,7 +43,7 @@ |
|
|
WHERE |
|
|
WHERE |
|
|
1=1 |
|
|
1=1 |
|
|
<foreach collection="list" item="item" open="AND( " separator=" OR " index="index" close=")"> |
|
|
<foreach collection="list" item="item" open="AND( " separator=" OR " index="index" close=")"> |
|
|
qx_dept_name = #{item.qxDeptName} |
|
|
dept_name = #{item.qxDeptName} |
|
|
</foreach> |
|
|
</foreach> |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|