select cei.*,su.nick_name as centerLiaisonName,concat(sdd.dict_label,dd.dict_label) as companyNameStr
from cs_expand_interact cei
left join sys_user su on su.user_id = cei.center_liaison_id
left join sys_dict_data sdd on sdd.dict_code = cei.company_name
left join sys_dict_data dd on dd.dict_code = cei.dept_id
insert into cs_expand_interact
expand_interact_id,
res_id,
res_name,
res_type,
resource_class_id,
resource_class,
member_user_id,
accounting_time,
exchange_class_id,
exchange_class,
company_name,
dept_id,
dept_name,
company_contacts,
company_class_id,
company_class,
ecological_field,
center_liaison_id,
center_liaison,
participant,
user_need_class_id,
user_need_class,
cooperate_mode_id,
cooperate_mode,
introduce,
exchange_content,
plan_or_time,
exchange_voucher,
annex_url,
record_person,
remarks,
content,
status,
sort,
create_at,
update_at,
del_flag,
#{expandInteractId},
#{resId},
#{resName},
#{resType},
#{resourceClassId},
#{resourceClass},
#{memberUserId},
#{accountingTime},
#{exchangeClassId},
#{exchangeClass},
#{companyName},
#{deptId},
#{deptName},
#{companyContacts},
#{companyClassId},
#{companyClass},
#{ecologicalField},
#{centerLiaisonId},
#{centerLiaison},
#{participant},
#{userNeedClassId},
#{userNeedClass},
#{cooperateModeId},
#{cooperateMode},
#{introduce},
#{exchangeContent},
#{planOrTime},
#{exchangeVoucher},
#{annexUrl},
#{recordPerson},
#{remarks},
#{content},
#{status},
#{sort},
#{createAt},
#{updateAt},
#{delFlag},
update cs_expand_interact
res_id = #{resId},
res_name = #{resName},
res_type = #{resType},
resource_class_id = #{resourceClassId},
resource_class = #{resourceClass},
member_user_id = #{memberUserId},
accounting_time = #{accountingTime},
exchange_class_id = #{exchangeClassId},
exchange_class = #{exchangeClass},
company_name = #{companyName},
dept_id = #{deptId},
dept_name = #{deptName},
company_contacts = #{companyContacts},
company_class_id = #{companyClassId},
company_class = #{companyClass},
ecological_field = #{ecologicalField},
center_liaison_id = #{centerLiaisonId},
center_liaison = #{centerLiaison},
participant = #{participant},
user_need_class_id = #{userNeedClassId},
user_need_class = #{userNeedClass},
cooperate_mode_id = #{cooperateModeId},
cooperate_mode = #{cooperateMode},
introduce = #{introduce},
exchange_content = #{exchangeContent},
plan_or_time = #{planOrTime},
exchange_voucher = #{exchangeVoucher},
annex_url = #{annexUrl},
record_person = #{recordPerson},
remarks = #{remarks},
content = #{content},
status = #{status},
sort = #{sort},
create_at = #{createAt},
update_at = #{updateAt},
del_flag = #{delFlag},
where expand_interact_id = #{expandInteractId}
delete from cs_expand_interact where expand_interact_id = #{expandInteractId}
delete from cs_expand_interact where expand_interact_id in
#{expandInteractId}
insert into cs_expand_interact
expand_interact_id,
accounting_time,
exchange_class,
company_name,
dept_name,
company_contacts,
company_class,
ecological_field,
center_liaison,
participant,
introduce,
exchange_content,
plan_or_time,
user_need_class,
cooperate_mode,
record_person,
exchange_voucher,
annex_url,
create_at,
del_flag,
#{item.expandInteractId},
#{item.accountingTime},
#{item.exchangeClass},
#{item.companyName},
#{item.deptName},
#{item.companyContacts},
#{item.companyClass},
#{item.ecologicalField},
#{item.centerLiaison},
#{item.participant},
#{item.introduce},
#{item.exchangeContent},
#{item.planOrTime},
#{item.userNeedClass},
#{item.cooperateMode},
#{item.recordPerson},
#{item.exchangeVoucher},
#{item.annexUrl},
#{item.createAt},
#{item.delFlag},