select id, report_no, fiscal_year, plan_sign_household, plan_install_household, new_user_plan, old_user_plan,
towns_user_plan, commerce_user_plan, industry_user_plan, total_plan, new_building_idea, old_building_idea,
village_building_idea, commerce_idea, achieved_measure, sys_ctime, sys_utime, create_by, update_by, is_delete from target_suggestion
insert into target_suggestion
id,
report_no,
fiscal_year,
plan_sign_household,
plan_install_household,
new_user_plan,
old_user_plan,
towns_user_plan,
commerce_user_plan,
industry_user_plan,
total_plan,
new_building_idea,
old_building_idea,
village_building_idea,
commerce_idea,
achieved_measure,
sys_ctime,
sys_utime,
create_by,
update_by,
is_delete,
#{id},
#{reportNo},
#{fiscalYear},
#{planSignHousehold},
#{planInstallHousehold},
#{newUserPlan},
#{oldUserPlan},
#{townsUserPlan},
#{commerceUserPlan},
#{industryUserPlan},
#{totalPlan},
#{newBuildingIdea},
#{oldBuildingIdea},
#{villageBuildingIdea},
#{commerceIdea},
#{achievedMeasure},
#{sysCtime},
#{sysUtime},
#{createBy},
#{updateBy},
#{isDelete},
update target_suggestion
report_no = #{reportNo},
fiscal_year = #{fiscalYear},
plan_sign_household = #{planSignHousehold},
plan_install_household = #{planInstallHousehold},
new_user_plan = #{newUserPlan},
old_user_plan = #{oldUserPlan},
towns_user_plan = #{townsUserPlan},
commerce_user_plan = #{commerceUserPlan},
industry_user_plan = #{industryUserPlan},
total_plan = #{totalPlan},
new_building_idea = #{newBuildingIdea},
old_building_idea = #{oldBuildingIdea},
village_building_idea = #{villageBuildingIdea},
commerce_idea = #{commerceIdea},
achieved_measure = #{achievedMeasure},
sys_ctime = #{sysCtime},
sys_utime = #{sysUtime},
create_by = #{createBy},
update_by = #{updateBy},
is_delete = #{isDelete},
where report_no = #{reportNo}
update target_suggestion
is_delete = 1
where report_no = #{reportNo}
delete from target_suggestion where id in
#{id}