select id,
product_id,
slave,
identifier,
address,
is_readonly,
data_type,
quantity,
type,
bit_order,
sort,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark
from iot_modbus_config
select id,
product_id,
slave,
identifier,
address,
bit_order,
is_readonly,
data_type,
quantity,
type
from iot_modbus_config
insert into iot_modbus_config
id,
product_id,
slave,
identifier,
address,
is_readonly,
data_type,
quantity,
type,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark,
sort,
bit_order,
#{id},
#{productId},
#{slave},
#{identifier},
#{address},
#{isReadonly},
#{dataType},
#{quantity},
#{type},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{sort},
#{bitOrder},
update iot_modbus_config
product_id = #{productId},
slave = #{slave},
identifier = #{identifier},
address = #{address},
is_readonly = #{isReadonly},
data_type = #{dataType},
quantity = #{quantity},
type = #{type},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
sort = #{sort},
bit_order = #{bitOrder},
where id = #{id}
delete
from iot_modbus_config
where id = #{id}
delete from iot_modbus_config where id in
#{id}
insert into iot_modbus_config (product_id,identifier, address, is_readonly, data_type, quantity,
type,bit_order,sort, create_by, create_time)
values
(#{item.productId},
#{item.identifier},
#{item.address},
#{item.isReadonly},
#{item.dataType},
#{item.quantity},
#{item.type},
#{item.bitOrder},
#{item.sort},
#{item.createBy},
#{item.createTime})
update iot_modbus_config
set product_id = #{productId},
identifier = #{identifier},
address = #{address},
is_readonly = #{isReadonly},
data_type = #{dataType},
sort = #{sort},
type = #{type},
bit_order = #{bitOrder},
update_by = #{updateBy},
update_time = #{updateTime}
where id in
#{item}
delete
from iot_modbus_config
where product_id = #{productId}