and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} id, parent_id, name, type_id, is_equipment delete from sy_area_equipment where id = #{id,jdbcType=INTEGER} delete from sy_area_equipment SELECT LAST_INSERT_ID() insert into sy_area_equipment (parent_id, name, type_id, is_equipment) values (#{parentId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{typeId,jdbcType=INTEGER}, #{isEquipment,jdbcType=INTEGER}) SELECT LAST_INSERT_ID() insert into sy_area_equipment parent_id, name, type_id, is_equipment, #{parentId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{typeId,jdbcType=INTEGER}, #{isEquipment,jdbcType=INTEGER}, update sy_area_equipment id = #{record.id,jdbcType=INTEGER}, parent_id = #{record.parentId,jdbcType=INTEGER}, name = #{record.name,jdbcType=VARCHAR}, type_id = #{record.typeId,jdbcType=INTEGER}, is_equipment = #{record.isEquipment,jdbcType=INTEGER}, update sy_area_equipment set id = #{record.id,jdbcType=INTEGER}, parent_id = #{record.parentId,jdbcType=INTEGER}, name = #{record.name,jdbcType=VARCHAR}, type_id = #{record.typeId,jdbcType=INTEGER}, is_equipment = #{record.isEquipment,jdbcType=INTEGER} update sy_area_equipment parent_id = #{parentId,jdbcType=INTEGER}, name = #{name,jdbcType=VARCHAR}, type_id = #{typeId,jdbcType=INTEGER}, is_equipment = #{isEquipment,jdbcType=INTEGER}, where id = #{id,jdbcType=INTEGER} update sy_area_equipment set name = #{name,jdbcType=VARCHAR} where id = #{id,jdbcType=INTEGER}