1.修改批量更新员工主播的方式
2.JDBC连接添加allowMultiQueries=true参数
This commit is contained in:
@@ -303,4 +303,15 @@
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<update id="batchUpdate">
|
||||
<foreach collection="list" item="item" separator=";">
|
||||
UPDATE server_employee_hosts as seh
|
||||
SET
|
||||
user_id = #{item.userId,jdbcType=BIGINT},
|
||||
operation_status = #{item.operationStatus,jdbcType=INTEGER}
|
||||
WHERE
|
||||
seh.id = #{item.id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user