Map<Long, String> updChannelsMap = new HashMap<>();
updChannelsMap.put(13579,"100001,100002,100003,100004");
updChannelsMap.put(2468,"100001,100002,100003,100004");
public int updateChannels(@Param("updMap") Map<Long, String> updChannelsMap);
<!-- 批量修改channels -->
<update id="updateChannelsMap" parameterType="map">
<foreach collection="updMap.entrySet()" item="value" index="key" separator=";">
update staff set channels = #{value},status=1 where staff_id = #{key}
</foreach>
</update>