|  |  | 
 |  |  |             <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> | 
 |  |  |  |