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, equipment_name, equipment_ip, rtsp_url, longitude, latitude, orientation, username, password, equipment_port, intent_port, vendor, description, create_date, update_date, is_delete, equipment_type, status, aid, place delete from sy_equipment where id = #{id,jdbcType=INTEGER} delete from sy_equipment SELECT LAST_INSERT_ID() insert into sy_equipment (equipment_name, equipment_ip, rtsp_url, longitude, latitude, orientation, username, password, equipment_port, intent_port, vendor, description, create_date, update_date, is_delete, equipment_type, status, aid, place) values (#{equipmentName,jdbcType=VARCHAR}, #{equipmentIp,jdbcType=VARCHAR}, #{rtspUrl,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{orientation,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{equipmentPort,jdbcType=VARCHAR}, #{intentPort,jdbcType=VARCHAR}, #{vendor,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{createDate,jdbcType=VARCHAR}, #{updateDate,jdbcType=VARCHAR}, #{isDelete,jdbcType=INTEGER}, #{equipmentType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{aid,jdbcType=INTEGER}, #{place,jdbcType=VARCHAR}) SELECT LAST_INSERT_ID() insert into sy_equipment equipment_name, equipment_ip, rtsp_url, longitude, latitude, orientation, username, password, equipment_port, intent_port, vendor, description, create_date, update_date, is_delete, equipment_type, status, aid, place, #{equipmentName,jdbcType=VARCHAR}, #{equipmentIp,jdbcType=VARCHAR}, #{rtspUrl,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{orientation,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{equipmentPort,jdbcType=VARCHAR}, #{intentPort,jdbcType=VARCHAR}, #{vendor,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{createDate,jdbcType=VARCHAR}, #{updateDate,jdbcType=VARCHAR}, #{isDelete,jdbcType=INTEGER}, #{equipmentType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{aid,jdbcType=INTEGER}, #{place,jdbcType=VARCHAR}, update sy_equipment id = #{record.id,jdbcType=INTEGER}, equipment_name = #{record.equipmentName,jdbcType=VARCHAR}, equipment_ip = #{record.equipmentIp,jdbcType=VARCHAR}, rtsp_url = #{record.rtspUrl,jdbcType=VARCHAR}, longitude = #{record.longitude,jdbcType=VARCHAR}, latitude = #{record.latitude,jdbcType=VARCHAR}, orientation = #{record.orientation,jdbcType=VARCHAR}, username = #{record.username,jdbcType=VARCHAR}, password = #{record.password,jdbcType=VARCHAR}, equipment_port = #{record.equipmentPort,jdbcType=VARCHAR}, intent_port = #{record.intentPort,jdbcType=VARCHAR}, vendor = #{record.vendor,jdbcType=VARCHAR}, description = #{record.description,jdbcType=VARCHAR}, create_date = #{record.createDate,jdbcType=VARCHAR}, update_date = #{record.updateDate,jdbcType=VARCHAR}, is_delete = #{record.isDelete,jdbcType=INTEGER}, equipment_type = #{record.equipmentType,jdbcType=INTEGER}, status = #{record.status,jdbcType=INTEGER}, aid = #{record.aid,jdbcType=INTEGER}, place = #{record.place,jdbcType=VARCHAR}, update sy_equipment set id = #{record.id,jdbcType=INTEGER}, equipment_name = #{record.equipmentName,jdbcType=VARCHAR}, equipment_ip = #{record.equipmentIp,jdbcType=VARCHAR}, rtsp_url = #{record.rtspUrl,jdbcType=VARCHAR}, longitude = #{record.longitude,jdbcType=VARCHAR}, latitude = #{record.latitude,jdbcType=VARCHAR}, orientation = #{record.orientation,jdbcType=VARCHAR}, username = #{record.username,jdbcType=VARCHAR}, password = #{record.password,jdbcType=VARCHAR}, equipment_port = #{record.equipmentPort,jdbcType=VARCHAR}, intent_port = #{record.intentPort,jdbcType=VARCHAR}, vendor = #{record.vendor,jdbcType=VARCHAR}, description = #{record.description,jdbcType=VARCHAR}, create_date = #{record.createDate,jdbcType=VARCHAR}, update_date = #{record.updateDate,jdbcType=VARCHAR}, is_delete = #{record.isDelete,jdbcType=INTEGER}, equipment_type = #{record.equipmentType,jdbcType=INTEGER}, status = #{record.status,jdbcType=INTEGER}, aid = #{record.aid,jdbcType=INTEGER}, place = #{record.place,jdbcType=VARCHAR} update sy_equipment equipment_name = #{equipmentName,jdbcType=VARCHAR}, equipment_ip = #{equipmentIp,jdbcType=VARCHAR}, rtsp_url = #{rtspUrl,jdbcType=VARCHAR}, longitude = #{longitude,jdbcType=VARCHAR}, latitude = #{latitude,jdbcType=VARCHAR}, orientation = #{orientation,jdbcType=VARCHAR}, username = #{username,jdbcType=VARCHAR}, password = #{password,jdbcType=VARCHAR}, equipment_port = #{equipmentPort,jdbcType=VARCHAR}, intent_port = #{intentPort,jdbcType=VARCHAR}, vendor = #{vendor,jdbcType=VARCHAR}, description = #{description,jdbcType=VARCHAR}, create_date = #{createDate,jdbcType=VARCHAR}, update_date = #{updateDate,jdbcType=VARCHAR}, is_delete = #{isDelete,jdbcType=INTEGER}, equipment_type = #{equipmentType,jdbcType=INTEGER}, status = #{status,jdbcType=INTEGER}, aid = #{aid,jdbcType=INTEGER}, place = #{place,jdbcType=VARCHAR}, where id = #{id,jdbcType=INTEGER} update sy_equipment set equipment_name = #{equipmentName,jdbcType=VARCHAR}, rtsp_url = #{rtspUrl,jdbcType=VARCHAR}, longitude = #{longitude,jdbcType=VARCHAR}, latitude = #{latitude,jdbcType=VARCHAR}, orientation = #{orientation,jdbcType=VARCHAR}, username = #{username,jdbcType=VARCHAR}, password = #{password,jdbcType=VARCHAR}, equipment_port = #{equipmentPort,jdbcType=VARCHAR}, intent_port = #{intentPort,jdbcType=VARCHAR}, vendor = #{vendor,jdbcType=VARCHAR}, description = #{description,jdbcType=VARCHAR}, update_date = #{updateDate,jdbcType=VARCHAR}, equipment_type = #{equipmentType,jdbcType=INTEGER}, place = #{place,jdbcType=VARCHAR} where id = #{id,jdbcType=INTEGER}