陈昶聿
6 天以前 987e38327f849e1b13d8541246dde08d877db0e8
smartor/src/main/resources/mapper/smartor/HNGatherPatArchiveMapper.xml
@@ -368,6 +368,7 @@
        select user_id, role_id, orgid
        FROM yhyjsxx
        WHERE 1=1
            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
            <if test="hisUserId != null ">and user_id = #{hisUserId}</if>
        
@@ -378,6 +379,7 @@
        dept_id,dept_name,deptparent,del_flag,orgid,create_time,create_by,update_time,update_by
        FROM yhyksxx
        WHERE 1=1
            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
            AND user_id != 'admin'
            <if test="hisUserId != null ">and user_id = #{hisUserId}</if>
@@ -388,6 +390,7 @@
    <select id="selectPatArchiveList" parameterType="com.smartor.domain.PatArchive" resultMap="PatArchiveResult">
        <include refid="selectPatArchiveVo"/>
        WHERE 1=1
            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
            <if test="name != null  and name != ''">and name like concat('%', #{name}, '%')</if>
            <if test="idcardno != null  and idcardno != ''">and idcardno = #{idcardno}</if>
@@ -498,6 +501,7 @@
        FROM
        cryxx b
        WHERE 1=1
            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
            <if test="startOutHospTime != null ">and to_char(b.endtime,'YYMMDD') &gt;=
@@ -557,6 +561,7 @@
        mainsuit
        from mzxx
        WHERE 1=1
            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
            <if test="beginTime != null ">and to_char( admitdate,'YYMMDD') &gt;=
@@ -580,6 +585,7 @@
        icdpym
        from jbxx
        WHERE 1=1
            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
            <if test="icdcode != null  and icdcode != ''">and icdcode = #{icdcode}</if>
            <if test="lastflag != null  and lastflag != ''">and lastflag = #{lastflag}</if>
@@ -603,6 +609,7 @@
        u.login_ip, u.login_date, u.create_by, u.create_time, u.remark
        from ryxx u
        WHERE 1=1
            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
            <if test="userId != null and userId != 0">
                AND u.user_id = #{userId}