select id, company_name, company_id, org_id, org_name, asset_code, asset_name, field_code, field_name, target_name_alias, target_name, target_code, target_uint, count_year, count_month, val_sum, val_avg_all, val_avg_null, val_plan, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, val_p1, val_p2, val_p3, val_p4, val_p5, val_p6, val_p7, val_p8, val_p9, val_p10, val_p11, val_p12, val_p13, val_p14, val_p15, val_p16, val_p17, val_p18, val_p19, val_p20, val_p21, val_p22, val_p23, val_p24, val_p25, val_p26, val_p27, val_p28, val_p29, val_p30, val_p31 from dc_busi_target_draft_month
insert into dc_busi_target_draft_month
company_name,
company_id,
org_id,
org_name,
asset_code,
asset_name,
field_code,
field_name,
target_name_alias,
target_name,
target_code,
target_uint,
count_year,
count_month,
val_sum,
val_avg_all,
val_avg_null,
val_plan,
tenant_id,
revision,
created_by,
created_time,
updated_by,
updated_time,
delete_by,
delete_time,
val_p1,
val_p2,
val_p3,
val_p4,
val_p5,
val_p6,
val_p7,
val_p8,
val_p9,
val_p10,
val_p11,
val_p12,
val_p13,
val_p14,
val_p15,
val_p16,
val_p17,
val_p18,
val_p19,
val_p20,
val_p21,
val_p22,
val_p23,
val_p24,
val_p25,
val_p26,
val_p27,
val_p28,
val_p29,
val_p30,
val_p31,
#{companyName},
#{companyId},
#{orgId},
#{orgName},
#{assetCode},
#{assetName},
#{fieldCode},
#{fieldName},
#{targetNameAlias},
#{targetName},
#{targetCode},
#{targetUint},
#{countYear},
#{countMonth},
#{valSum},
#{valAvgAll},
#{valAvgNull},
#{valPlan},
#{tenantId},
#{revision},
#{createdBy},
#{createdTime},
#{updatedBy},
#{updatedTime},
#{deleteBy},
#{deleteTime},
#{valP1},
#{valP2},
#{valP3},
#{valP4},
#{valP5},
#{valP6},
#{valP7},
#{valP8},
#{valP9},
#{valP10},
#{valP11},
#{valP12},
#{valP13},
#{valP14},
#{valP15},
#{valP16},
#{valP17},
#{valP18},
#{valP19},
#{valP20},
#{valP21},
#{valP22},
#{valP23},
#{valP24},
#{valP25},
#{valP26},
#{valP27},
#{valP28},
#{valP29},
#{valP30},
#{valP31},
update dc_busi_target_draft_month
company_name = #{companyName},
company_id = #{companyId},
org_id = #{orgId},
org_name = #{orgName},
asset_code = #{assetCode},
asset_name = #{assetName},
field_code = #{fieldCode},
field_name = #{fieldName},
target_name_alias = #{targetNameAlias},
target_name = #{targetName},
target_code = #{targetCode},
target_uint = #{targetUint},
count_year = #{countYear},
count_month = #{countMonth},
val_sum = #{valSum},
val_avg_all = #{valAvgAll},
val_avg_null = #{valAvgNull},
val_plan = #{valPlan},
tenant_id = #{tenantId},
revision = #{revision},
created_by = #{createdBy},
created_time = #{createdTime},
updated_by = #{updatedBy},
updated_time = #{updatedTime},
delete_by = #{deleteBy},
delete_time = #{deleteTime},
val_p1 = #{valP1},
val_p2 = #{valP2},
val_p3 = #{valP3},
val_p4 = #{valP4},
val_p5 = #{valP5},
val_p6 = #{valP6},
val_p7 = #{valP7},
val_p8 = #{valP8},
val_p9 = #{valP9},
val_p10 = #{valP10},
val_p11 = #{valP11},
val_p12 = #{valP12},
val_p13 = #{valP13},
val_p14 = #{valP14},
val_p15 = #{valP15},
val_p16 = #{valP16},
val_p17 = #{valP17},
val_p18 = #{valP18},
val_p19 = #{valP19},
val_p20 = #{valP20},
val_p21 = #{valP21},
val_p22 = #{valP22},
val_p23 = #{valP23},
val_p24 = #{valP24},
val_p25 = #{valP25},
val_p26 = #{valP26},
val_p27 = #{valP27},
val_p28 = #{valP28},
val_p29 = #{valP29},
val_p30 = #{valP30},
val_p31 = #{valP31},
where id = #{id}
delete from dc_busi_target_draft_month where id = #{id}
delete from dc_busi_target_draft_month where id in
#{id}