select id, area,entity, budget_subject, taxpayer_number, city, street, house_number, household_name, household_age, phone_number, house_area, business_scope, house_nature, house_attribute, house_structure, house_year, distance, is_exist, is_plan, is_single_meter, is_heating, current_energy, current_price, predict_max, predict_sign, predict_install, predict_use, sys_ctime, sys_utime, create_by, update_by, delete_flag from pool_commerce
insert into pool_commerce
id,
area,
entity,
budget_subject,
taxpayer_number,
city,
street,
house_number,
household_name,
household_age,
phone_number,
house_area,
business_scope,
house_nature,
house_attribute,
house_structure,
house_year,
distance,
is_exist,
is_plan,
is_single_meter,
is_heating,
current_energy,
current_price,
predict_max,
predict_sign,
predict_install,
predict_use,
sys_ctime,
sys_utime,
create_by,
update_by,
delete_flag,
#{id},
#{area},
#{entity},
#{budgetSubject},
#{taxpayerNumber},
#{city},
#{street},
#{houseNumber},
#{householdName},
#{householdAge},
#{phoneNumber},
#{houseArea},
#{businessScope},
#{houseNature},
#{houseAttribute},
#{houseStructure},
#{houseYear},
#{distance},
#{isExist},
#{isPlan},
#{isSingleMeter},
#{isHeating},
#{currentEnergy},
#{currentPrice},
#{predictMax},
#{predictSign},
#{predictInstall},
#{predictUse},
#{sysCtime},
#{sysUtime},
#{createBy},
#{updateBy},
#{deleteFlag},
update pool_commerce
area = #{area},
entity = #{entity},
budget_subject = #{budgetSubject},
taxpayer_number = #{taxpayerNumber},
city = #{city},
street = #{street},
house_number = #{houseNumber},
household_name = #{householdName},
household_age = #{householdAge},
phone_number = #{phoneNumber},
house_area = #{houseArea},
business_scope = #{businessScope},
house_nature = #{houseNature},
house_attribute = #{houseAttribute},
house_structure = #{houseStructure},
house_year = #{houseYear},
distance = #{distance},
is_exist = #{isExist},
is_plan = #{isPlan},
is_single_meter = #{isSingleMeter},
is_heating = #{isHeating},
current_energy = #{currentEnergy},
current_price = #{currentPrice},
predict_max = #{predictMax},
predict_sign = #{predictSign},
predict_install = #{predictInstall},
predict_use = #{predictUse},
sys_ctime = #{sysCtime},
sys_utime = #{sysUtime},
create_by = #{createBy},
update_by = #{updateBy},
delete_flag = #{deleteFlag},
where id = #{id}
delete from pool_commerce where id = #{id}
update pool_commerce set delete_flag = 1
where id in
#{id}