insert into smart_life.com_act_dpc(name, phone, nation, sex, area, belong, category, position, photo, is_del,
created_by, created_at, updated_by, updated_at, community_id)
values
(#{entity.name}, #{entity.phone}, #{entity.nation}, #{entity.sex}, #{entity.area}, #{entity.belong},
#{entity.category}, #{entity.position}, #{entity.photo}, #{entity.isDel}, #{entity.createdBy},
#{entity.createdAt}, #{entity.updatedBy}, #{entity.updatedAt}, #{entity.communityId})
insert into smart_life.com_act_dpc(name, phone, nation, sex, area, belong, category, position, photo, is_del,
created_by, created_at, updated_by, updated_at, community_id)
values
(#{entity.name}, #{entity.phone}, #{entity.nation}, #{entity.sex}, #{entity.area}, #{entity.belong},
#{entity.category}, #{entity.position}, #{entity.photo}, #{entity.isDel}, #{entity.createdBy},
#{entity.createdAt}, #{entity.updatedBy}, #{entity.updatedAt}, #{entity.communityId})
on duplicate key update
name = values(name) , phone = values(phone) , nation = values(nation) , sex = values(sex) , area = values(area)
, belong = values(belong) , category = values(category) , position = values(position) , photo = values(photo) ,
is_del = values(is_del) , created_by = values(created_by) , created_at = values(created_at) , updated_by =
values(updated_by) , updated_at = values(updated_at) , community_id = values(community_id)
insert into com_act_dpc
id,
name,
phone,
nation,
sex,
area,
belong,
category,
position,
photo,
community_id,
created_by,
created_at,
values
#{comActDpc.id},
#{comActDpc.name},
#{comActDpc.phone},
#{comActDpc.nation},
#{comActDpc.sex},
#{comActDpc.area},
#{comActDpc.belong},
#{comActDpc.category},
#{comActDpc.position},
#{comActDpc.photo},
#{comActDpc.communityId},
#{comActDpc.createdBy},
#{comActDpc.createdAt},