select id, project_code, project_name,bg_property, customer_code, customer_name, industry_type, agent_code, project_stage, project_grasp_degree, hz_support_user, operate_institution
, partner_code, partner_name, contact_way, estimated_amount, currency_type, estimated_order_time, estimated_deliver_time, competitor, country_product, server_configuration
, key_problem, project_desc, create_by, create_time, update_by, update_time from project_info t1
select t1.id,
t1.project_code,
t1.project_name,
t1.bg_property,
t1.customer_code,
t1.customer_name,
t1.industry_type,
t1.agent_code,
t1.project_stage,
t1.project_grasp_degree,
t1.hz_support_user,
t1.operate_institution,
t1.partner_code,
t1.partner_name,
t1.contact_way,
t1.estimated_amount,
t1.currency_type,
t1.estimated_order_time,
t1.estimated_deliver_time,
t1.competitor,
t1.country_product,
t1.server_configuration,
t1.key_problem,
t1.project_desc,
t1.create_by,
t1.create_time,
t1.update_by,
t1.update_time,
t2.agent_name
from project_info t1
left join agent_info t2 on t1.agent_code = t2.agent_code
insert into project_info
project_code,
project_name,
customer_code,
customer_name,
industry_type,
bg_property,
agent_code,
project_stage,
project_grasp_degree,
hz_support_user,
operate_institution,
partner_code,
partner_name,
contact_way,
estimated_amount,
currency_type,
estimated_order_time,
estimated_deliver_time,
competitor,
country_product,
server_configuration,
key_problem,
project_desc,
create_by,
create_time,
update_by,
update_time,
#{projectCode},
#{projectName},
#{customerCode},
#{customerName},
#{industryType},
#{bgProperty},
#{agentCode},
#{projectStage},
#{projectGraspDegree},
#{hzSupportUser},
#{operateInstitution},
#{partnerCode},
#{partnerName},
#{contactWay},
#{estimatedAmount},
#{currencyType},
#{estimatedOrderTime},
#{estimatedDeliverTime},
#{competitor},
#{countryProduct},
#{serverConfiguration},
#{keyProblem},
#{projectDesc},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update project_info
project_code = #{projectCode},
project_name = #{projectName},
customer_code = #{customerCode},
customer_name = #{customerName},
bg_property=#{bgProperty},
industry_type = #{industryType},
agent_code = #{agentCode},
project_stage = #{projectStage},
project_grasp_degree = #{projectGraspDegree},
hz_support_user = #{hzSupportUser},
operate_institution = #{operateInstitution},
partner_code = #{partnerCode},
partner_name = #{partnerName},
contact_way = #{contactWay},
estimated_amount = #{estimatedAmount},
currency_type = #{currencyType},
estimated_order_time = #{estimatedOrderTime},
estimated_deliver_time = #{estimatedDeliverTime},
competitor = #{competitor},
country_product = #{countryProduct},
server_configuration = #{serverConfiguration},
key_problem = #{keyProblem},
project_desc = #{projectDesc},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
delete from project_info where id = #{id}
delete from project_info where id in
#{id}