select cabinet_id, cabinet_code, cabinet_name, ip_address, mac_address,
manufacturer, model, capacity, channel_count, online_status, test_status,
current_test, status, create_by, create_time, update_by, update_time,
remark, del_flag
from t_detection_cabinet
insert into t_detection_cabinet(
cabinet_code, cabinet_name, ip_address, mac_address, manufacturer, model, capacity,
channel_count, online_status, test_status, current_test, status,
create_by, create_time, remark, del_flag
) values (
#{cabinetCode}, #{cabinetName}, #{ipAddress}, #{macAddress}, #{manufacturer}, #{model}, #{capacity},
#{channelCount}, #{onlineStatus}, #{testStatus}, #{currentTest}, #{status},
#{createBy}, sysdate(), #{remark}, #{delFlag}
)
update t_detection_cabinet
cabinet_code = #{cabinetCode},
cabinet_name = #{cabinetName},
ip_address = #{ipAddress},
mac_address = #{macAddress},
manufacturer = #{manufacturer},
model = #{model},
capacity = #{capacity},
channel_count = #{channelCount},
remark = #{remark},
update_by = #{updateBy},
update_time = sysdate()
where cabinet_id = #{cabinetId} and del_flag = '0'
update t_detection_cabinet
set status = #{status}, update_by = #{updateBy}, update_time = sysdate()
where cabinet_id = #{cabinetId} and del_flag = '0'
update t_detection_cabinet
set del_flag = cast(cabinet_id as char), update_by = #{updateBy}, update_time = sysdate()
where cabinet_id = #{cabinetId} and del_flag = '0'