insert into plc_device_mode_function(device_mode_id, function_name, function_identifier, data_type, data_definition, property_unit, remark,function_mode)
values (#{deviceModeId}, #{functionName}, #{functionIdentifier}, #{dataType}, #{dataDefinition}, #{propertyUnit}, #{remark},#{functionMode})
insert into plc_device_mode_function(device_mode_id, function_name, function_identifier, data_type, data_definition, property_unit, remark,function_mode)
values
(#{entity.deviceModeId}, #{entity.functionName}, #{entity.functionIdentifier}, #{entity.dataType}, #{entity.dataDefinition}, #{entity.propertyUnit}, #{entity.remark},#{entity.functionMode})
insert into plc_device_mode_function(device_mode_id, function_name, function_identifier, data_type, data_definition, property_unit, remark)
values
(#{entity.deviceModeId}, #{entity.functionName}, #{entity.functionIdentifier}, #{entity.dataType}, #{entity.dataDefinition}, #{entity.propertyUnit}, #{entity.remark})
on duplicate key update
device_mode_id = values(device_mode_id),
function_name = values(function_name),
function_identifier = values(function_identifier),
data_type = values(data_type),
data_definition = values(data_definition),
property_unit = values(property_unit),
remark = values(remark)
update plc_device_mode_function
device_mode_id = #{deviceModeId},
function_name = #{functionName},
function_identifier = #{functionIdentifier},
data_type = #{dataType},
data_definition = #{dataDefinition},
property_unit = #{propertyUnit},
remark = #{remark},
where mode_function_id = #{modeFunctionId}
delete from plc_device_mode_function where mode_function_id = #{modeFunctionId}
delete from plc_device_mode_function where device_mode_id in
#{deviceModeId}