select id, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, company_id, company_name, organize_id, organize_name, asset_code, asset_name, target_code, taget_name, target_model_code, value_original, value_result, value_plan, date_year, date_month, date_day, value_temp, field_code, field_name, value_adjust from dc_busi_target_draft_daynew
insert into dc_busi_target_draft_daynew
tenant_id,
revision,
created_by,
created_time,
updated_by,
updated_time,
delete_by,
delete_time,
company_id,
company_name,
organize_id,
organize_name,
asset_code,
asset_name,
target_code,
taget_name,
target_model_code,
value_original,
value_result,
value_plan,
date_year,
date_month,
date_day,
value_temp,
field_code,
field_name,
value_adjust,
#{tenantId},
#{revision},
#{createdBy},
#{createdTime},
#{updatedBy},
#{updatedTime},
#{deleteBy},
#{deleteTime},
#{companyId},
#{companyName},
#{organizeId},
#{organizeName},
#{assetCode},
#{assetName},
#{targetCode},
#{tagetName},
#{targetModelCode},
#{valueOriginal},
#{valueResult},
#{valuePlan},
#{dateYear},
#{dateMonth},
#{dateDay},
#{valueTemp},
#{fieldCode},
#{fieldName},
#{valueAdjust},
insert into dc_busi_target_draft_daynew
(company_id, company_name, organize_id, organize_name, asset_code, asset_name,
target_code, taget_name, target_model_code, date_year, date_month, date_day,
value_result, field_code, field_name)
values
(#{item.companyId}, #{item.companyName}, #{item.organizeId}, #{item.organizeName}, #{item.assetCode}, #{item.assetName},
#{item.targetCode}, #{item.tagetName}, #{item.targetModelCode}, #{item.dateYear}, #{item.dateMonth}, #{item.dateDay},
#{item.valueResult}, #{item.fieldCode}, #{item.fieldName})
update dc_busi_target_draft_daynew
tenant_id = #{tenantId},
revision = #{revision},
created_by = #{createdBy},
created_time = #{createdTime},
updated_by = #{updatedBy},
updated_time = #{updatedTime},
delete_by = #{deleteBy},
delete_time = #{deleteTime},
company_id = #{companyId},
company_name = #{companyName},
organize_id = #{organizeId},
organize_name = #{organizeName},
asset_code = #{assetCode},
asset_name = #{assetName},
target_code = #{targetCode},
taget_name = #{tagetName},
target_model_code = #{targetModelCode},
value_original = #{valueOriginal},
value_result = #{valueResult},
value_plan = #{valuePlan},
date_year = #{dateYear},
date_month = #{dateMonth},
date_day = #{dateDay},
value_temp = #{valueTemp},
field_code = #{fieldCode},
field_name = #{fieldName},
value_adjust = #{valueAdjust},
where id = #{id}
delete from dc_busi_target_draft_daynew where id = #{id}
delete from dc_busi_target_draft_daynew where id in
#{id}