|  |  | 
 |  |  |       <if test="specs != null and specs != ''"> | 
 |  |  |          and specs like concat('%',#{specs},'%') | 
 |  |  |       </if> | 
 |  |  |    <if test="outOrderNo != null and outOrderNo != ''"> | 
 |  |  |       and out_order_no like concat('%',#{outOrderNo},'%') | 
 |  |  |    </if> | 
 |  |  |    <if test="sPgNO != null and sPgNO != ''"> | 
 |  |  |       and pg_no like concat('%',#{sPgNO},'%') | 
 |  |  |    </if> | 
 |  |  | </sql> | 
 |  |  |  | 
 |  |  | <sql id="viewWorkOutConditionSql"> | 
 |  |  | 
 |  |  | <!-- 分页查询所有信息 --> | 
 |  |  | <select id="queryViewWorkInList" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultType="com.zy.asrs.entity.ViewWorkInBean"> | 
 |  |  |    select | 
 |  |  |    * | 
 |  |  |    *,out_order_no outOrderNo,pg_no sPgNO | 
 |  |  |    from ( | 
 |  |  |       select | 
 |  |  |       ROW_NUMBER() OVER(Order by t.io_time desc) as row | 
 |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |    select | 
 |  |  |    * | 
 |  |  |    *,out_order_no outOrderNo,pg_no sPgNO | 
 |  |  |    from ( | 
 |  |  |       select | 
 |  |  |       ROW_NUMBER() OVER(Order by t.io_time desc) as row | 
 |  |  |       , * | 
 |  |  |       from ( | 
 |  |  |          select * | 
 |  |  |          from asr_wrkout_view | 
 |  |  |          where 1=1 | 
 |  |  |          <include refid="viewWorkInConditionSql"></include> | 
 |  |  |       ) t | 
 |  |  |    select | 
 |  |  |    ROW_NUMBER() OVER(Order by t.io_time desc) as row | 
 |  |  |    , * | 
 |  |  |    from ( | 
 |  |  |    select * | 
 |  |  |    from asr_wrkout_view | 
 |  |  |    where 1=1 | 
 |  |  |    <include refid="viewWorkInConditionSql"></include> | 
 |  |  |    ) t | 
 |  |  |    ) a where 1=1 and a.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) | 
 |  |  |  | 
 |  |  | </select> |