select id, asset_code, asset_id, target_model_code, target_name, target_name_alias, target_code, target_field, limit_up, limit_down, value_base, flag_avg, flag_sum, flag_compute, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, sort, target_field_name, column_type, field_unit from dc_base_asset_target
insert into dc_base_asset_target
asset_code,
asset_id,
target_model_code,
target_name,
target_name_alias,
target_code,
target_field,
limit_up,
limit_down,
value_base,
flag_avg,
flag_sum,
flag_compute,
tenant_id,
revision,
created_by,
created_time,
updated_by,
updated_time,
delete_by,
delete_time,
sort,
target_field_name,
column_type,
field_unit,
#{assetCode},
#{assetId},
#{targetModelCode},
#{targetName},
#{targetNameAlias},
#{targetCode},
#{targetField},
#{limitUp},
#{limitDown},
#{valueBase},
#{flagAvg},
#{flagSum},
#{flagCompute},
#{tenantId},
#{revision},
#{createdBy},
#{createdTime},
#{updatedBy},
#{updatedTime},
#{deleteBy},
#{deleteTime},
#{sort},
#{targetFieldName},
#{columnType},
#{fieldUnit},
update dc_base_asset_target
asset_code = #{assetCode},
asset_id = #{assetId},
target_model_code = #{targetModelCode},
target_name = #{targetName},
target_name_alias = #{targetNameAlias},
target_code = #{targetCode},
target_field = #{targetField},
limit_up = #{limitUp},
limit_down = #{limitDown},
value_base = #{valueBase},
flag_avg = #{flagAvg},
flag_sum = #{flagSum},
flag_compute = #{flagCompute},
tenant_id = #{tenantId},
revision = #{revision},
created_by = #{createdBy},
created_time = #{createdTime},
updated_by = #{updatedBy},
updated_time = #{updatedTime},
delete_by = #{deleteBy},
delete_time = #{deleteTime},
sort = #{sort},
target_field_name = #{targetFieldName},
column_type = #{columnType},
field_unit = #{fieldUnit},
where id = #{id}
delete from dc_base_asset_target where id = #{id}
delete from dc_base_asset_target where id in
#{id}