select lot_id, pro_id, lot_name, status, type_id, link_man, telphone, own_pro, dept_id, is_share,
lon, lat, del_flag, create_by,create_time,remark,company_id
from bm_project_lot
insert into bm_project_lot (
lot_name,
pro_id,
status,
type_id,
own_pro,
link_man,
telphone,
dept_id,
del_flag,
create_by,
update_by,
update_time,
remark,
company_id,
create_time
)values(
#{lotName},
#{proId},
#{status},
#{typeId},
#{ownPro},
#{linkMan},
#{telphone},
#{deptId},
#{delFlag},
#{createBy},
#{updateBy},
#{remark},
#{companyId},
sysdate()
)
insert into bm_project_lot (
examine_status,
create_time,
project_category,
lot_name,
lot_code,
is_framework_project,
is_sub_project,
own_pro,
own_pro_Id,
project_status,
business_source,
voltage_level,
link_man,
construction_unit,
implementation_unit,
department,
creator_company,
design_unit,
construction_control_unit,
planned_start_date,
planned_completion_date,
project_category_id,
construction_unit_id,
implementation_unit_id,
design_unit_id,
construction_control_unit_id,
project_location,
project_location_province,
project_location_city,
end_time,
construction_unit_type,
construction_unit_code
) VALUES (
#{examineStatus},
#{createTime},
#{projectCategory},
#{lotName},
#{lotCode},
#{isFrameworkProject},
#{isSubProject},
#{ownPro},
#{ownProId},
#{projectStatus},
#{businessSource},
#{voltageLevel},
#{linkMan},
#{constructionUnit},
#{implementationUnit},
#{department},
#{creatorCompany},
#{designUnit},
#{constructionControlUnit},
#{plannedStartDate},
#{plannedCompletionDate},
#{projectCategoryId},
#{constructionUnitId},
#{implementationUnitId},
#{designUnitId},
#{constructionControlUnitId},
#{projectLocation},
#{projectLocationProvince},
#{projectLocationCity},
#{endTime},
#{constructionUnitType},
#{constructionUnitCode}
)
update bm_project_lot
lot_name = #{lotName},
status = #{status},
type_id = #{typeId},
own_pro = #{ownPro},
link_man = #{linkMan},
telphone = #{telphone},
dept_id = #{deptId},
del_flag = #{delFlag},
create_by =#{createBy},
update_by =#{updateBy},
remark = #{remark},
company_id = #{companyId},
update_time = sysdate()
where lot_id = #{lotId}
update bm_project_lot set del_flag = '2'
where lot_id = #{lotId}
delete from bm_project_lot where loc_id in
#{lotId}