id, site_id, plan_name, province, city, region, community_id, community_name, pre_install_number,
customer_id, device_type_id, install_group_name, install_group_header, phone, plan_start_date,
plan_end_date, plan_status, date_create, date_update, create_by, update_by, `status`,
remark, enable_unit, building_number, unit_number, file_path, enable_download
insert into sc_install_plan
site_id,
plan_name,
province,
city,
region,
community_id,
community_name,
pre_install_number,
customer_id,
device_type_id,
install_group_name,
install_group_header,
phone,
plan_start_date,
plan_end_date,
plan_status,
date_create,
date_update,
create_by,
update_by,
`status`,
remark,
enable_unit,
building_number,
unit_number,
file_path,
enable_download,
platform_type,
#{siteId},
#{planName},
#{province},
#{city},
#{region},
#{communityId},
#{communityName},
#{preInstallNumber},
#{customerId},
#{deviceTypeId},
#{installGroupName},
#{installGroupHeader},
#{phone},
#{planStartDate},
#{planEndDate},
#{planStatus},
#{dateCreate},
#{dateUpdate},
#{createBy},
#{updateBy},
#{status},
#{remark},
#{enableUnit},
#{buildingNumber},
#{unitNumber},
#{filePath},
#{enableDownload},
#{platformType},
update sc_install_plan
site_id = #{siteId},
plan_name = #{planName},
province = #{province},
city = #{city},
region = #{region},
community_id = #{communityId},
community_name = #{communityName},
pre_install_number = #{preInstallNumber},
customer_id = #{customerId},
device_type_id = #{deviceTypeId},
install_group_name = #{installGroupName},
install_group_header = #{installGroupHeader},
phone = #{phone},
plan_start_date = #{planStartDate},
plan_end_date = #{planEndDate},
plan_status = #{planStatus},
date_create = #{dateCreate},
date_update = #{dateUpdate},
create_by = #{createBy},
update_by = #{updateBy},
`status` = #{status},
remark = #{remark},
enable_unit = #{enableUnit},
building_number = #{buildingNumber},
unit_number = #{unitNumber},
file_path = #{filePath},
enable_download = #{enableDownload},
where id = #{id}
insert into sc_install_plan
(site_id, plan_name, province, city, region, community_id, community_name, pre_install_number,
customer_id, device_type_id, install_group_name, install_group_header, phone, plan_start_date,
plan_end_date, plan_status, date_create, date_update, create_by, update_by, `status`,
remark, enable_unit, building_number, unit_number, file_path, enable_download)
values
(#{item.siteId}, #{item.planName}, #{item.province}, #{item.city}, #{item.region},
#{item.communityId}, #{item.communityName}, #{item.preInstallNumber}, #{item.customerId},
#{item.deviceTypeId}, #{item.installGroupName}, #{item.installGroupHeader}, #{item.phone},
#{item.planStartDate}, #{item.planEndDate}, #{item.planStatus}, #{item.dateCreate},
#{item.dateUpdate}, #{item.createBy}, #{item.updateBy}, #{item.status}, #{item.remark},
#{item.enableUnit}, #{item.buildingNumber}, #{item.unitNumber}, #{item.filePath},
#{item.enableDownload})