|  |  | 
 |  |  |     <resultMap type="com.ruoyi.common.core.domain.entity.SysUserDept" id="SysUserDeptResult"> | 
 |  |  |         <result property="id" column="id"/> | 
 |  |  |         <result property="orgid" column="orgid"/> | 
 |  |  |         <result property="userId" column="user_id"/> | 
 |  |  |         <result property="userCode" column="user_code"/> | 
 |  |  |         <result property="deptId" column="dept_id"/> | 
 |  |  |         <result property="delFlag" column="del_flag"/> | 
 |  |  |         <result property="deptCode" column="dept_code"/> | 
 |  |  | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="yhyksxx" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserDeptResult"> | 
 |  |  |         select user_id, user_code, dept_type,dept_code as dept_id,dept_code,dept_name,deptparent,del_flag,orgid | 
 |  |  |         select user_id , user_code , dept_type ,dept_code,dept_name,deptparent,del_flag,orgid | 
 |  |  |         FROM healthy_user_dept | 
 |  |  |         <where> | 
 |  |  |             user_id != 'admin' | 
 |  |  | 
 |  |  |             <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> | 
 |  |  |             <if test="viptype != null ">and viptype = #{viptype}</if> | 
 |  |  |             <if test="pattype != null ">and pattype = #{pattype}</if> | 
 |  |  |             <if test="patientno != null ">and patientno = #{patientno}</if> | 
 |  |  |             <if test="patientno != null ">and patientno = #{patientno} </if> | 
 |  |  |             <if test="patidHis != null ">and patid_his = #{patidHis}</if> | 
 |  |  |             <if test="sdFlag != null ">and sd_flag = #{sdFlag}</if> | 
 |  |  |             <if test="ageUnit != null ">and age_unit = #{ageUnit}</if> | 
 |  |  | 
 |  |  |             <if test="lastEndTime != null and lastEndTime != ''"> | 
 |  |  |                 and to_char(last_Update_Time, 'YYYY-MM-DD HH24:MI:SS') <= #{lastEndTime} | 
 |  |  |             </if> | 
 |  |  |             <if test="pageSize != null and pageSize!='' ">and rownum<#{pageSize}</if> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         </where> | 
 |  |  |     </select> | 
 |  |  |  |