<?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.smartor.mapper.SysUserImportMapper">
|
|
<resultMap type="com.smartor.domain.SysUserImport" id="SysUserImportResult">
|
<result property="id" column="id"/>
|
<result property="subId" column="sub_id"/>
|
<result property="caUpdateTime" column="caUpdateTime"/>
|
<result property="wards" column="wards"/>
|
<result property="hisStaffId" column="his_staff_id"/>
|
<result property="personnelStampNum" column="personnel_stamp_num"/>
|
<result property="idCard" column="id_card"/>
|
<result property="staffPhoto" column="staff_photo"/>
|
<result property="effectiveStart" column="effective_start"/>
|
<result property="personnelProfile" column="personnel_profile"/>
|
<result property="staffNation" column="staff_nation"/>
|
<result property="staffNum" column="staff_num"/>
|
<result property="effectiveEnd" column="effective_end"/>
|
<result property="insuranceCode" column="insurance_code"/>
|
<result property="searchCode3" column="search_code3"/>
|
<result property="searchCode2" column="search_code2"/>
|
<result property="searchCode1" column="search_code1"/>
|
<result property="hospitalId" column="hospital_id"/>
|
<result property="preUpdater" column="pre_updater"/>
|
<result property="staffName" column="staff_name"/>
|
<result property="defaultDeptName" column="default_dept_name"/>
|
<result property="state" column="state"/>
|
<result property="famousDoctorRank" column="famous_doctor_rank"/>
|
<result property="firstWorkDate" column="first_work_date"/>
|
<result property="preUpdaterNum" column="pre_updater_num"/>
|
<result property="staffStatus" column="staff_status"/>
|
<result property="mgrPosiCode" column="mgr_posi_code"/>
|
<result property="defaultHisDeptId" column="default_his_dept_id"/>
|
<result property="defaultWardId" column="default_ward_id"/>
|
<result property="updateTime" column="update_time"/>
|
<result property="staffSex" column="staff_sex"/>
|
<result property="staffType" column="staff_type"/>
|
<result property="userId" column="user_id"/>
|
<result property="preUpdateTime" column="pre_update_time"/>
|
<result property="famousDoctorRankName" column="famous_doctor_rank_name"/>
|
<result property="personnelBirthday" column="personnel_birthday"/>
|
<result property="staffTitle" column="staff_title"/>
|
<result property="signPic" column="sign_pic"/>
|
<result property="createTime" column="create_time"/>
|
<result property="telphone" column="telphone"/>
|
<result property="employPostCode" column="employ_post_code"/>
|
<result property="defaultDeptId" column="default_dept_id"/>
|
<result property="depts" column="depts"/>
|
<result property="staffId" column="staff_id"/>
|
<result property="staffLevel" column="staff_level"/>
|
<result property="selfCollectDialecticalFees" column="self_collect_dialectical_fees"/>
|
<result property="subIds" column="sub_ids"/>
|
<result property="defaultHisWardId" column="default_his_ward_id"/>
|
<result property="defaultWardName" column="default_ward_name"/>
|
<result property="openId" column="open_id"/>
|
<result property="guid" column="guid"/>
|
<result property="orgid" column="orgid"/>
|
</resultMap>
|
|
<sql id="selectSysUserImportVo">
|
select id,
|
sub_id,
|
guid,
|
orgid,
|
default_his_ward_id,
|
default_ward_name,
|
his_staff_id,
|
default_ward_id,
|
personnel_stamp_num,
|
id_card,
|
staff_photo,
|
effective_start,
|
personnel_profile,
|
staff_nation,
|
staff_num,
|
effective_end,
|
insurance_code,
|
search_code3,
|
search_code2,
|
search_code1,
|
hospital_id,
|
pre_updater,
|
staff_name,
|
default_dept_name,
|
state,
|
famous_doctor_rank,
|
first_work_date,
|
pre_updater_num,
|
staff_status,
|
mgr_posi_code,
|
default_his_deptId,
|
update_time,
|
staff_sex,
|
staff_type,
|
user_id,
|
pre_update_time,
|
famous_doctor_rank_name,
|
personnel_birthday,
|
staff_title,
|
sign_pic,
|
open_id,
|
create_time,
|
telphone,
|
employ_post_code,
|
default_dept_id,
|
depts,
|
staff_id,
|
staff_level,
|
self_collect_dialectical_fees,
|
sub_ids
|
from sys_user_import
|
</sql>
|
|
<select id="selectSysUserImportList" parameterType="com.smartor.domain.SysUserImport"
|
resultMap="SysUserImportResult">
|
<include refid="selectSysUserImportVo"/>
|
<where>
|
<if test="subId != null ">
|
and sub_id = #{subId}
|
</if>
|
<if test="hisStaffId != null and hisStaffId != ''">
|
and his_staff_id = #{hisStaffId}
|
</if>
|
<if test="personnelStampNum != null and personnelStampNum != ''">
|
and personnel_stamp_num = #{personnelStampNum}
|
</if>
|
<if test="idCard != null and idCard != ''">
|
and id_card = #{idCard}
|
</if>
|
<if test="defaultWardId != null and defaultWardId != ''">
|
and default_ward_id = #{defaultWardId}
|
</if>
|
<if test="staffPhoto != null and staffPhoto != ''">
|
and staff_photo = #{staffPhoto}
|
</if>
|
<if test="effectiveStart != null and effectiveStart != ''">
|
and effective_start = #{effectiveStart}
|
</if>
|
<if test="personnelProfile != null and personnelProfile != ''">
|
and personnel_profile = #{personnelProfile}
|
</if>
|
<if test="staffNation != null and staffNation != ''">
|
and staff_nation = #{staffNation}
|
</if>
|
<if test="staffNum != null and staffNum != ''">
|
and staff_num = #{staffNum}
|
</if>
|
<if test="effectiveEnd != null and effectiveEnd != ''">
|
and effective_end = #{effectiveEnd}
|
</if>
|
<if test="insuranceCode != null and insuranceCode != ''">
|
and insurance_code = #{insuranceCode}
|
</if>
|
<if test="searchCode3 != null and searchCode3 != ''">
|
and search_code3 = #{searchCode3}
|
</if>
|
<if test="searchCode2 != null and searchCode2 != ''">
|
and search_code2 = #{searchCode2}
|
</if>
|
<if test="searchCode1 != null and searchCode1 != ''">
|
and search_code1 = #{searchCode1}
|
</if>
|
<if test="hospitalId != null and hospitalId != ''">
|
and hospital_id = #{hospitalId}
|
</if>
|
<if test="preUpdater != null and preUpdater != ''">
|
and pre_updater = #{preUpdater}
|
</if>
|
<if test="staffName != null and staffName != ''">
|
and staff_name like concat('%', #{staffName}, '%')
|
</if>
|
<if test="defaultDeptName != null ">
|
and default_dept_name like concat('%', #{defaultDeptName}, '%')
|
</if>
|
<if test="state != null and state != ''">
|
and state = #{state}
|
</if>
|
<if test="famousDoctorRank != null ">
|
and famous_doctor_rank = #{famousDoctorRank}
|
</if>
|
<if test="firstWorkDate != null and firstWorkDate != ''">
|
and first_work_date = #{firstWorkDate}
|
</if>
|
<if test="preUpdaterNum != null ">
|
and pre_updater_num = #{preUpdaterNum}
|
</if>
|
<if test="staffStatus != null and staffStatus != ''">
|
and staff_status = #{staffStatus}
|
</if>
|
<if test="mgrPosiCode != null and mgrPosiCode != ''">
|
and mgr_posi_code = #{mgrPosiCode}
|
</if>
|
<if test="defaultHisDeptId != null and defaultHisDeptId != ''">
|
and default_his_dept_id = #{defaultHisDeptId}
|
</if>
|
<if test="staffSex != null and staffSex != ''">
|
and staff_sex = #{staffSex}
|
</if>
|
<if test="staffType != null and staffType != ''">
|
and staff_type = #{staffType}
|
</if>
|
<if test="userId != null ">
|
and user_id = #{userId}
|
</if>
|
<if test="preUpdateTime != null ">
|
and pre_update_time = #{preUpdateTime}
|
</if>
|
<if test="famousDoctorRankName != null and famousDoctorRankName != ''">
|
and famous_doctor_rank_name like concat('%', #{famousDoctorRankName}, '%')
|
</if>
|
<if test="personnelBirthday != null and personnelBirthday != ''">
|
and personnel_birthday = #{personnelBirthday}
|
</if>
|
<if test="staffTitle != null and staffTitle != ''">
|
and staff_title = #{staffTitle}
|
</if>
|
<if test="signPic != null and signPic != ''">
|
and sign_pic = #{signPic}
|
</if>
|
<if test="telphone != null and telphone != ''">
|
and telphone = #{telphone}
|
</if>
|
<if test="employPostCode != null and employPostCode != ''">
|
and employ_post_code = #{employPostCode}
|
</if>
|
<if test="defaultDeptId != null ">
|
and default_dept_id = #{defaultDeptId}
|
</if>
|
<if test="depts != null and depts != ''">
|
and depts = #{depts}
|
</if>
|
<if test="staffId != null ">
|
and staff_id = #{staffId}
|
</if>
|
<if test="staffLevel != null and staffLevel != ''">
|
and staff_level = #{staffLevel}
|
</if>
|
<if test="selfCollectDialecticalFees != null and selfCollectDialecticalFees != ''">
|
and self_collect_dialectical_fees = #{selfCollectDialecticalFees}
|
</if>
|
<if test="subIds != null and subIds != ''">
|
and sub_ids = #{subIds}
|
</if>
|
<if test="defaultHisWardId != null and defaultHisWardId != ''">
|
and default_his_ward_id = #{defaultHisWardId}
|
</if>
|
<if test="defaultWardName != null and defaultWardName != ''">
|
and default_ward_name = #{defaultWardName}
|
</if>
|
</where>
|
</select>
|
|
<select id="selectSysUserImportById" parameterType="Long"
|
resultMap="SysUserImportResult">
|
<include refid="selectSysUserImportVo"/>
|
where id = #{id}
|
</select>
|
|
<insert id="insertSysUserImport" parameterType="com.smartor.domain.SysUserImport" useGeneratedKeys="true"
|
keyProperty="id">
|
insert into sys_user_import
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="subId != null">sub_id,
|
</if>
|
<if test="hisStaffId != null">his_staff_id,
|
</if>
|
<if test="personnelStampNum != null">personnel_stamp_num,
|
</if>
|
<if test="idCard != null and idCard != ''">id_card,
|
</if>
|
<if test="staffPhoto != null and staffPhoto != ''">staff_photo,
|
</if>
|
<if test="effectiveStart != null">effective_start,
|
</if>
|
<if test="personnelProfile != null and personnelProfile != ''">personnel_profile,
|
</if>
|
<if test="staffNation != null">staff_nation,
|
</if>
|
<if test="staffNum != null">staff_num,
|
</if>
|
<if test="effectiveEnd != null">effective_end,
|
</if>
|
<if test="insuranceCode != null">insurance_code,
|
</if>
|
<if test="searchCode3 != null">search_code3,
|
</if>
|
<if test="searchCode2 != null">search_code2,
|
</if>
|
<if test="searchCode1 != null">search_code1,
|
</if>
|
<if test="hospitalId != null">hospital_id,
|
</if>
|
<if test="preUpdater != null">pre_updater,
|
</if>
|
<if test="staffName != null">staff_name,
|
</if>
|
<if test="defaultDeptName != null">default_dept_name,
|
</if>
|
<if test="state != null">state,
|
</if>
|
<if test="famousDoctorRank != null">famous_doctor_rank,
|
</if>
|
<if test="firstWorkDate != null">first_work_date,
|
</if>
|
<if test="preUpdaterNum != null">pre_updater_num,
|
</if>
|
<if test="staffStatus != null">staff_status,
|
</if>
|
<if test="mgrPosiCode != null">mgr_posi_code,
|
</if>
|
<if test="defaultHisDeptId != null">default_his_dept_id,
|
</if>
|
<if test="updateTime != null">update_time,
|
</if>
|
<if test="staffSex != null">staff_sex,
|
</if>
|
<if test="staffType != null">staff_type,
|
</if>
|
<if test="userId != null">user_id,
|
</if>
|
<if test="preUpdateTime != null">pre_update_time,
|
</if>
|
<if test="famousDoctorRankName != null">famous_doctor_rank_name,
|
</if>
|
<if test="personnelBirthday != null">personnel_birthday,
|
</if>
|
<if test="staffTitle != null">staff_title,
|
</if>
|
<if test="createTime != null">create_time,
|
</if>
|
<if test="telphone != null">telphone,
|
</if>
|
<if test="employPostCode != null">employ_post_code,
|
</if>
|
<if test="defaultDeptId != null">default_dept_id,
|
</if>
|
<if test="depts != null">depts,
|
</if>
|
<if test="staffId != null">staff_id,
|
</if>
|
<if test="staffLevel != null">staff_level,
|
</if>
|
<if test="selfCollectDialecticalFees != null">self_collect_dialectical_fees,
|
</if>
|
<if test="subIds != null">sub_ids,
|
</if>
|
<if test="defaultWardId != null">default_ward_id,
|
</if>
|
<if test="defaultHisWardId != null and defaultHisWardId != ''">
|
default_his_ward_id,
|
</if>
|
<if test="defaultWardName != null and defaultWardName != ''">
|
default_ward_name,
|
</if>
|
<if test="openId != null and openId != ''">
|
open_id,
|
</if>
|
<if test="guid != null and guid != ''">
|
guid,
|
</if> <if test="orgid != null and orgid != ''">
|
orgid,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="subId != null">#{subId},
|
</if>
|
<if test="hisStaffId != null">#{hisStaffId},
|
</if>
|
<if test="personnelStampNum != null">#{personnelStampNum},
|
</if>
|
<if test="idCard != null and idCard != ''">#{idCard},
|
</if>
|
<if test="staffPhoto != null and staffPhoto != ''">#{staffPhoto},
|
</if>
|
<if test="effectiveStart != null">#{effectiveStart},
|
</if>
|
<if test="personnelProfile != null and personnelProfile != ''">#{personnelProfile},
|
</if>
|
<if test="staffNation != null">#{staffNation},
|
</if>
|
<if test="staffNum != null">#{staffNum},
|
</if>
|
<if test="effectiveEnd != null">#{effectiveEnd},
|
</if>
|
<if test="insuranceCode != null">#{insuranceCode},
|
</if>
|
<if test="searchCode3 != null">#{searchCode3},
|
</if>
|
<if test="searchCode2 != null">#{searchCode2},
|
</if>
|
<if test="searchCode1 != null">#{searchCode1},
|
</if>
|
<if test="hospitalId != null">#{hospitalId},
|
</if>
|
<if test="preUpdater != null">#{preUpdater},
|
</if>
|
<if test="staffName != null">#{staffName},
|
</if>
|
<if test="defaultDeptName != null">#{defaultDeptName},
|
</if>
|
<if test="state != null">#{state},
|
</if>
|
<if test="famousDoctorRank != null">#{famousDoctorRank},
|
</if>
|
<if test="firstWorkDate != null">#{firstWorkDate},
|
</if>
|
<if test="preUpdaterNum != null">#{preUpdaterNum},
|
</if>
|
<if test="staffStatus != null">#{staffStatus},
|
</if>
|
<if test="mgrPosiCode != null">#{mgrPosiCode},
|
</if>
|
<if test="defaultHisDeptId != null">#{defaultHisDeptId},
|
</if>
|
<if test="updateTime != null">#{updateTime},
|
</if>
|
<if test="staffSex != null">#{staffSex},
|
</if>
|
<if test="staffType != null">#{staffType},
|
</if>
|
<if test="userId != null">#{userId},
|
</if>
|
<if test="preUpdateTime != null">#{preUpdateTime},
|
</if>
|
<if test="famousDoctorRankName != null">#{famousDoctorRankName},
|
</if>
|
<if test="personnelBirthday != null">#{personnelBirthday},
|
</if>
|
<if test="staffTitle != null">#{staffTitle},
|
</if>
|
<if test="createTime != null">#{createTime},
|
</if>
|
<if test="telphone != null">#{telphone},
|
</if>
|
<if test="employPostCode != null">#{employPostCode},
|
</if>
|
<if test="defaultDeptId != null">#{defaultDeptId},
|
</if>
|
<if test="depts != null">#{depts},
|
</if>
|
<if test="staffId != null">#{staffId},
|
</if>
|
<if test="staffLevel != null">#{staffLevel},
|
</if>
|
<if test="selfCollectDialecticalFees != null">#{selfCollectDialecticalFees},
|
</if>
|
<if test="subIds != null">#{subIds},
|
</if>
|
<if test="defaultWardId != null">#{defaultWardId},
|
</if>
|
<if test="defaultHisWardId != null and defaultHisWardId != ''">
|
#{defaultHisWardId},
|
</if>
|
<if test="defaultWardName != null and defaultWardName != ''">
|
#{defaultWardName},
|
</if>
|
<if test="openId != null and openId != ''">
|
#{openId},
|
</if>
|
<if test="guid != null and guid != ''">
|
#{guid},
|
</if> <if test="orgid != null and orgid != ''">
|
#{orgid},
|
</if>
|
</trim>
|
</insert>
|
|
<update id="updateSysUserImport" parameterType="com.smartor.domain.SysUserImport">
|
update sys_user_import
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="subId != null">sub_id =
|
#{subId},
|
</if>
|
<if test="hisStaffId != null">his_staff_id =
|
#{hisStaffId},
|
</if>
|
<if test="personnelStampNum != null">personnel_stamp_num =
|
#{personnelStampNum},
|
</if>
|
<if test="idCard != null and idCard != ''">id_card =
|
#{idCard},
|
</if>
|
<if test="staffPhoto != null and staffPhoto != ''">staff_photo =
|
#{staffPhoto},
|
</if>
|
<if test="effectiveStart != null">effective_start =
|
#{effectiveStart},
|
</if>
|
<if test="personnelProfile != null and personnelProfile != ''">personnel_profile =
|
#{personnelProfile},
|
</if>
|
<if test="staffNation != null">staff_nation =
|
#{staffNation},
|
</if>
|
<if test="staffNum != null">staff_num =
|
#{staffNum},
|
</if>
|
<if test="effectiveEnd != null">effective_end =
|
#{effectiveEnd},
|
</if>
|
<if test="insuranceCode != null">insurance_code =
|
#{insuranceCode},
|
</if>
|
<if test="searchCode3 != null">search_code3 =
|
#{searchCode3},
|
</if>
|
<if test="searchCode2 != null">search_code2 =
|
#{searchCode2},
|
</if>
|
<if test="searchCode1 != null">search_code1 =
|
#{searchCode1},
|
</if>
|
<if test="hospitalId != null">hospital_id =
|
#{hospitalId},
|
</if>
|
<if test="preUpdater != null">pre_updater =
|
#{preUpdater},
|
</if>
|
<if test="staffName != null">staff_name =
|
#{staffName},
|
</if>
|
<if test="defaultDeptName != null">default_dept_name =
|
#{defaultDeptName},
|
</if>
|
<if test="state != null">state =
|
#{state},
|
</if>
|
<if test="famousDoctorRank != null">famous_doctor_rank =
|
#{famousDoctorRank},
|
</if>
|
<if test="firstWorkDate != null">first_work_date =
|
#{firstWorkDate},
|
</if>
|
<if test="preUpdaterNum != null">pre_updater_num =
|
#{preUpdaterNum},
|
</if>
|
<if test="staffStatus != null">staff_status =
|
#{staffStatus},
|
</if>
|
<if test="mgrPosiCode != null">mgr_posi_code =
|
#{mgrPosiCode},
|
</if>
|
<if test="defaultHisDeptId != null">default_his_dept_id =
|
#{defaultHisDeptId},
|
</if>
|
<if test="updateTime != null">update_time =
|
#{updateTime},
|
</if>
|
<if test="staffSex != null">staff_sex =
|
#{staffSex},
|
</if>
|
<if test="staffType != null">staff_type =
|
#{staffType},
|
</if>
|
<if test="userId != null">user_id =
|
#{userId},
|
</if>
|
<if test="preUpdateTime != null">pre_update_time =
|
#{preUpdateTime},
|
</if>
|
<if test="famousDoctorRankName != null">famous_doctor_rank_name =
|
#{famousDoctorRankName},
|
</if>
|
<if test="personnelBirthday != null">personnel_birthday =
|
#{personnelBirthday},
|
</if>
|
<if test="staffTitle != null">staff_title =
|
#{staffTitle},
|
</if>
|
<if test="signPic != null">sign_pic =
|
#{signPic},
|
</if>
|
<if test="createTime != null">create_time =
|
#{createTime},
|
</if>
|
<if test="telphone != null">telphone =
|
#{telphone},
|
</if>
|
<if test="employPostCode != null">employ_post_code =
|
#{employPostCode},
|
</if>
|
<if test="defaultDeptId != null">default_dept_id =
|
#{defaultDeptId},
|
</if>
|
<if test="depts != null">depts =
|
#{depts},
|
</if>
|
<if test="staffId != null">staff_id =
|
#{staffId},
|
</if>
|
<if test="staffLevel != null">staff_level =
|
#{staffLevel},
|
</if>
|
<if test="selfCollectDialecticalFees != null">self_collect_dialectical_fees =
|
#{selfCollectDialecticalFees},
|
</if>
|
<if test="subIds != null">sub_ids =
|
#{subIds},
|
</if>
|
<if test="defaultWardId != null and defaultWardId != ''">
|
default_ward_id = #{defaultWardId},
|
</if>
|
<if test="defaultHisWardId != null and defaultHisWardId != ''">
|
default_his_ward_id = #{defaultHisWardId},
|
</if>
|
<if test="defaultWardName != null and defaultWardName != ''">
|
default_ward_name = #{defaultWardName},
|
</if>
|
<if test="guid != null and guid != ''">
|
guid = #{guid},
|
</if> <if test="orgid != null and orgid != ''">
|
orgid = #{orgid},
|
</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<update id="deleteSysUserImportById" parameterType="Long">
|
update sys_user_import
|
<trim prefix="SET" suffixOverrides=",">
|
del_flag =1
|
</trim>
|
where id = #{id}
|
</update>
|
|
<update id="deleteSysUserImportByIds" parameterType="String">
|
update sys_user_import
|
<trim prefix="SET" suffixOverrides=",">
|
del_flag =1
|
</trim>
|
where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</update>
|
|
|
</mapper>
|