select authorize_id, authorize_code, product_id, device_id, serial_number, user_id, user_name,status, del_flag, create_by, create_time, update_by, update_time, remark from iot_product_authorize
insert into iot_product_authorize
authorize_code,
product_id,
device_id,
serial_number,
user_id,
user_name,
status,
create_by,
create_time,
update_by,
update_time,
remark,
#{authorizeCode},
#{productId},
#{deviceId},
#{serialNumber},
#{userId},
#{userName},
#{status},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
insert into iot_product_authorize (authorize_code,product_id,create_by,create_time,status)
values
#{item.authorizeCode},#{item.productId},#{item.createBy},#{item.createTime},#{item.status}
update iot_product_authorize
user_id = #{userId},
device_id = #{deviceId},
authorize_code = #{authorizeCode},
product_id = #{productId},
serial_number = #{serialNumber},
user_name = #{userName},
status = #{status},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where authorize_id = #{authorizeId}
delete from iot_product_authorize where authorize_id = #{authorizeId}
delete from iot_product_authorize where authorize_id in
#{authorizeId}
delete from iot_product_authorize where product_id in
#{productId}