UPDATE sys_energy SET type = 0 WHERE id = #{id} and identification=#{identification} UPDATE sys_energy SET type = 0 WHERE id in(${code}) and time=#{time}