select id,
user_id,
hosp_id,
hosp_name,
org_type,
staff_name,
staff_en_name,
spell,
staff_code,
brithday,
nation_code,
nation_desc,
certificate_type,
certificate_no,
card_no,
marriage_code,
marriage_desc,
home_town,
brith_addr,
live_addr,
phone,
office_phone,
post_code,
email,
kind_code,
education_code,
education_desc,
degree_code,
professional_code,
postion_type_code,
position_code,
health_status_code,
manager_position,
cftitle,
work_date,
drc_date,
profile,
stationed,
academician,
expert,
allowance,
nation_people,
technology_head_people,
responder,
phy_prcatice_type_cod,
phy_prcatice_scope_code,
phy_qualified_name,
phy_qualified_certified_no,
phy_practice_certificate_no,
phy_register_date,
phy_register_valid_date,
phy_register_address,
formation,
medical_title,
medical_id,
more_hosp_phy,
pha_practice_certificate_code,
pha_prcatice_type_code,
pha_prcatice_scope_code,
pha_register_date,
pha_register_valid_date,
pha_register_address,
pha_certified_no,
exp_job_level_code,
exp_good_area,
locked,
remark,
create_by,
create_time,
update_by,
update_time,
order_num,
effective,
create_by_name,
update_by_name,
political_status,
joinpartisan_date,
pro_quali_certificate,
entry_date,
whether_contract,
internsh_ip,
wbm,
home_town_desc,
open_id,
job_category,
deleted
from dict_user_info
insert into dict_user_info
user_id,
hosp_id,
hosp_name,
org_type,
staff_name,
staff_en_name,
spell,
staff_code,
brithday,
nation_code,
nation_desc,
certificate_type,
certificate_no,
card_no,
marriage_code,
marriage_desc,
home_town,
brith_addr,
live_addr,
phone,
office_phone,
post_code,
email,
kind_code,
education_code,
education_desc,
degree_code,
professional_code,
postion_type_code,
position_code,
health_status_code,
manager_position,
cftitle,
work_date,
drc_date,
profile,
stationed,
academician,
expert,
allowance,
nation_people,
technology_head_people,
responder,
phy_prcatice_type_cod,
phy_prcatice_scope_code,
phy_qualified_name,
phy_qualified_certified_no,
phy_practice_certificate_no,
phy_register_date,
phy_register_valid_date,
phy_register_address,
formation,
medical_title,
medical_id,
more_hosp_phy,
pha_practice_certificate_code,
pha_prcatice_type_code,
pha_prcatice_scope_code,
pha_register_date,
pha_register_valid_date,
pha_register_address,
pha_certified_no,
exp_job_level_code,
exp_good_area,
locked,
remark,
create_by,
create_time,
update_by,
update_time,
order_num,
effective,
create_by_name,
update_by_name,
political_status,
joinpartisan_date,
pro_quali_certificate,
entry_date,
whether_contract,
internsh_ip,
wbm,
home_town_desc,
open_id,
job_category,
deleted,
#{userId},
#{hospId},
#{hospName},
#{orgType},
#{staffName},
#{staffEnName},
#{spell},
#{staffCode},
#{brithday},
#{nationCode},
#{nationDesc},
#{certificateType},
#{certificateNo},
#{cardNo},
#{marriageCode},
#{marriageDesc},
#{homeTown},
#{brithAddr},
#{liveAddr},
#{phone},
#{officePhone},
#{postCode},
#{email},
#{kindCode},
#{educationCode},
#{educationDesc},
#{degreeCode},
#{professionalCode},
#{postionTypeCode},
#{positionCode},
#{healthStatusCode},
#{managerPosition},
#{cftitle},
#{workDate},
#{drcDate},
#{profile},
#{stationed},
#{academician},
#{expert},
#{allowance},
#{nationPeople},
#{technologyHeadPeople},
#{responder},
#{phyPrcaticeTypeCod},
#{phyPrcaticeScopeCode},
#{phyQualifiedName},
#{phyQualifiedCertifiedNo},
#{phyPracticeCertificateNo},
#{phyRegisterDate},
#{phyRegisterValidDate},
#{phyRegisterAddress},
#{formation},
#{medicalTitle},
#{medicalId},
#{moreHospPhy},
#{phaPracticeCertificateCode},
#{phaPrcaticeTypeCode},
#{phaPrcaticeScopeCode},
#{phaRegisterDate},
#{phaRegisterValidDate},
#{phaRegisterAddress},
#{phaCertifiedNo},
#{expJobLevelCode},
#{expGoodArea},
#{locked},
#{remark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{orderNum},
#{effective},
#{createByName},
#{updateByName},
#{politicalStatus},
#{joinpartisanDate},
#{proQualiCertificate},
#{entryDate},
#{whetherContract},
#{internshIp},
#{wbm},
#{homeTownDesc},
#{openId},
#{jobCategory},
#{deleted},
update dict_user_info
user_id = #{userId},
hosp_id = #{hospId},
hosp_name = #{hospName},
org_type = #{orgType},
staff_name = #{staffName},
staff_en_name = #{staffEnName},
spell = #{spell},
staff_code = #{staffCode},
brithday = #{brithday},
nation_code = #{nationCode},
nation_desc = #{nationDesc},
certificate_type = #{certificateType},
certificate_no = #{certificateNo},
card_no = #{cardNo},
marriage_code = #{marriageCode},
marriage_desc = #{marriageDesc},
home_town = #{homeTown},
brith_addr = #{brithAddr},
live_addr = #{liveAddr},
phone = #{phone},
office_phone = #{officePhone},
post_code = #{postCode},
email = #{email},
kind_code = #{kindCode},
education_code = #{educationCode},
education_desc = #{educationDesc},
degree_code = #{degreeCode},
professional_code = #{professionalCode},
postion_type_code = #{postionTypeCode},
position_code = #{positionCode},
health_status_code = #{healthStatusCode},
manager_position = #{managerPosition},
cftitle = #{cftitle},
work_date = #{workDate},
drc_date = #{drcDate},
profile = #{profile},
stationed = #{stationed},
academician = #{academician},
expert = #{expert},
allowance = #{allowance},
nation_people = #{nationPeople},
technology_head_people = #{technologyHeadPeople},
responder = #{responder},
phy_prcatice_type_cod = #{phyPrcaticeTypeCod},
phy_prcatice_scope_code = #{phyPrcaticeScopeCode},
phy_qualified_name = #{phyQualifiedName},
phy_qualified_certified_no = #{phyQualifiedCertifiedNo},
phy_practice_certificate_no = #{phyPracticeCertificateNo},
phy_register_date = #{phyRegisterDate},
phy_register_valid_date = #{phyRegisterValidDate},
phy_register_address = #{phyRegisterAddress},
formation = #{formation},
medical_title = #{medicalTitle},
medical_id = #{medicalId},
more_hosp_phy = #{moreHospPhy},
pha_practice_certificate_code =
#{phaPracticeCertificateCode},
pha_prcatice_type_code = #{phaPrcaticeTypeCode},
pha_prcatice_scope_code = #{phaPrcaticeScopeCode},
pha_register_date = #{phaRegisterDate},
pha_register_valid_date = #{phaRegisterValidDate},
pha_register_address = #{phaRegisterAddress},
pha_certified_no = #{phaCertifiedNo},
exp_job_level_code = #{expJobLevelCode},
exp_good_area = #{expGoodArea},
locked = #{locked},
remark = #{remark},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
order_num = #{orderNum},
effective = #{effective},
create_by_name = #{createByName},
update_by_name = #{updateByName},
political_status = #{politicalStatus},
joinpartisan_date = #{joinpartisanDate},
pro_quali_certificate = #{proQualiCertificate},
entry_date = #{entryDate},
whether_contract = #{whetherContract},
internsh_ip = #{internshIp},
wbm = #{wbm},
home_town_desc = #{homeTownDesc},
open_id = #{openId},
job_category = #{jobCategory},
deleted = #{deleted},
where id = #{id}
delete
from dict_user_info
where id = #{id}
delete from dict_user_info where id in
#{id}
delete from sys_user where user_id in
#{userId}
delete
from sys_user
where user_id = #{userId}
insert into sys_user( user_id, dept_id, user_name, nick_name, user_type, phonenumber, sex, avatar, password,
status, del_flag, login_ip, login_date, create_by, create_time, update_by, update_time, remark, email) values
( #{item.userId}, #{item.deptId}, #{item.userName}, #{item.nickName}, #{item.userType}, #{item.phonenumber},
#{item.sex}, #{item.avatar}, #{item.password}, #{item.status}, #{item.delFlag}, #{item.loginIp},
#{item.loginDate}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime},
#{item.remark}, #{item.email})