Commit 2db4b443 authored by huyuchen's avatar huyuchen

huych-bug修复

parent 16c8833e
......@@ -635,9 +635,8 @@
</sql>
<update id="updateExcelEmpProject" parameterType="java.util.List">
update t_employee_project
<set>
<foreach collection="list" item="i" separator=",">
<foreach collection="list" index="index" item="i" separator=";">
update t_employee_project set
EMP_LABEL = COALESCE(#{i.empLabel}, EMP_LABEL),
EMP_NATRUE = COALESCE(#{i.empNatrue}, EMP_NATRUE),
EMP_IDCARD = COALESCE(#{i.empIdcard}, EMP_IDCARD),
......@@ -653,12 +652,7 @@
BANK_NAME = COALESCE(#{i.bankName}, BANK_NAME),
BANK_NO = COALESCE(#{i.bankNo}, BANK_NO),
BANK_SUB_NAME = COALESCE(#{i.bankSubName}, BANK_SUB_NAME)
</foreach>
</set>
where id in
<foreach item="i" index="index" collection="list" open="("
separator="," close=")">
#{i.id}
where id = #{i.id}
</foreach>
</update>
<insert id="insertExcelEmpProject" parameterType="java.util.List">
......@@ -708,24 +702,21 @@
)
</foreach>
</insert>
<update id="updateReduceEmpProject" parameterType="java.util.List">
<foreach collection="list" index="index" item="i" separator=";">
update t_employee_project
<set>
<foreach collection="list" item="i" separator=",">
set
EMP_LABEL = COALESCE(#{i.empLabel}, EMP_LABEL),
PROJECT_STATUS = 1,
LEAVE_TIME = now(),
LEAVE_REASON = COALESCE(#{i.leaveReason}, LEAVE_REASON),
LEAVE_USER = COALESCE(#{i.leaveUser}, LEAVE_USER),
LEAVE_REMARK = COALESCE(#{i.leaveRemark}, LEAVE_REMARK)
</foreach>
</set>
where id in
<foreach item="i" index="index" collection="list" open="("
separator="," close=")">
#{i.id}
where id = #{i.id}
</foreach>
</update>
<!--查询部门编码和最大员工数-->
<select id="findEmployeeMaxOnlyNoByDepId" resultType="java.lang.String">
select MAX(EMP_NO) from t_employee_project where
......
......@@ -232,9 +232,9 @@
</insert>
<update id="batchUpdateUser" parameterType="java.util.List">
<foreach collection="list" index="index" item="i" separator=";">
update sys_user
<set>
<foreach collection="list" item="i" separator=",">
set
phone = COALESCE(#{i.telephoneNumber}, phone),
update_time = now(),
email = COALESCE(#{i.email}, email),
......@@ -242,12 +242,7 @@
password = COALESCE(#{i.password}, password),
dept_id = COALESCE(#{i.deptId}, dept_id),
dept_name = COALESCE(#{i.deptName}, dept_name)
</foreach>
</set>
where username in
<foreach item="i" index="index" collection="list" open="("
separator="," close=")">
#{i.uid}
where username = #{i.uid}
</foreach>
</update>
......
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