MACHINE_ID, EVALUATION_ROOM_ID, MACHINE_NAME, MACHINE_IP, MACHINE_MAC, MACHINE_TYPE, MACHINE_PORT, FTP_PORT, FTP_NAME, FTP_PWD, USED, USE_STATUS
UPDATE obe_machine
EVALUATION_ROOM_ID = #{ObeMachine.evaluationRoomId} ,
MACHINE_NAME = #{ObeMachine.machineName} ,
MACHINE_IP = #{ObeMachine.machineIp} ,
MACHINE_MAC = #{ObeMachine.machineMac} ,
MACHINE_TYPE = #{ObeMachine.machineType} ,
MACHINE_PORT = #{ObeMachine.machinePort} ,
FTP_PORT = #{ObeMachine.ftpPort} ,
FTP_NAME = #{ObeMachine.ftpName} ,
FTP_PWD = #{ObeMachine.ftpPwd} ,
USED = #{ObeMachine.used} ,
USE_STATUS = #{ObeMachine.useStatus} ,
MACHINE_ID = #{ObeMachine.id}
insert into obe_machine
(
MACHINE_ID, EVALUATION_ROOM_ID, MACHINE_NAME, MACHINE_IP, MACHINE_MAC, MACHINE_TYPE, MACHINE_PORT, FTP_PORT, FTP_NAME, FTP_PWD, USED, USE_STATUS
)
values
(
#{ObeMachine.id} ,
#{ObeMachine.evaluationRoomId} ,
#{ObeMachine.machineName} ,
#{ObeMachine.machineIp} ,
#{ObeMachine.machineMac} ,
#{ObeMachine.machineType} ,
#{ObeMachine.machinePort} ,
#{ObeMachine.ftpPort} ,
#{ObeMachine.ftpName} ,
#{ObeMachine.ftpPwd} ,
#{ObeMachine.used} ,
#{ObeMachine.useStatus}
)
DELETE FROM OBE_MACHINE WHERE EVALUATION_ROOM_ID = #{roomId}