<?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.HospitalUserinfoMapper"> 
 | 
  
 | 
    <resultMap type="com.smartor.domain.HospitalUserinfo" id="HospitalUserinfoResult"> 
 | 
        <result property="ID" column="ID"/> 
 | 
        <result property="SourceSystem" column="SourceSystem"/> 
 | 
        <result property="MessageID" column="MessageID"/> 
 | 
        <result property="CreateTime" column="CreateTime"/> 
 | 
        <result property="MethodName" column="MethodName"/> 
 | 
        <result property="ReqIimRules" column="ReqIimRules"/> 
 | 
        <result property="PatientID" column="PatientID"/> 
 | 
        <result property="VisitNum" column="VisitNum"/> 
 | 
        <result property="RegDate" column="RegDate"/> 
 | 
        <result property="IdentityID" column="IdentityID"/> 
 | 
        <result property="PatName" column="PatName"/> 
 | 
        <result property="Phone" column="Phone"/> 
 | 
        <result property="PatSex" column="PatSex"/> 
 | 
        <result property="BirthDate" column="BirthDate"/> 
 | 
        <result property="Address" column="Address"/> 
 | 
        <result property="AddProvince" column="AddProvince"/> 
 | 
        <result property="AddCity" column="AddCity"/> 
 | 
        <result property="AddCounty" column="AddCounty"/> 
 | 
        <result property="AddTown" column="AddTown"/> 
 | 
        <result property="AddVillage" column="AddVillage"/> 
 | 
        <result property="AddHouseNo" column="AddHouseNo"/> 
 | 
        <result property="HouseAddress" column="HouseAddress"/> 
 | 
        <result property="HouseAddProvince" column="HouseAddProvince"/> 
 | 
        <result property="HouseAddCity" column="HouseAddCity"/> 
 | 
        <result property="HouseAddCounty" column="HouseAddCounty"/> 
 | 
        <result property="HouseAddTown" column="HouseAddTown"/> 
 | 
        <result property="HouseAddVillage" column="HouseAddVillage"/> 
 | 
        <result property="HouseAddHouseNo" column="HouseAddHouseNo"/> 
 | 
        <result property="BirthAddress" column="BirthAddress"/> 
 | 
        <result property="BirthAddProvince" column="BirthAddProvince"/> 
 | 
        <result property="BirthAddCity" column="BirthAddCity"/> 
 | 
        <result property="BirthAddCounty" column="BirthAddCounty"/> 
 | 
        <result property="BirthAddTown" column="BirthAddTown"/> 
 | 
        <result property="BirthAddVillage" column="BirthAddVillage"/> 
 | 
        <result property="BirthAddHouseNo" column="BirthAddHouseNo"/> 
 | 
        <result property="ContactsAddress" column="ContactsAddress"/> 
 | 
        <result property="ContactsAddProvince" column="ContactsAddProvince"/> 
 | 
        <result property="ContactsAddCity" column="ContactsAddCity"/> 
 | 
        <result property="ContactsAddCounty" column="ContactsAddCounty"/> 
 | 
        <result property="ContactsAddTown" column="ContactsAddTown"/> 
 | 
        <result property="ContactsAddVillage" column="ContactsAddVillage"/> 
 | 
        <result property="ContactsAddHouseNo" column="ContactsAddHouseNo"/> 
 | 
        <result property="NativeAddress" column="NativeAddress"/> 
 | 
        <result property="NativeAddProvince" column="NativeAddProvince"/> 
 | 
        <result property="NativeAddCity" column="NativeAddCity"/> 
 | 
        <result property="NativeAddCounty" column="NativeAddCounty"/> 
 | 
        <result property="NativeAddTown" column="NativeAddTown"/> 
 | 
        <result property="NativeAddVillage" column="NativeAddVillage"/> 
 | 
        <result property="NativeAddHouseNo" column="NativeAddHouseNo"/> 
 | 
        <result property="PostalCode" column="PostalCode"/> 
 | 
        <result property="HouseCode" column="HouseCode"/> 
 | 
        <result property="WorkCode" column="WorkCode"/> 
 | 
        <result property="MaritalStatus" column="MaritalStatus"/> 
 | 
        <result property="Country" column="Country"/> 
 | 
        <result property="Nation" column="Nation"/> 
 | 
        <result property="NationCode" column="NationCode"/> 
 | 
        <result property="OccupType" column="OccupType"/> 
 | 
        <result property="OccupTypeCode" column="OccupTypeCode"/> 
 | 
        <result property="WorkUnit" column="WorkUnit"/> 
 | 
        <result property="WorkPhone" column="WorkPhone"/> 
 | 
        <result property="HCardNo" column="HCardNo"/> 
 | 
        <result property="HCIssuersCode" column="HCIssuersCode"/> 
 | 
        <result property="HUrbanCode" column="HUrbanCode"/> 
 | 
        <result property="MedOrgCode" column="MedOrgCode"/> 
 | 
        <result property="paycode" column="paycode"/> 
 | 
        <result property="payname" column="payname"/> 
 | 
        <result property="ConRelShip" column="ConRelShip"/> 
 | 
        <result property="ConPerPhone" column="ConPerPhone"/> 
 | 
        <result property="ConPerName" column="ConPerName"/> 
 | 
        <result property="RegOrgCode" column="RegOrgCode"/> 
 | 
        <result property="RegOrgDesc" column="RegOrgDesc"/> 
 | 
        <result property="InsureOrgName" column="InsureOrgName"/> 
 | 
        <result property="InsureOrgCode" column="InsureOrgCode"/> 
 | 
        <result property="RegEmpCode" column="RegEmpCode"/> 
 | 
        <result property="RegEmpName" column="RegEmpName"/> 
 | 
        <result property="INEnroomno" column="INEnroomno"/> 
 | 
        <result property="OUTEnroomno" column="OUTEnroomno"/> 
 | 
        <result property="EncAdmSource" column="EncAdmSource"/> 
 | 
        <result property="Directordoc" column="Directordoc"/> 
 | 
        <result property="Attenddoc" column="Attenddoc"/> 
 | 
        <result property="Beddoc" column="Beddoc"/> 
 | 
        <result property="Bednur" column="Bednur"/> 
 | 
        <result property="Regdoc" column="Regdoc"/> 
 | 
        <result property="guid" column="guid"/> 
 | 
        <result property="orgid" column="orgid"/> 
 | 
    </resultMap> 
 | 
  
 | 
    <sql id="selectHospitalUserinfoVo"> 
 | 
        select ID, 
 | 
               SourceSystem, 
 | 
               MessageID, 
 | 
               CreateTime, 
 | 
               MethodName, 
 | 
               ReqIimRules, 
 | 
               PatientID, 
 | 
               VisitNum, 
 | 
               RegDate, 
 | 
               IdentityID, 
 | 
               PatName, 
 | 
               Phone, 
 | 
               PatSex, 
 | 
               BirthDate, 
 | 
               Address, 
 | 
               AddProvince, 
 | 
               AddCity, 
 | 
               AddCounty, 
 | 
               AddTown, 
 | 
               AddVillage, 
 | 
               AddHouseNo, 
 | 
               HouseAddress, 
 | 
               HouseAddProvince, 
 | 
               HouseAddCity, 
 | 
               HouseAddCounty, 
 | 
               HouseAddTown, 
 | 
               HouseAddVillage, 
 | 
               HouseAddHouseNo, 
 | 
               BirthAddress, 
 | 
               BirthAddProvince, 
 | 
               BirthAddCity, 
 | 
               BirthAddCounty, 
 | 
               BirthAddTown, 
 | 
               BirthAddVillage, 
 | 
               BirthAddHouseNo, 
 | 
               ContactsAddress, 
 | 
               ContactsAddProvince, 
 | 
               ContactsAddCity, 
 | 
               ContactsAddCounty, 
 | 
               ContactsAddTown, 
 | 
               ContactsAddVillage, 
 | 
               ContactsAddHouseNo, 
 | 
               NativeAddress, 
 | 
               NativeAddProvince, 
 | 
               NativeAddCity, 
 | 
               NativeAddCounty, 
 | 
               NativeAddTown, 
 | 
               NativeAddVillage, 
 | 
               NativeAddHouseNo, 
 | 
               PostalCode, 
 | 
               HouseCode, 
 | 
               WorkCode, 
 | 
               MaritalStatus, 
 | 
               Country, 
 | 
               Nation, 
 | 
               NationCode, 
 | 
               OccupType, 
 | 
               OccupTypeCode, 
 | 
               WorkUnit, 
 | 
               WorkPhone, 
 | 
               HCardNo, 
 | 
               HCIssuersCode, 
 | 
               HUrbanCode, 
 | 
               MedOrgCode, 
 | 
               paycode, 
 | 
               payname, 
 | 
               ConRelShip, 
 | 
               ConPerPhone, 
 | 
               ConPerName, 
 | 
               RegOrgCode, 
 | 
               RegOrgDesc, 
 | 
               orgid, 
 | 
               InsureOrgName, 
 | 
               InsureOrgCode, 
 | 
               RegEmpCode, 
 | 
               RegEmpName, 
 | 
               INEnroomno, 
 | 
               OUTEnroomno, 
 | 
               EncAdmSource, 
 | 
               Directordoc, 
 | 
               Attenddoc, 
 | 
               Beddoc, 
 | 
               Bednur, 
 | 
               guid, 
 | 
               Regdoc 
 | 
        from hospital_userinfo 
 | 
    </sql> 
 | 
  
 | 
    <select id="selectHospitalUserinfoList" parameterType="HospitalUserinfo" resultMap="HospitalUserinfoResult"> 
 | 
        <include refid="selectHospitalUserinfoVo"/> 
 | 
        <where> 
 | 
            <if test="SourceSystem != null  and SourceSystem != ''">and SourceSystem = #{SourceSystem}</if> 
 | 
            <if test="MessageID != null  and MessageID != ''">and MessageID = #{MessageID}</if> 
 | 
            <if test="CreateTime != null  and CreateTime != ''">and CreateTime = #{CreateTime}</if> 
 | 
            <if test="MethodName != null  and MethodName != ''">and MethodName like concat('%', #{MethodName}, '%')</if> 
 | 
            <if test="ReqIimRules != null  and ReqIimRules != ''">and ReqIimRules = #{ReqIimRules}</if> 
 | 
            <if test="PatientID != null  and PatientID != ''">and PatientID = #{PatientID}</if> 
 | 
            <if test="VisitNum != null  and VisitNum != ''">and VisitNum = #{VisitNum}</if> 
 | 
            <if test="RegDate != null  and RegDate != ''">and RegDate = #{RegDate}</if> 
 | 
            <if test="IdentityID != null  and IdentityID != ''">and IdentityID = #{IdentityID}</if> 
 | 
            <if test="PatName != null  and PatName != ''">and PatName like concat('%', #{PatName}, '%')</if> 
 | 
            <if test="Phone != null  and Phone != ''">and Phone = #{Phone}</if> 
 | 
            <if test="PatSex != null  and PatSex != ''">and PatSex = #{PatSex}</if> 
 | 
            <if test="BirthDate != null  and BirthDate != ''">and BirthDate = #{BirthDate}</if> 
 | 
            <if test="Address != null  and Address != ''">and Address = #{Address}</if> 
 | 
            <if test="AddProvince != null  and AddProvince != ''">and AddProvince = #{AddProvince}</if> 
 | 
            <if test="AddCity != null  and AddCity != ''">and AddCity = #{AddCity}</if> 
 | 
            <if test="AddCounty != null  and AddCounty != ''">and AddCounty = #{AddCounty}</if> 
 | 
            <if test="AddTown != null  and AddTown != ''">and AddTown = #{AddTown}</if> 
 | 
            <if test="AddVillage != null  and AddVillage != ''">and AddVillage = #{AddVillage}</if> 
 | 
            <if test="AddHouseNo != null  and AddHouseNo != ''">and AddHouseNo = #{AddHouseNo}</if> 
 | 
            <if test="HouseAddress != null  and HouseAddress != ''">and HouseAddress = #{HouseAddress}</if> 
 | 
            <if test="HouseAddProvince != null  and HouseAddProvince != ''">and HouseAddProvince = #{HouseAddProvince} 
 | 
            </if> 
 | 
            <if test="HouseAddCity != null  and HouseAddCity != ''">and HouseAddCity = #{HouseAddCity}</if> 
 | 
            <if test="HouseAddCounty != null  and HouseAddCounty != ''">and HouseAddCounty = #{HouseAddCounty}</if> 
 | 
            <if test="HouseAddTown != null  and HouseAddTown != ''">and HouseAddTown = #{HouseAddTown}</if> 
 | 
            <if test="HouseAddVillage != null  and HouseAddVillage != ''">and HouseAddVillage = #{HouseAddVillage}</if> 
 | 
            <if test="HouseAddHouseNo != null  and HouseAddHouseNo != ''">and HouseAddHouseNo = #{HouseAddHouseNo}</if> 
 | 
            <if test="BirthAddress != null  and BirthAddress != ''">and BirthAddress = #{BirthAddress}</if> 
 | 
            <if test="BirthAddProvince != null  and BirthAddProvince != ''">and BirthAddProvince = #{BirthAddProvince} 
 | 
            </if> 
 | 
            <if test="BirthAddCity != null  and BirthAddCity != ''">and BirthAddCity = #{BirthAddCity}</if> 
 | 
            <if test="BirthAddCounty != null  and BirthAddCounty != ''">and BirthAddCounty = #{BirthAddCounty}</if> 
 | 
            <if test="BirthAddTown != null  and BirthAddTown != ''">and BirthAddTown = #{BirthAddTown}</if> 
 | 
            <if test="BirthAddVillage != null  and BirthAddVillage != ''">and BirthAddVillage = #{BirthAddVillage}</if> 
 | 
            <if test="BirthAddHouseNo != null  and BirthAddHouseNo != ''">and BirthAddHouseNo = #{BirthAddHouseNo}</if> 
 | 
            <if test="ContactsAddress != null  and ContactsAddress != ''">and ContactsAddress = #{ContactsAddress}</if> 
 | 
            <if test="ContactsAddProvince != null  and ContactsAddProvince != ''">and ContactsAddProvince = 
 | 
                #{ContactsAddProvince} 
 | 
            </if> 
 | 
            <if test="ContactsAddCity != null  and ContactsAddCity != ''">and ContactsAddCity = #{ContactsAddCity}</if> 
 | 
            <if test="ContactsAddCounty != null  and ContactsAddCounty != ''">and ContactsAddCounty = 
 | 
                #{ContactsAddCounty} 
 | 
            </if> 
 | 
            <if test="ContactsAddTown != null  and ContactsAddTown != ''">and ContactsAddTown = #{ContactsAddTown}</if> 
 | 
            <if test="ContactsAddVillage != null  and ContactsAddVillage != ''">and ContactsAddVillage = 
 | 
                #{ContactsAddVillage} 
 | 
            </if> 
 | 
            <if test="ContactsAddHouseNo != null  and ContactsAddHouseNo != ''">and ContactsAddHouseNo = 
 | 
                #{ContactsAddHouseNo} 
 | 
            </if> 
 | 
            <if test="NativeAddress != null  and NativeAddress != ''">and NativeAddress = #{NativeAddress}</if> 
 | 
            <if test="NativeAddProvince != null  and NativeAddProvince != ''">and NativeAddProvince = 
 | 
                #{NativeAddProvince} 
 | 
            </if> 
 | 
            <if test="NativeAddCity != null  and NativeAddCity != ''">and NativeAddCity = #{NativeAddCity}</if> 
 | 
            <if test="NativeAddCounty != null  and NativeAddCounty != ''">and NativeAddCounty = #{NativeAddCounty}</if> 
 | 
            <if test="NativeAddTown != null  and NativeAddTown != ''">and NativeAddTown = #{NativeAddTown}</if> 
 | 
            <if test="NativeAddVillage != null  and NativeAddVillage != ''">and NativeAddVillage = #{NativeAddVillage} 
 | 
            </if> 
 | 
            <if test="NativeAddHouseNo != null  and NativeAddHouseNo != ''">and NativeAddHouseNo = #{NativeAddHouseNo} 
 | 
            </if> 
 | 
            <if test="PostalCode != null  and PostalCode != ''">and PostalCode = #{PostalCode}</if> 
 | 
            <if test="HouseCode != null  and HouseCode != ''">and HouseCode = #{HouseCode}</if> 
 | 
            <if test="WorkCode != null  and WorkCode != ''">and WorkCode = #{WorkCode}</if> 
 | 
            <if test="MaritalStatus != null  and MaritalStatus != ''">and MaritalStatus = #{MaritalStatus}</if> 
 | 
            <if test="Country != null  and Country != ''">and Country = #{Country}</if> 
 | 
            <if test="Nation != null  and Nation != ''">and Nation = #{Nation}</if> 
 | 
            <if test="NationCode != null  and NationCode != ''">and NationCode = #{NationCode}</if> 
 | 
            <if test="OccupType != null  and OccupType != ''">and OccupType = #{OccupType}</if> 
 | 
            <if test="OccupTypeCode != null  and OccupTypeCode != ''">and OccupTypeCode = #{OccupTypeCode}</if> 
 | 
            <if test="WorkUnit != null  and WorkUnit != ''">and WorkUnit = #{WorkUnit}</if> 
 | 
            <if test="WorkPhone != null  and WorkPhone != ''">and WorkPhone = #{WorkPhone}</if> 
 | 
            <if test="HCardNo != null  and HCardNo != ''">and HCardNo = #{HCardNo}</if> 
 | 
            <if test="HCIssuersCode != null  and HCIssuersCode != ''">and HCIssuersCode = #{HCIssuersCode}</if> 
 | 
            <if test="HUrbanCode != null  and HUrbanCode != ''">and HUrbanCode = #{HUrbanCode}</if> 
 | 
            <if test="MedOrgCode != null  and MedOrgCode != ''">and MedOrgCode = #{MedOrgCode}</if> 
 | 
            <if test="paycode != null  and paycode != ''">and paycode = #{paycode}</if> 
 | 
            <if test="payname != null  and payname != ''">and payname like concat('%', #{payname}, '%')</if> 
 | 
            <if test="ConRelShip != null  and ConRelShip != ''">and ConRelShip = #{ConRelShip}</if> 
 | 
            <if test="ConPerPhone != null  and ConPerPhone != ''">and ConPerPhone = #{ConPerPhone}</if> 
 | 
            <if test="ConPerName != null  and ConPerName != ''">and ConPerName like concat('%', #{ConPerName}, '%')</if> 
 | 
            <if test="RegOrgCode != null  and RegOrgCode != ''">and RegOrgCode = #{RegOrgCode}</if> 
 | 
            <if test="RegOrgDesc != null  and RegOrgDesc != ''">and RegOrgDesc = #{RegOrgDesc}</if> 
 | 
            <if test="InsureOrgName != null  and InsureOrgName != ''">and InsureOrgName like concat('%', 
 | 
                #{InsureOrgName}, '%') 
 | 
            </if> 
 | 
            <if test="InsureOrgCode != null  and InsureOrgCode != ''">and InsureOrgCode = #{InsureOrgCode}</if> 
 | 
            <if test="RegEmpCode != null  and RegEmpCode != ''">and RegEmpCode = #{RegEmpCode}</if> 
 | 
            <if test="RegEmpName != null  and RegEmpName != ''">and RegEmpName like concat('%', #{RegEmpName}, '%')</if> 
 | 
            <if test="INEnroomno != null  and INEnroomno != ''">and INEnroomno = #{INEnroomno}</if> 
 | 
            <if test="OUTEnroomno != null  and OUTEnroomno != ''">and OUTEnroomno = #{OUTEnroomno}</if> 
 | 
            <if test="EncAdmSource != null  and EncAdmSource != ''">and EncAdmSource = #{EncAdmSource}</if> 
 | 
            <if test="Directordoc != null  and Directordoc != ''">and Directordoc = #{Directordoc}</if> 
 | 
            <if test="Attenddoc != null  and Attenddoc != ''">and Attenddoc = #{Attenddoc}</if> 
 | 
            <if test="Beddoc != null  and Beddoc != ''">and Beddoc = #{Beddoc}</if> 
 | 
            <if test="Bednur != null  and Bednur != ''">and Bednur = #{Bednur}</if> 
 | 
            <if test="Regdoc != null  and Regdoc != ''">and Regdoc = #{Regdoc}</if> 
 | 
            <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if> 
 | 
        </where> 
 | 
    </select> 
 | 
  
 | 
    <select id="selectHospitalUserinfoByID" parameterType="Long" resultMap="HospitalUserinfoResult"> 
 | 
        <include refid="selectHospitalUserinfoVo"/> 
 | 
        where ID = #{ID} 
 | 
    </select> 
 | 
  
 | 
    <insert id="insertHospitalUserinfo" parameterType="com.smartor.domain.HospitalUserinfo" useGeneratedKeys="true" keyProperty="ID"> 
 | 
        insert into hospital_userinfo 
 | 
        <trim prefix="(" suffix=")" suffixOverrides=","> 
 | 
            <if test="SourceSystem != null">SourceSystem,</if> 
 | 
            <if test="MessageID != null">MessageID,</if> 
 | 
            <if test="CreateTime != null  and CreateTime != ''">CreateTime,</if> 
 | 
            <if test="MethodName != null">MethodName,</if> 
 | 
            <if test="ReqIimRules != null">ReqIimRules,</if> 
 | 
            <if test="PatientID != null">PatientID,</if> 
 | 
            <if test="VisitNum != null">VisitNum,</if> 
 | 
            <if test="RegDate != null">RegDate,</if> 
 | 
            <if test="IdentityID != null">IdentityID,</if> 
 | 
            <if test="PatName != null">PatName,</if> 
 | 
            <if test="Phone != null">Phone,</if> 
 | 
            <if test="PatSex != null">PatSex,</if> 
 | 
            <if test="BirthDate != null">BirthDate,</if> 
 | 
            <if test="Address != null">Address,</if> 
 | 
            <if test="AddProvince != null">AddProvince,</if> 
 | 
            <if test="AddCity != null">AddCity,</if> 
 | 
            <if test="AddCounty != null">AddCounty,</if> 
 | 
            <if test="AddTown != null">AddTown,</if> 
 | 
            <if test="AddVillage != null">AddVillage,</if> 
 | 
            <if test="AddHouseNo != null">AddHouseNo,</if> 
 | 
            <if test="HouseAddress != null">HouseAddress,</if> 
 | 
            <if test="HouseAddProvince != null">HouseAddProvince,</if> 
 | 
            <if test="HouseAddCity != null">HouseAddCity,</if> 
 | 
            <if test="HouseAddCounty != null">HouseAddCounty,</if> 
 | 
            <if test="HouseAddTown != null">HouseAddTown,</if> 
 | 
            <if test="HouseAddVillage != null">HouseAddVillage,</if> 
 | 
            <if test="HouseAddHouseNo != null">HouseAddHouseNo,</if> 
 | 
            <if test="BirthAddress != null">BirthAddress,</if> 
 | 
            <if test="BirthAddProvince != null">BirthAddProvince,</if> 
 | 
            <if test="BirthAddCity != null">BirthAddCity,</if> 
 | 
            <if test="BirthAddCounty != null">BirthAddCounty,</if> 
 | 
            <if test="BirthAddTown != null">BirthAddTown,</if> 
 | 
            <if test="BirthAddVillage != null">BirthAddVillage,</if> 
 | 
            <if test="BirthAddHouseNo != null">BirthAddHouseNo,</if> 
 | 
            <if test="ContactsAddress != null">ContactsAddress,</if> 
 | 
            <if test="ContactsAddProvince != null">ContactsAddProvince,</if> 
 | 
            <if test="ContactsAddCity != null">ContactsAddCity,</if> 
 | 
            <if test="ContactsAddCounty != null">ContactsAddCounty,</if> 
 | 
            <if test="ContactsAddTown != null">ContactsAddTown,</if> 
 | 
            <if test="ContactsAddVillage != null">ContactsAddVillage,</if> 
 | 
            <if test="ContactsAddHouseNo != null">ContactsAddHouseNo,</if> 
 | 
            <if test="NativeAddress != null">NativeAddress,</if> 
 | 
            <if test="NativeAddProvince != null">NativeAddProvince,</if> 
 | 
            <if test="NativeAddCity != null">NativeAddCity,</if> 
 | 
            <if test="NativeAddCounty != null">NativeAddCounty,</if> 
 | 
            <if test="NativeAddTown != null">NativeAddTown,</if> 
 | 
            <if test="NativeAddVillage != null">NativeAddVillage,</if> 
 | 
            <if test="NativeAddHouseNo != null">NativeAddHouseNo,</if> 
 | 
            <if test="PostalCode != null">PostalCode,</if> 
 | 
            <if test="HouseCode != null">HouseCode,</if> 
 | 
            <if test="WorkCode != null">WorkCode,</if> 
 | 
            <if test="MaritalStatus != null">MaritalStatus,</if> 
 | 
            <if test="Country != null">Country,</if> 
 | 
            <if test="Nation != null">Nation,</if> 
 | 
            <if test="NationCode != null">NationCode,</if> 
 | 
            <if test="OccupType != null">OccupType,</if> 
 | 
            <if test="OccupTypeCode != null">OccupTypeCode,</if> 
 | 
            <if test="WorkUnit != null">WorkUnit,</if> 
 | 
            <if test="WorkPhone != null">WorkPhone,</if> 
 | 
            <if test="HCardNo != null">HCardNo,</if> 
 | 
            <if test="HCIssuersCode != null">HCIssuersCode,</if> 
 | 
            <if test="HUrbanCode != null">HUrbanCode,</if> 
 | 
            <if test="MedOrgCode != null">MedOrgCode,</if> 
 | 
            <if test="paycode != null">paycode,</if> 
 | 
            <if test="payname != null">payname,</if> 
 | 
            <if test="ConRelShip != null">ConRelShip,</if> 
 | 
            <if test="ConPerPhone != null">ConPerPhone,</if> 
 | 
            <if test="ConPerName != null">ConPerName,</if> 
 | 
            <if test="RegOrgCode != null">RegOrgCode,</if> 
 | 
            <if test="RegOrgDesc != null">RegOrgDesc,</if> 
 | 
            <if test="InsureOrgName != null">InsureOrgName,</if> 
 | 
            <if test="InsureOrgCode != null">InsureOrgCode,</if> 
 | 
            <if test="RegEmpCode != null">RegEmpCode,</if> 
 | 
            <if test="RegEmpName != null">RegEmpName,</if> 
 | 
            <if test="INEnroomno != null">INEnroomno,</if> 
 | 
            <if test="OUTEnroomno != null">OUTEnroomno,</if> 
 | 
            <if test="EncAdmSource != null">EncAdmSource,</if> 
 | 
            <if test="Directordoc != null">Directordoc,</if> 
 | 
            <if test="Attenddoc != null">Attenddoc,</if> 
 | 
            <if test="Beddoc != null">Beddoc,</if> 
 | 
            <if test="Bednur != null">Bednur,</if> 
 | 
            <if test="Regdoc != null">Regdoc,</if> 
 | 
            <if test="guid != null">guid,</if> 
 | 
            <if test="orgid != null">orgid,</if> 
 | 
        </trim> 
 | 
        <trim prefix="values (" suffix=")" suffixOverrides=","> 
 | 
            <if test="SourceSystem != null">#{SourceSystem},</if> 
 | 
            <if test="MessageID != null">#{MessageID},</if> 
 | 
            <if test="CreateTime != null and CreateTime != ''">#{CreateTime},</if> 
 | 
            <if test="MethodName != null">#{MethodName},</if> 
 | 
            <if test="ReqIimRules != null">#{ReqIimRules},</if> 
 | 
            <if test="PatientID != null">#{PatientID},</if> 
 | 
            <if test="VisitNum != null">#{VisitNum},</if> 
 | 
            <if test="RegDate != null">#{RegDate},</if> 
 | 
            <if test="IdentityID != null">#{IdentityID},</if> 
 | 
            <if test="PatName != null">#{PatName},</if> 
 | 
            <if test="Phone != null">#{Phone},</if> 
 | 
            <if test="PatSex != null">#{PatSex},</if> 
 | 
            <if test="BirthDate != null">#{BirthDate},</if> 
 | 
            <if test="Address != null">#{Address},</if> 
 | 
            <if test="AddProvince != null">#{AddProvince},</if> 
 | 
            <if test="AddCity != null">#{AddCity},</if> 
 | 
            <if test="AddCounty != null">#{AddCounty},</if> 
 | 
            <if test="AddTown != null">#{AddTown},</if> 
 | 
            <if test="AddVillage != null">#{AddVillage},</if> 
 | 
            <if test="AddHouseNo != null">#{AddHouseNo},</if> 
 | 
            <if test="HouseAddress != null">#{HouseAddress},</if> 
 | 
            <if test="HouseAddProvince != null">#{HouseAddProvince},</if> 
 | 
            <if test="HouseAddCity != null">#{HouseAddCity},</if> 
 | 
            <if test="HouseAddCounty != null">#{HouseAddCounty},</if> 
 | 
            <if test="HouseAddTown != null">#{HouseAddTown},</if> 
 | 
            <if test="HouseAddVillage != null">#{HouseAddVillage},</if> 
 | 
            <if test="HouseAddHouseNo != null">#{HouseAddHouseNo},</if> 
 | 
            <if test="BirthAddress != null">#{BirthAddress},</if> 
 | 
            <if test="BirthAddProvince != null">#{BirthAddProvince},</if> 
 | 
            <if test="BirthAddCity != null">#{BirthAddCity},</if> 
 | 
            <if test="BirthAddCounty != null">#{BirthAddCounty},</if> 
 | 
            <if test="BirthAddTown != null">#{BirthAddTown},</if> 
 | 
            <if test="BirthAddVillage != null">#{BirthAddVillage},</if> 
 | 
            <if test="BirthAddHouseNo != null">#{BirthAddHouseNo},</if> 
 | 
            <if test="ContactsAddress != null">#{ContactsAddress},</if> 
 | 
            <if test="ContactsAddProvince != null">#{ContactsAddProvince},</if> 
 | 
            <if test="ContactsAddCity != null">#{ContactsAddCity},</if> 
 | 
            <if test="ContactsAddCounty != null">#{ContactsAddCounty},</if> 
 | 
            <if test="ContactsAddTown != null">#{ContactsAddTown},</if> 
 | 
            <if test="ContactsAddVillage != null">#{ContactsAddVillage},</if> 
 | 
            <if test="ContactsAddHouseNo != null">#{ContactsAddHouseNo},</if> 
 | 
            <if test="NativeAddress != null">#{NativeAddress},</if> 
 | 
            <if test="NativeAddProvince != null">#{NativeAddProvince},</if> 
 | 
            <if test="NativeAddCity != null">#{NativeAddCity},</if> 
 | 
            <if test="NativeAddCounty != null">#{NativeAddCounty},</if> 
 | 
            <if test="NativeAddTown != null">#{NativeAddTown},</if> 
 | 
            <if test="NativeAddVillage != null">#{NativeAddVillage},</if> 
 | 
            <if test="NativeAddHouseNo != null">#{NativeAddHouseNo},</if> 
 | 
            <if test="PostalCode != null">#{PostalCode},</if> 
 | 
            <if test="HouseCode != null">#{HouseCode},</if> 
 | 
            <if test="WorkCode != null">#{WorkCode},</if> 
 | 
            <if test="MaritalStatus != null">#{MaritalStatus},</if> 
 | 
            <if test="Country != null">#{Country},</if> 
 | 
            <if test="Nation != null">#{Nation},</if> 
 | 
            <if test="NationCode != null">#{NationCode},</if> 
 | 
            <if test="OccupType != null">#{OccupType},</if> 
 | 
            <if test="OccupTypeCode != null">#{OccupTypeCode},</if> 
 | 
            <if test="WorkUnit != null">#{WorkUnit},</if> 
 | 
            <if test="WorkPhone != null">#{WorkPhone},</if> 
 | 
            <if test="HCardNo != null">#{HCardNo},</if> 
 | 
            <if test="HCIssuersCode != null">#{HCIssuersCode},</if> 
 | 
            <if test="HUrbanCode != null">#{HUrbanCode},</if> 
 | 
            <if test="MedOrgCode != null">#{MedOrgCode},</if> 
 | 
            <if test="paycode != null">#{paycode},</if> 
 | 
            <if test="payname != null">#{payname},</if> 
 | 
            <if test="ConRelShip != null">#{ConRelShip},</if> 
 | 
            <if test="ConPerPhone != null">#{ConPerPhone},</if> 
 | 
            <if test="ConPerName != null">#{ConPerName},</if> 
 | 
            <if test="RegOrgCode != null">#{RegOrgCode},</if> 
 | 
            <if test="RegOrgDesc != null">#{RegOrgDesc},</if> 
 | 
            <if test="InsureOrgName != null">#{InsureOrgName},</if> 
 | 
            <if test="InsureOrgCode != null">#{InsureOrgCode},</if> 
 | 
            <if test="RegEmpCode != null">#{RegEmpCode},</if> 
 | 
            <if test="RegEmpName != null">#{RegEmpName},</if> 
 | 
            <if test="INEnroomno != null">#{INEnroomno},</if> 
 | 
            <if test="OUTEnroomno != null">#{OUTEnroomno},</if> 
 | 
            <if test="EncAdmSource != null">#{EncAdmSource},</if> 
 | 
            <if test="Directordoc != null">#{Directordoc},</if> 
 | 
            <if test="Attenddoc != null">#{Attenddoc},</if> 
 | 
            <if test="Beddoc != null">#{Beddoc},</if> 
 | 
            <if test="Bednur != null">#{Bednur},</if> 
 | 
            <if test="Regdoc != null">#{Regdoc},</if> 
 | 
            <if test="guid != null">#{guid},</if> 
 | 
            <if test="orgid != null">#{orgid},</if> 
 | 
        </trim> 
 | 
    </insert> 
 | 
  
 | 
    <update id="updateHospitalUserinfo" parameterType="com.smartor.domain.HospitalUserinfo"> 
 | 
        update hospital_userinfo 
 | 
        <trim prefix="SET" suffixOverrides=","> 
 | 
            <if test="SourceSystem != null">SourceSystem = #{SourceSystem},</if> 
 | 
            <if test="MessageID != null">MessageID = #{MessageID},</if> 
 | 
            <if test="CreateTime != null">CreateTime = #{CreateTime},</if> 
 | 
            <if test="MethodName != null">MethodName = #{MethodName},</if> 
 | 
            <if test="ReqIimRules != null">ReqIimRules = #{ReqIimRules},</if> 
 | 
            <if test="PatientID != null">PatientID = #{PatientID},</if> 
 | 
            <if test="VisitNum != null">VisitNum = #{VisitNum},</if> 
 | 
            <if test="RegDate != null">RegDate = #{RegDate},</if> 
 | 
            <if test="IdentityID != null">IdentityID = #{IdentityID},</if> 
 | 
            <if test="PatName != null">PatName = #{PatName},</if> 
 | 
            <if test="Phone != null">Phone = #{Phone},</if> 
 | 
            <if test="PatSex != null">PatSex = #{PatSex},</if> 
 | 
            <if test="BirthDate != null">BirthDate = #{BirthDate},</if> 
 | 
            <if test="Address != null">Address = #{Address},</if> 
 | 
            <if test="AddProvince != null">AddProvince = #{AddProvince},</if> 
 | 
            <if test="AddCity != null">AddCity = #{AddCity},</if> 
 | 
            <if test="AddCounty != null">AddCounty = #{AddCounty},</if> 
 | 
            <if test="AddTown != null">AddTown = #{AddTown},</if> 
 | 
            <if test="AddVillage != null">AddVillage = #{AddVillage},</if> 
 | 
            <if test="AddHouseNo != null">AddHouseNo = #{AddHouseNo},</if> 
 | 
            <if test="HouseAddress != null">HouseAddress = #{HouseAddress},</if> 
 | 
            <if test="HouseAddProvince != null">HouseAddProvince = #{HouseAddProvince},</if> 
 | 
            <if test="HouseAddCity != null">HouseAddCity = #{HouseAddCity},</if> 
 | 
            <if test="HouseAddCounty != null">HouseAddCounty = #{HouseAddCounty},</if> 
 | 
            <if test="HouseAddTown != null">HouseAddTown = #{HouseAddTown},</if> 
 | 
            <if test="HouseAddVillage != null">HouseAddVillage = #{HouseAddVillage},</if> 
 | 
            <if test="HouseAddHouseNo != null">HouseAddHouseNo = #{HouseAddHouseNo},</if> 
 | 
            <if test="BirthAddress != null">BirthAddress = #{BirthAddress},</if> 
 | 
            <if test="BirthAddProvince != null">BirthAddProvince = #{BirthAddProvince},</if> 
 | 
            <if test="BirthAddCity != null">BirthAddCity = #{BirthAddCity},</if> 
 | 
            <if test="BirthAddCounty != null">BirthAddCounty = #{BirthAddCounty},</if> 
 | 
            <if test="BirthAddTown != null">BirthAddTown = #{BirthAddTown},</if> 
 | 
            <if test="BirthAddVillage != null">BirthAddVillage = #{BirthAddVillage},</if> 
 | 
            <if test="BirthAddHouseNo != null">BirthAddHouseNo = #{BirthAddHouseNo},</if> 
 | 
            <if test="ContactsAddress != null">ContactsAddress = #{ContactsAddress},</if> 
 | 
            <if test="ContactsAddProvince != null">ContactsAddProvince = #{ContactsAddProvince},</if> 
 | 
            <if test="ContactsAddCity != null">ContactsAddCity = #{ContactsAddCity},</if> 
 | 
            <if test="ContactsAddCounty != null">ContactsAddCounty = #{ContactsAddCounty},</if> 
 | 
            <if test="ContactsAddTown != null">ContactsAddTown = #{ContactsAddTown},</if> 
 | 
            <if test="ContactsAddVillage != null">ContactsAddVillage = #{ContactsAddVillage},</if> 
 | 
            <if test="ContactsAddHouseNo != null">ContactsAddHouseNo = #{ContactsAddHouseNo},</if> 
 | 
            <if test="NativeAddress != null">NativeAddress = #{NativeAddress},</if> 
 | 
            <if test="NativeAddProvince != null">NativeAddProvince = #{NativeAddProvince},</if> 
 | 
            <if test="NativeAddCity != null">NativeAddCity = #{NativeAddCity},</if> 
 | 
            <if test="NativeAddCounty != null">NativeAddCounty = #{NativeAddCounty},</if> 
 | 
            <if test="NativeAddTown != null">NativeAddTown = #{NativeAddTown},</if> 
 | 
            <if test="NativeAddVillage != null">NativeAddVillage = #{NativeAddVillage},</if> 
 | 
            <if test="NativeAddHouseNo != null">NativeAddHouseNo = #{NativeAddHouseNo},</if> 
 | 
            <if test="PostalCode != null">PostalCode = #{PostalCode},</if> 
 | 
            <if test="HouseCode != null">HouseCode = #{HouseCode},</if> 
 | 
            <if test="WorkCode != null">WorkCode = #{WorkCode},</if> 
 | 
            <if test="MaritalStatus != null">MaritalStatus = #{MaritalStatus},</if> 
 | 
            <if test="Country != null">Country = #{Country},</if> 
 | 
            <if test="Nation != null">Nation = #{Nation},</if> 
 | 
            <if test="NationCode != null">NationCode = #{NationCode},</if> 
 | 
            <if test="OccupType != null">OccupType = #{OccupType},</if> 
 | 
            <if test="OccupTypeCode != null">OccupTypeCode = #{OccupTypeCode},</if> 
 | 
            <if test="WorkUnit != null">WorkUnit = #{WorkUnit},</if> 
 | 
            <if test="WorkPhone != null">WorkPhone = #{WorkPhone},</if> 
 | 
            <if test="HCardNo != null">HCardNo = #{HCardNo},</if> 
 | 
            <if test="HCIssuersCode != null">HCIssuersCode = #{HCIssuersCode},</if> 
 | 
            <if test="HUrbanCode != null">HUrbanCode = #{HUrbanCode},</if> 
 | 
            <if test="MedOrgCode != null">MedOrgCode = #{MedOrgCode},</if> 
 | 
            <if test="paycode != null">paycode = #{paycode},</if> 
 | 
            <if test="payname != null">payname = #{payname},</if> 
 | 
            <if test="ConRelShip != null">ConRelShip = #{ConRelShip},</if> 
 | 
            <if test="ConPerPhone != null">ConPerPhone = #{ConPerPhone},</if> 
 | 
            <if test="ConPerName != null">ConPerName = #{ConPerName},</if> 
 | 
            <if test="RegOrgCode != null">RegOrgCode = #{RegOrgCode},</if> 
 | 
            <if test="RegOrgDesc != null">RegOrgDesc = #{RegOrgDesc},</if> 
 | 
            <if test="InsureOrgName != null">InsureOrgName = #{InsureOrgName},</if> 
 | 
            <if test="InsureOrgCode != null">InsureOrgCode = #{InsureOrgCode},</if> 
 | 
            <if test="RegEmpCode != null">RegEmpCode = #{RegEmpCode},</if> 
 | 
            <if test="RegEmpName != null">RegEmpName = #{RegEmpName},</if> 
 | 
            <if test="INEnroomno != null">INEnroomno = #{INEnroomno},</if> 
 | 
            <if test="OUTEnroomno != null">OUTEnroomno = #{OUTEnroomno},</if> 
 | 
            <if test="EncAdmSource != null">EncAdmSource = #{EncAdmSource},</if> 
 | 
            <if test="Directordoc != null">Directordoc = #{Directordoc},</if> 
 | 
            <if test="Attenddoc != null">Attenddoc = #{Attenddoc},</if> 
 | 
            <if test="Beddoc != null">Beddoc = #{Beddoc},</if> 
 | 
            <if test="Bednur != null">Bednur = #{Bednur},</if> 
 | 
            <if test="Regdoc != null">Regdoc = #{Regdoc},</if> 
 | 
            <if test="guid != null">guid = #{guid},</if> 
 | 
            <if test="orgid != null">orgid = #{orgid},</if> 
 | 
        </trim> 
 | 
        where ID = #{ID} 
 | 
    </update> 
 | 
  
 | 
    <update id="updateHospitalUserinfoByPatientID" parameterType="com.smartor.domain.HospitalUserinfo"> 
 | 
        update hospital_userinfo 
 | 
        <trim prefix="SET" suffixOverrides=","> 
 | 
            <if test="SourceSystem != null">SourceSystem = #{SourceSystem},</if> 
 | 
            <if test="MessageID != null">MessageID = #{MessageID},</if> 
 | 
            <if test="CreateTime != null">CreateTime = #{CreateTime},</if> 
 | 
            <if test="MethodName != null">MethodName = #{MethodName},</if> 
 | 
            <if test="ReqIimRules != null">ReqIimRules = #{ReqIimRules},</if> 
 | 
            <if test="PatientID != null">PatientID = #{PatientID},</if> 
 | 
            <if test="VisitNum != null">VisitNum = #{VisitNum},</if> 
 | 
            <if test="RegDate != null">RegDate = #{RegDate},</if> 
 | 
            <if test="IdentityID != null">IdentityID = #{IdentityID},</if> 
 | 
            <if test="PatName != null">PatName = #{PatName},</if> 
 | 
            <if test="Phone != null">Phone = #{Phone},</if> 
 | 
            <if test="PatSex != null">PatSex = #{PatSex},</if> 
 | 
            <if test="BirthDate != null">BirthDate = #{BirthDate},</if> 
 | 
            <if test="Address != null">Address = #{Address},</if> 
 | 
            <if test="AddProvince != null">AddProvince = #{AddProvince},</if> 
 | 
            <if test="AddCity != null">AddCity = #{AddCity},</if> 
 | 
            <if test="AddCounty != null">AddCounty = #{AddCounty},</if> 
 | 
            <if test="AddTown != null">AddTown = #{AddTown},</if> 
 | 
            <if test="AddVillage != null">AddVillage = #{AddVillage},</if> 
 | 
            <if test="AddHouseNo != null">AddHouseNo = #{AddHouseNo},</if> 
 | 
            <if test="HouseAddress != null">HouseAddress = #{HouseAddress},</if> 
 | 
            <if test="HouseAddProvince != null">HouseAddProvince = #{HouseAddProvince},</if> 
 | 
            <if test="HouseAddCity != null">HouseAddCity = #{HouseAddCity},</if> 
 | 
            <if test="HouseAddCounty != null">HouseAddCounty = #{HouseAddCounty},</if> 
 | 
            <if test="HouseAddTown != null">HouseAddTown = #{HouseAddTown},</if> 
 | 
            <if test="HouseAddVillage != null">HouseAddVillage = #{HouseAddVillage},</if> 
 | 
            <if test="HouseAddHouseNo != null">HouseAddHouseNo = #{HouseAddHouseNo},</if> 
 | 
            <if test="BirthAddress != null">BirthAddress = #{BirthAddress},</if> 
 | 
            <if test="BirthAddProvince != null">BirthAddProvince = #{BirthAddProvince},</if> 
 | 
            <if test="BirthAddCity != null">BirthAddCity = #{BirthAddCity},</if> 
 | 
            <if test="BirthAddCounty != null">BirthAddCounty = #{BirthAddCounty},</if> 
 | 
            <if test="BirthAddTown != null">BirthAddTown = #{BirthAddTown},</if> 
 | 
            <if test="BirthAddVillage != null">BirthAddVillage = #{BirthAddVillage},</if> 
 | 
            <if test="BirthAddHouseNo != null">BirthAddHouseNo = #{BirthAddHouseNo},</if> 
 | 
            <if test="ContactsAddress != null">ContactsAddress = #{ContactsAddress},</if> 
 | 
            <if test="ContactsAddProvince != null">ContactsAddProvince = #{ContactsAddProvince},</if> 
 | 
            <if test="ContactsAddCity != null">ContactsAddCity = #{ContactsAddCity},</if> 
 | 
            <if test="ContactsAddCounty != null">ContactsAddCounty = #{ContactsAddCounty},</if> 
 | 
            <if test="ContactsAddTown != null">ContactsAddTown = #{ContactsAddTown},</if> 
 | 
            <if test="ContactsAddVillage != null">ContactsAddVillage = #{ContactsAddVillage},</if> 
 | 
            <if test="ContactsAddHouseNo != null">ContactsAddHouseNo = #{ContactsAddHouseNo},</if> 
 | 
            <if test="NativeAddress != null">NativeAddress = #{NativeAddress},</if> 
 | 
            <if test="NativeAddProvince != null">NativeAddProvince = #{NativeAddProvince},</if> 
 | 
            <if test="NativeAddCity != null">NativeAddCity = #{NativeAddCity},</if> 
 | 
            <if test="NativeAddCounty != null">NativeAddCounty = #{NativeAddCounty},</if> 
 | 
            <if test="NativeAddTown != null">NativeAddTown = #{NativeAddTown},</if> 
 | 
            <if test="NativeAddVillage != null">NativeAddVillage = #{NativeAddVillage},</if> 
 | 
            <if test="NativeAddHouseNo != null">NativeAddHouseNo = #{NativeAddHouseNo},</if> 
 | 
            <if test="PostalCode != null">PostalCode = #{PostalCode},</if> 
 | 
            <if test="HouseCode != null">HouseCode = #{HouseCode},</if> 
 | 
            <if test="WorkCode != null">WorkCode = #{WorkCode},</if> 
 | 
            <if test="MaritalStatus != null">MaritalStatus = #{MaritalStatus},</if> 
 | 
            <if test="Country != null">Country = #{Country},</if> 
 | 
            <if test="Nation != null">Nation = #{Nation},</if> 
 | 
            <if test="NationCode != null">NationCode = #{NationCode},</if> 
 | 
            <if test="OccupType != null">OccupType = #{OccupType},</if> 
 | 
            <if test="OccupTypeCode != null">OccupTypeCode = #{OccupTypeCode},</if> 
 | 
            <if test="WorkUnit != null">WorkUnit = #{WorkUnit},</if> 
 | 
            <if test="WorkPhone != null">WorkPhone = #{WorkPhone},</if> 
 | 
            <if test="HCardNo != null">HCardNo = #{HCardNo},</if> 
 | 
            <if test="HCIssuersCode != null">HCIssuersCode = #{HCIssuersCode},</if> 
 | 
            <if test="HUrbanCode != null">HUrbanCode = #{HUrbanCode},</if> 
 | 
            <if test="MedOrgCode != null">MedOrgCode = #{MedOrgCode},</if> 
 | 
            <if test="paycode != null">paycode = #{paycode},</if> 
 | 
            <if test="payname != null">payname = #{payname},</if> 
 | 
            <if test="ConRelShip != null">ConRelShip = #{ConRelShip},</if> 
 | 
            <if test="ConPerPhone != null">ConPerPhone = #{ConPerPhone},</if> 
 | 
            <if test="ConPerName != null">ConPerName = #{ConPerName},</if> 
 | 
            <if test="RegOrgCode != null">RegOrgCode = #{RegOrgCode},</if> 
 | 
            <if test="RegOrgDesc != null">RegOrgDesc = #{RegOrgDesc},</if> 
 | 
            <if test="InsureOrgName != null">InsureOrgName = #{InsureOrgName},</if> 
 | 
            <if test="InsureOrgCode != null">InsureOrgCode = #{InsureOrgCode},</if> 
 | 
            <if test="RegEmpCode != null">RegEmpCode = #{RegEmpCode},</if> 
 | 
            <if test="RegEmpName != null">RegEmpName = #{RegEmpName},</if> 
 | 
            <if test="INEnroomno != null">INEnroomno = #{INEnroomno},</if> 
 | 
            <if test="OUTEnroomno != null">OUTEnroomno = #{OUTEnroomno},</if> 
 | 
            <if test="EncAdmSource != null">EncAdmSource = #{EncAdmSource},</if> 
 | 
            <if test="Directordoc != null">Directordoc = #{Directordoc},</if> 
 | 
            <if test="Attenddoc != null">Attenddoc = #{Attenddoc},</if> 
 | 
            <if test="Beddoc != null">Beddoc = #{Beddoc},</if> 
 | 
            <if test="Bednur != null">Bednur = #{Bednur},</if> 
 | 
            <if test="Regdoc != null">Regdoc = #{Regdoc},</if> 
 | 
            <if test="guid != null">guid = #{guid},</if> 
 | 
            <if test="orgid != null">orgid = #{orgid},</if> 
 | 
        </trim> 
 | 
        where PatientID = #{PatientID} 
 | 
    </update> 
 | 
  
 | 
    <delete id="deleteHospitalUserinfoByID" parameterType="Long"> 
 | 
        delete 
 | 
        from hospital_userinfo 
 | 
        where ID = #{ID} 
 | 
    </delete> 
 | 
  
 | 
    <delete id="deleteHospitalUserinfoByIDs" parameterType="String"> 
 | 
        delete from hospital_userinfo where ID in 
 | 
        <foreach item="ID" collection="array" open="(" separator="," close=")"> 
 | 
            #{ID} 
 | 
        </foreach> 
 | 
    </delete> 
 | 
</mapper> 
 |