<?xml version="1.0" encoding="UTF-8" ?>
|
<!DOCTYPE mapper
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.ltkj.hosp.mapper.DictUserInfoMapper">
|
|
<resultMap type="DictUserInfo" id="DictUserInfoResult">
|
<result property="id" column="id"/>
|
<result property="userId" column="user_id"/>
|
<result property="hospId" column="hosp_id"/>
|
<result property="hospName" column="hosp_name"/>
|
<result property="orgType" column="org_type"/>
|
<result property="staffName" column="staff_name"/>
|
<result property="staffEnName" column="staff_en_name"/>
|
<result property="spell" column="spell"/>
|
<result property="staffCode" column="staff_code"/>
|
<result property="brithday" column="brithday"/>
|
<result property="nationCode" column="nation_code"/>
|
<result property="nationDesc" column="nation_desc"/>
|
<result property="certificateType" column="certificate_type"/>
|
<result property="certificateNo" column="certificate_no"/>
|
<result property="cardNo" column="card_no"/>
|
<result property="marriageCode" column="marriage_code"/>
|
<result property="marriageDesc" column="marriage_desc"/>
|
<result property="homeTown" column="home_town"/>
|
<result property="brithAddr" column="brith_addr"/>
|
<result property="liveAddr" column="live_addr"/>
|
<result property="phone" column="phone"/>
|
<result property="officePhone" column="office_phone"/>
|
<result property="postCode" column="post_code"/>
|
<result property="email" column="email"/>
|
<result property="kindCode" column="kind_code"/>
|
<result property="educationCode" column="education_code"/>
|
<result property="educationDesc" column="education_desc"/>
|
<result property="degreeCode" column="degree_code"/>
|
<result property="professionalCode" column="professional_code"/>
|
<result property="postionTypeCode" column="postion_type_code"/>
|
<result property="positionCode" column="position_code"/>
|
<result property="healthStatusCode" column="health_status_code"/>
|
<result property="managerPosition" column="manager_position"/>
|
<result property="cftitle" column="cftitle"/>
|
<result property="workDate" column="work_date"/>
|
<result property="drcDate" column="drc_date"/>
|
<result property="profile" column="profile"/>
|
<result property="stationed" column="stationed"/>
|
<result property="academician" column="academician"/>
|
<result property="expert" column="expert"/>
|
<result property="allowance" column="allowance"/>
|
<result property="nationPeople" column="nation_people"/>
|
<result property="technologyHeadPeople" column="technology_head_people"/>
|
<result property="responder" column="responder"/>
|
<result property="phyPrcaticeTypeCod" column="phy_prcatice_type_cod"/>
|
<result property="phyPrcaticeScopeCode" column="phy_prcatice_scope_code"/>
|
<result property="phyQualifiedName" column="phy_qualified_name"/>
|
<result property="phyQualifiedCertifiedNo" column="phy_qualified_certified_no"/>
|
<result property="phyPracticeCertificateNo" column="phy_practice_certificate_no"/>
|
<result property="phyRegisterDate" column="phy_register_date"/>
|
<result property="phyRegisterValidDate" column="phy_register_valid_date"/>
|
<result property="phyRegisterAddress" column="phy_register_address"/>
|
<result property="formation" column="formation"/>
|
<result property="medicalTitle" column="medical_title"/>
|
<result property="medicalId" column="medical_id"/>
|
<result property="moreHospPhy" column="more_hosp_phy"/>
|
<result property="phaPracticeCertificateCode" column="pha_practice_certificate_code"/>
|
<result property="phaPrcaticeTypeCode" column="pha_prcatice_type_code"/>
|
<result property="phaPrcaticeScopeCode" column="pha_prcatice_scope_code"/>
|
<result property="phaRegisterDate" column="pha_register_date"/>
|
<result property="phaRegisterValidDate" column="pha_register_valid_date"/>
|
<result property="phaRegisterAddress" column="pha_register_address"/>
|
<result property="phaCertifiedNo" column="pha_certified_no"/>
|
<result property="expJobLevelCode" column="exp_job_level_code"/>
|
<result property="expGoodArea" column="exp_good_area"/>
|
<result property="locked" column="locked"/>
|
<result property="remark" column="remark"/>
|
<result property="createBy" column="create_by"/>
|
<result property="createTime" column="create_time"/>
|
<result property="updateBy" column="update_by"/>
|
<result property="updateTime" column="update_time"/>
|
<result property="orderNum" column="order_num"/>
|
<result property="effective" column="effective"/>
|
<result property="createByName" column="create_by_name"/>
|
<result property="updateByName" column="update_by_name"/>
|
<result property="politicalStatus" column="political_status"/>
|
<result property="joinpartisanDate" column="joinpartisan_date"/>
|
<result property="proQualiCertificate" column="pro_quali_certificate"/>
|
<result property="entryDate" column="entry_date"/>
|
<result property="whetherContract" column="whether_contract"/>
|
<result property="internshIp" column="internsh_ip"/>
|
<result property="wbm" column="wbm"/>
|
<result property="homeTownDesc" column="home_town_desc"/>
|
<result property="openId" column="open_id"/>
|
<result property="jobCategory" column="job_category"/>
|
<result property="qmImg" column="qm_img"/>
|
<result property="deleted" column="deleted"/>
|
</resultMap>
|
|
<resultMap id="DictUserInfoSysUserResult" type="DictUserInfo" extends="DictUserInfoResult">
|
<collection property="sysUserList" notNullColumn="sub_user_id" javaType="java.util.List"
|
resultMap="SysUserResult"/>
|
</resultMap>
|
|
<resultMap type="SysUser" id="SysUserResult">
|
<result property="userId" column="sub_user_id"/>
|
<result property="deptId" column="sub_dept_id"/>
|
<result property="userName" column="sub_user_name"/>
|
<result property="nickName" column="sub_nick_name"/>
|
<result property="userType" column="sub_user_type"/>
|
<result property="phonenumber" column="sub_phonenumber"/>
|
<result property="sex" column="sub_sex"/>
|
<result property="avatar" column="sub_avatar"/>
|
<result property="password" column="sub_password"/>
|
<result property="status" column="sub_status"/>
|
<result property="delFlag" column="sub_del_flag"/>
|
<result property="loginIp" column="sub_login_ip"/>
|
<result property="loginDate" column="sub_login_date"/>
|
<result property="createBy" column="sub_create_by"/>
|
<result property="createTime" column="sub_create_time"/>
|
<result property="updateBy" column="sub_update_by"/>
|
<result property="updateTime" column="sub_update_time"/>
|
<result property="remark" column="sub_remark"/>
|
<result property="email" column="sub_email"/>
|
</resultMap>
|
|
<sql id="selectDictUserInfoVo">
|
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,qm_img,
|
deleted
|
from dict_user_info
|
</sql>
|
|
<select id="selectDictUserInfoList" parameterType="DictUserInfo" resultMap="DictUserInfoResult">
|
<include refid="selectDictUserInfoVo"/>
|
<where>
|
<if test="userId != null ">and user_id like concat('%', #{userId}, '%')</if>
|
<if test="hospId != null and hospId != ''">and hosp_id like concat('%', #{hospId}, '%')</if>
|
<if test="hospName != null and hospName != ''">and hosp_name like concat('%', #{hospName}, '%')</if>
|
<if test="orgType != null and orgType != ''">and org_type = #{orgType}</if>
|
<if test="staffName != null and staffName != ''">and staff_name like concat('%', #{staffName}, '%')</if>
|
<if test="staffEnName != null and staffEnName != ''">and staff_en_name like concat('%', #{staffEnName},
|
'%')
|
</if>
|
<if test="spell != null and spell != ''">and spell like concat('%', #{spell}, '%')</if>
|
<if test="staffCode != null and staffCode != ''">and staff_code like concat('%', #{staffCode}, '%')</if>
|
<if test="phone != null and phone != ''">and phone = #{phone}</if>
|
<if test="kindCode != null and kindCode != ''">and kind_code = #{kindCode}</if>
|
<if test="formation != null and formation != ''">and formation = #{formation}</if>
|
<if test="params.beginEntryDate != null and params.beginEntryDate != '' and params.endEntryDate != null and params.endEntryDate != ''">
|
and entry_date between #{params.beginEntryDate} and #{params.endEntryDate}
|
</if>
|
<if test="jobCategory != null and jobCategory != ''">and job_category = #{jobCategory}</if>
|
</where>
|
</select>
|
|
<select id="selectDictUserInfoById" parameterType="Long" resultMap="DictUserInfoSysUserResult">
|
select a.id,
|
a.user_id,
|
a.hosp_id,
|
a.hosp_name,
|
a.org_type,
|
a.staff_name,
|
a.staff_en_name,
|
a.spell,
|
a.staff_code,
|
a.brithday,
|
a.nation_code,
|
a.nation_desc,
|
a.certificate_type,
|
a.certificate_no,
|
a.card_no,
|
a.marriage_code,
|
a.marriage_desc,
|
a.home_town,
|
a.brith_addr,
|
a.live_addr,
|
a.phone,
|
a.office_phone,
|
a.post_code,
|
a.email,
|
a.kind_code,
|
a.education_code,
|
a.education_desc,
|
a.degree_code,
|
a.professional_code,
|
a.postion_type_code,
|
a.position_code,
|
a.health_status_code,
|
a.manager_position,
|
a.cftitle,
|
a.work_date,
|
a.drc_date,
|
a.profile,
|
a.stationed,
|
a.academician,
|
a.expert,
|
a.allowance,
|
a.nation_people,
|
a.technology_head_people,
|
a.responder,
|
a.phy_prcatice_type_cod,
|
a.phy_prcatice_scope_code,
|
a.phy_qualified_name,
|
a.phy_qualified_certified_no,
|
a.phy_practice_certificate_no,
|
a.phy_register_date,
|
a.phy_register_valid_date,
|
a.phy_register_address,
|
a.formation,
|
a.medical_title,
|
a.medical_id,
|
a.more_hosp_phy,
|
a.pha_practice_certificate_code,
|
a.pha_prcatice_type_code,
|
a.pha_prcatice_scope_code,
|
a.pha_register_date,
|
a.pha_register_valid_date,
|
a.pha_register_address,
|
a.pha_certified_no,
|
a.exp_job_level_code,
|
a.exp_good_area,
|
a.locked,
|
a.remark,
|
a.create_by,
|
a.create_time,
|
a.update_by,
|
a.update_time,
|
a.order_num,
|
a.effective,
|
a.create_by_name,
|
a.update_by_name,
|
a.political_status,
|
a.joinpartisan_date,
|
a.pro_quali_certificate,
|
a.entry_date,
|
a.whether_contract,
|
a.internsh_ip,
|
a.wbm,
|
a.home_town_desc,
|
a.open_id,
|
a.job_category,
|
a.qmImg,
|
a.deleted,
|
b.user_id as sub_user_id,
|
b.dept_id as sub_dept_id,
|
b.user_name as sub_user_name,
|
b.nick_name as sub_nick_name,
|
b.user_type as sub_user_type,
|
b.phonenumber as sub_phonenumber,
|
b.sex as sub_sex,
|
b.avatar as sub_avatar,
|
b.password as sub_password,
|
b.status as sub_status,
|
b.del_flag as sub_del_flag,
|
b.login_ip as sub_login_ip,
|
b.login_date as sub_login_date,
|
b.create_by as sub_create_by,
|
b.create_time as sub_create_time,
|
b.update_by as sub_update_by,
|
b.update_time as sub_update_time,
|
b.remark as sub_remark,
|
b.email as sub_email
|
from dict_user_info a
|
left join sys_user b on b.user_id = a.id
|
where a.id = #{id}
|
</select>
|
|
<insert id="insertDictUserInfo" parameterType="DictUserInfo" useGeneratedKeys="true" keyProperty="id">
|
insert into dict_user_info
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="userId != null">user_id,</if>
|
<if test="hospId != null and hospId != ''">hosp_id,</if>
|
<if test="hospName != null and hospName != ''">hosp_name,</if>
|
<if test="orgType != null and orgType != ''">org_type,</if>
|
<if test="staffName != null and staffName != ''">staff_name,</if>
|
<if test="staffEnName != null">staff_en_name,</if>
|
<if test="spell != null">spell,</if>
|
<if test="staffCode != null">staff_code,</if>
|
<if test="brithday != null">brithday,</if>
|
<if test="nationCode != null">nation_code,</if>
|
<if test="nationDesc != null">nation_desc,</if>
|
<if test="certificateType != null">certificate_type,</if>
|
<if test="certificateNo != null">certificate_no,</if>
|
<if test="cardNo != null">card_no,</if>
|
<if test="marriageCode != null">marriage_code,</if>
|
<if test="marriageDesc != null">marriage_desc,</if>
|
<if test="homeTown != null">home_town,</if>
|
<if test="brithAddr != null">brith_addr,</if>
|
<if test="liveAddr != null">live_addr,</if>
|
<if test="phone != null">phone,</if>
|
<if test="officePhone != null">office_phone,</if>
|
<if test="postCode != null">post_code,</if>
|
<if test="email != null">email,</if>
|
<if test="kindCode != null">kind_code,</if>
|
<if test="educationCode != null">education_code,</if>
|
<if test="educationDesc != null">education_desc,</if>
|
<if test="degreeCode != null">degree_code,</if>
|
<if test="professionalCode != null">professional_code,</if>
|
<if test="postionTypeCode != null">postion_type_code,</if>
|
<if test="positionCode != null">position_code,</if>
|
<if test="healthStatusCode != null">health_status_code,</if>
|
<if test="managerPosition != null">manager_position,</if>
|
<if test="cftitle != null">cftitle,</if>
|
<if test="workDate != null">work_date,</if>
|
<if test="drcDate != null">drc_date,</if>
|
<if test="profile != null">profile,</if>
|
<if test="stationed != null">stationed,</if>
|
<if test="academician != null">academician,</if>
|
<if test="expert != null">expert,</if>
|
<if test="allowance != null">allowance,</if>
|
<if test="nationPeople != null">nation_people,</if>
|
<if test="technologyHeadPeople != null">technology_head_people,</if>
|
<if test="responder != null">responder,</if>
|
<if test="phyPrcaticeTypeCod != null">phy_prcatice_type_cod,</if>
|
<if test="phyPrcaticeScopeCode != null">phy_prcatice_scope_code,</if>
|
<if test="phyQualifiedName != null">phy_qualified_name,</if>
|
<if test="phyQualifiedCertifiedNo != null">phy_qualified_certified_no,</if>
|
<if test="phyPracticeCertificateNo != null">phy_practice_certificate_no,</if>
|
<if test="phyRegisterDate != null">phy_register_date,</if>
|
<if test="phyRegisterValidDate != null">phy_register_valid_date,</if>
|
<if test="phyRegisterAddress != null">phy_register_address,</if>
|
<if test="formation != null">formation,</if>
|
<if test="medicalTitle != null">medical_title,</if>
|
<if test="medicalId != null">medical_id,</if>
|
<if test="moreHospPhy != null">more_hosp_phy,</if>
|
<if test="phaPracticeCertificateCode != null">pha_practice_certificate_code,</if>
|
<if test="phaPrcaticeTypeCode != null">pha_prcatice_type_code,</if>
|
<if test="phaPrcaticeScopeCode != null">pha_prcatice_scope_code,</if>
|
<if test="phaRegisterDate != null">pha_register_date,</if>
|
<if test="phaRegisterValidDate != null">pha_register_valid_date,</if>
|
<if test="phaRegisterAddress != null">pha_register_address,</if>
|
<if test="phaCertifiedNo != null">pha_certified_no,</if>
|
<if test="expJobLevelCode != null">exp_job_level_code,</if>
|
<if test="expGoodArea != null">exp_good_area,</if>
|
<if test="locked != null">locked,</if>
|
<if test="remark != null">remark,</if>
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
<if test="createTime != null">create_time,</if>
|
<if test="updateBy != null">update_by,</if>
|
<if test="updateTime != null">update_time,</if>
|
<if test="orderNum != null">order_num,</if>
|
<if test="effective != null">effective,</if>
|
<if test="createByName != null">create_by_name,</if>
|
<if test="updateByName != null">update_by_name,</if>
|
<if test="politicalStatus != null">political_status,</if>
|
<if test="joinpartisanDate != null">joinpartisan_date,</if>
|
<if test="proQualiCertificate != null">pro_quali_certificate,</if>
|
<if test="entryDate != null">entry_date,</if>
|
<if test="whetherContract != null">whether_contract,</if>
|
<if test="internshIp != null">internsh_ip,</if>
|
<if test="wbm != null">wbm,</if>
|
<if test="homeTownDesc != null">home_town_desc,</if>
|
<if test="openId != null">open_id,</if>
|
<if test="jobCategory != null">job_category,</if>
|
<if test="qmImg != null">qm_img,</if>
|
<if test="deleted != null">deleted,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="userId != null">#{userId},</if>
|
<if test="hospId != null and hospId != ''">#{hospId},</if>
|
<if test="hospName != null and hospName != ''">#{hospName},</if>
|
<if test="orgType != null and orgType != ''">#{orgType},</if>
|
<if test="staffName != null and staffName != ''">#{staffName},</if>
|
<if test="staffEnName != null">#{staffEnName},</if>
|
<if test="spell != null">#{spell},</if>
|
<if test="staffCode != null">#{staffCode},</if>
|
<if test="brithday != null">#{brithday},</if>
|
<if test="nationCode != null">#{nationCode},</if>
|
<if test="nationDesc != null">#{nationDesc},</if>
|
<if test="certificateType != null">#{certificateType},</if>
|
<if test="certificateNo != null">#{certificateNo},</if>
|
<if test="cardNo != null">#{cardNo},</if>
|
<if test="marriageCode != null">#{marriageCode},</if>
|
<if test="marriageDesc != null">#{marriageDesc},</if>
|
<if test="homeTown != null">#{homeTown},</if>
|
<if test="brithAddr != null">#{brithAddr},</if>
|
<if test="liveAddr != null">#{liveAddr},</if>
|
<if test="phone != null">#{phone},</if>
|
<if test="officePhone != null">#{officePhone},</if>
|
<if test="postCode != null">#{postCode},</if>
|
<if test="email != null">#{email},</if>
|
<if test="kindCode != null">#{kindCode},</if>
|
<if test="educationCode != null">#{educationCode},</if>
|
<if test="educationDesc != null">#{educationDesc},</if>
|
<if test="degreeCode != null">#{degreeCode},</if>
|
<if test="professionalCode != null">#{professionalCode},</if>
|
<if test="postionTypeCode != null">#{postionTypeCode},</if>
|
<if test="positionCode != null">#{positionCode},</if>
|
<if test="healthStatusCode != null">#{healthStatusCode},</if>
|
<if test="managerPosition != null">#{managerPosition},</if>
|
<if test="cftitle != null">#{cftitle},</if>
|
<if test="workDate != null">#{workDate},</if>
|
<if test="drcDate != null">#{drcDate},</if>
|
<if test="profile != null">#{profile},</if>
|
<if test="stationed != null">#{stationed},</if>
|
<if test="academician != null">#{academician},</if>
|
<if test="expert != null">#{expert},</if>
|
<if test="allowance != null">#{allowance},</if>
|
<if test="nationPeople != null">#{nationPeople},</if>
|
<if test="technologyHeadPeople != null">#{technologyHeadPeople},</if>
|
<if test="responder != null">#{responder},</if>
|
<if test="phyPrcaticeTypeCod != null">#{phyPrcaticeTypeCod},</if>
|
<if test="phyPrcaticeScopeCode != null">#{phyPrcaticeScopeCode},</if>
|
<if test="phyQualifiedName != null">#{phyQualifiedName},</if>
|
<if test="phyQualifiedCertifiedNo != null">#{phyQualifiedCertifiedNo},</if>
|
<if test="phyPracticeCertificateNo != null">#{phyPracticeCertificateNo},</if>
|
<if test="phyRegisterDate != null">#{phyRegisterDate},</if>
|
<if test="phyRegisterValidDate != null">#{phyRegisterValidDate},</if>
|
<if test="phyRegisterAddress != null">#{phyRegisterAddress},</if>
|
<if test="formation != null">#{formation},</if>
|
<if test="medicalTitle != null">#{medicalTitle},</if>
|
<if test="medicalId != null">#{medicalId},</if>
|
<if test="moreHospPhy != null">#{moreHospPhy},</if>
|
<if test="phaPracticeCertificateCode != null">#{phaPracticeCertificateCode},</if>
|
<if test="phaPrcaticeTypeCode != null">#{phaPrcaticeTypeCode},</if>
|
<if test="phaPrcaticeScopeCode != null">#{phaPrcaticeScopeCode},</if>
|
<if test="phaRegisterDate != null">#{phaRegisterDate},</if>
|
<if test="phaRegisterValidDate != null">#{phaRegisterValidDate},</if>
|
<if test="phaRegisterAddress != null">#{phaRegisterAddress},</if>
|
<if test="phaCertifiedNo != null">#{phaCertifiedNo},</if>
|
<if test="expJobLevelCode != null">#{expJobLevelCode},</if>
|
<if test="expGoodArea != null">#{expGoodArea},</if>
|
<if test="locked != null">#{locked},</if>
|
<if test="remark != null">#{remark},</if>
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
<if test="createTime != null">#{createTime},</if>
|
<if test="updateBy != null">#{updateBy},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
<if test="orderNum != null">#{orderNum},</if>
|
<if test="effective != null">#{effective},</if>
|
<if test="createByName != null">#{createByName},</if>
|
<if test="updateByName != null">#{updateByName},</if>
|
<if test="politicalStatus != null">#{politicalStatus},</if>
|
<if test="joinpartisanDate != null">#{joinpartisanDate},</if>
|
<if test="proQualiCertificate != null">#{proQualiCertificate},</if>
|
<if test="entryDate != null">#{entryDate},</if>
|
<if test="whetherContract != null">#{whetherContract},</if>
|
<if test="internshIp != null">#{internshIp},</if>
|
<if test="wbm != null">#{wbm},</if>
|
<if test="homeTownDesc != null">#{homeTownDesc},</if>
|
<if test="openId != null">#{openId},</if>
|
<if test="jobCategory != null">#{jobCategory},</if>
|
<if test="qmImg != null">#{qmImg},</if>
|
<if test="deleted != null">#{deleted},</if>
|
</trim>
|
</insert>
|
|
<update id="updateDictUserInfo" parameterType="DictUserInfo">
|
update dict_user_info
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="userId != null">user_id = #{userId},</if>
|
<if test="hospId != null and hospId != ''">hosp_id = #{hospId},</if>
|
<if test="hospName != null and hospName != ''">hosp_name = #{hospName},</if>
|
<if test="orgType != null and orgType != ''">org_type = #{orgType},</if>
|
<if test="staffName != null and staffName != ''">staff_name = #{staffName},</if>
|
<if test="staffEnName != null">staff_en_name = #{staffEnName},</if>
|
<if test="spell != null">spell = #{spell},</if>
|
<if test="staffCode != null">staff_code = #{staffCode},</if>
|
<if test="brithday != null">brithday = #{brithday},</if>
|
<if test="nationCode != null">nation_code = #{nationCode},</if>
|
<if test="nationDesc != null">nation_desc = #{nationDesc},</if>
|
<if test="certificateType != null">certificate_type = #{certificateType},</if>
|
<if test="certificateNo != null">certificate_no = #{certificateNo},</if>
|
<if test="cardNo != null">card_no = #{cardNo},</if>
|
<if test="marriageCode != null">marriage_code = #{marriageCode},</if>
|
<if test="marriageDesc != null">marriage_desc = #{marriageDesc},</if>
|
<if test="homeTown != null">home_town = #{homeTown},</if>
|
<if test="brithAddr != null">brith_addr = #{brithAddr},</if>
|
<if test="liveAddr != null">live_addr = #{liveAddr},</if>
|
<if test="phone != null">phone = #{phone},</if>
|
<if test="officePhone != null">office_phone = #{officePhone},</if>
|
<if test="postCode != null">post_code = #{postCode},</if>
|
<if test="email != null">email = #{email},</if>
|
<if test="kindCode != null">kind_code = #{kindCode},</if>
|
<if test="educationCode != null">education_code = #{educationCode},</if>
|
<if test="educationDesc != null">education_desc = #{educationDesc},</if>
|
<if test="degreeCode != null">degree_code = #{degreeCode},</if>
|
<if test="professionalCode != null">professional_code = #{professionalCode},</if>
|
<if test="postionTypeCode != null">postion_type_code = #{postionTypeCode},</if>
|
<if test="positionCode != null">position_code = #{positionCode},</if>
|
<if test="healthStatusCode != null">health_status_code = #{healthStatusCode},</if>
|
<if test="managerPosition != null">manager_position = #{managerPosition},</if>
|
<if test="cftitle != null">cftitle = #{cftitle},</if>
|
<if test="workDate != null">work_date = #{workDate},</if>
|
<if test="drcDate != null">drc_date = #{drcDate},</if>
|
<if test="profile != null">profile = #{profile},</if>
|
<if test="stationed != null">stationed = #{stationed},</if>
|
<if test="academician != null">academician = #{academician},</if>
|
<if test="expert != null">expert = #{expert},</if>
|
<if test="allowance != null">allowance = #{allowance},</if>
|
<if test="nationPeople != null">nation_people = #{nationPeople},</if>
|
<if test="technologyHeadPeople != null">technology_head_people = #{technologyHeadPeople},</if>
|
<if test="responder != null">responder = #{responder},</if>
|
<if test="phyPrcaticeTypeCod != null">phy_prcatice_type_cod = #{phyPrcaticeTypeCod},</if>
|
<if test="phyPrcaticeScopeCode != null">phy_prcatice_scope_code = #{phyPrcaticeScopeCode},</if>
|
<if test="phyQualifiedName != null">phy_qualified_name = #{phyQualifiedName},</if>
|
<if test="phyQualifiedCertifiedNo != null">phy_qualified_certified_no = #{phyQualifiedCertifiedNo},</if>
|
<if test="phyPracticeCertificateNo != null">phy_practice_certificate_no = #{phyPracticeCertificateNo},</if>
|
<if test="phyRegisterDate != null">phy_register_date = #{phyRegisterDate},</if>
|
<if test="phyRegisterValidDate != null">phy_register_valid_date = #{phyRegisterValidDate},</if>
|
<if test="phyRegisterAddress != null">phy_register_address = #{phyRegisterAddress},</if>
|
<if test="formation != null">formation = #{formation},</if>
|
<if test="medicalTitle != null">medical_title = #{medicalTitle},</if>
|
<if test="medicalId != null">medical_id = #{medicalId},</if>
|
<if test="moreHospPhy != null">more_hosp_phy = #{moreHospPhy},</if>
|
<if test="phaPracticeCertificateCode != null">pha_practice_certificate_code =
|
#{phaPracticeCertificateCode},
|
</if>
|
<if test="phaPrcaticeTypeCode != null">pha_prcatice_type_code = #{phaPrcaticeTypeCode},</if>
|
<if test="phaPrcaticeScopeCode != null">pha_prcatice_scope_code = #{phaPrcaticeScopeCode},</if>
|
<if test="phaRegisterDate != null">pha_register_date = #{phaRegisterDate},</if>
|
<if test="phaRegisterValidDate != null">pha_register_valid_date = #{phaRegisterValidDate},</if>
|
<if test="phaRegisterAddress != null">pha_register_address = #{phaRegisterAddress},</if>
|
<if test="phaCertifiedNo != null">pha_certified_no = #{phaCertifiedNo},</if>
|
<if test="expJobLevelCode != null">exp_job_level_code = #{expJobLevelCode},</if>
|
<if test="expGoodArea != null">exp_good_area = #{expGoodArea},</if>
|
<if test="locked != null">locked = #{locked},</if>
|
<if test="remark != null">remark = #{remark},</if>
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="orderNum != null">order_num = #{orderNum},</if>
|
<if test="effective != null">effective = #{effective},</if>
|
<if test="createByName != null">create_by_name = #{createByName},</if>
|
<if test="updateByName != null">update_by_name = #{updateByName},</if>
|
<if test="politicalStatus != null">political_status = #{politicalStatus},</if>
|
<if test="joinpartisanDate != null">joinpartisan_date = #{joinpartisanDate},</if>
|
<if test="proQualiCertificate != null">pro_quali_certificate = #{proQualiCertificate},</if>
|
<if test="entryDate != null">entry_date = #{entryDate},</if>
|
<if test="whetherContract != null">whether_contract = #{whetherContract},</if>
|
<if test="internshIp != null">internsh_ip = #{internshIp},</if>
|
<if test="wbm != null">wbm = #{wbm},</if>
|
<if test="homeTownDesc != null">home_town_desc = #{homeTownDesc},</if>
|
<if test="openId != null">open_id = #{openId},</if>
|
<if test="jobCategory != null">job_category = #{jobCategory},</if>
|
<if test="qmImg != null">qm_img = #{qmImg},</if>
|
<if test="deleted != null">deleted = #{deleted},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteDictUserInfoById" parameterType="Long">
|
delete
|
from dict_user_info
|
where id = #{id}
|
</delete>
|
|
<delete id="deleteDictUserInfoByIds" parameterType="String">
|
delete from dict_user_info where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
|
<delete id="deleteSysUserByUserIds" parameterType="String">
|
delete from sys_user where user_id in
|
<foreach item="userId" collection="array" open="(" separator="," close=")">
|
#{userId}
|
</foreach>
|
</delete>
|
|
<delete id="deleteSysUserByUserId" parameterType="Long">
|
delete
|
from sys_user
|
where user_id = #{userId}
|
</delete>
|
|
<insert id="batchSysUser">
|
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
|
<foreach item="item" index="index" collection="list" separator=",">
|
( #{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})
|
</foreach>
|
</insert>
|
</mapper>
|