|  |  | 
 |  |  | <select id="queryViewInOutList" parameterType="com.zy.asrs.entity.ViewInOutBean" resultType="com.zy.asrs.entity.ViewInOutBean"> | 
 |  |  | select * from (  | 
 |  |  | select *,ROW_NUMBER() OVER(Order by ymd desc) as rowid | 
 |  |  |  from asr_sta_inout_view | 
 |  |  |  from man_loc_InOut_view | 
 |  |  | <where> | 
 |  |  |    1=1 | 
 |  |  |     <include refid="viewInOutConditionSql"></include> | 
 |  |  | 
 |  |  | </select> | 
 |  |  |  | 
 |  |  | <select id="getViewInOutCount" parameterType="com.zy.asrs.entity.ViewInOutBean"   resultType="Integer"> | 
 |  |  | select count(1) from asr_sta_inout_view a | 
 |  |  | select count(1) from man_loc_InOut_view a | 
 |  |  | <where> | 
 |  |  | <![CDATA[ | 
 |  |  |    1=1 | 
 |  |  | 
 |  |  |    ]]> | 
 |  |  | </where> | 
 |  |  | </select> | 
 |  |  |     <select id="selectWorkCountInSum" resultType="java.lang.Integer"> | 
 |  |  |       SELECT SUM(anfme) FROM asr_wrkin_count_view WHERE 1=1 AND | 
 |  |  |       (oneday > #{start} | 
 |  |  |       AND | 
 |  |  |       oneday < #{end}) | 
 |  |  |       <if test="matnr != null and matnr !=''"> | 
 |  |  |          and matnr = #{matnr} | 
 |  |  |       </if> | 
 |  |  |    </select> | 
 |  |  |    <select id="selectWorkCountOutSum" resultType="java.lang.Integer"> | 
 |  |  |       SELECT SUM(anfme) FROM asr_wrkout_count_view WHERE 1=1 AND | 
 |  |  |       (oneday > #{start} | 
 |  |  |       AND | 
 |  |  |       oneday < #{end}) | 
 |  |  |       <if test="matnr != null and matnr !=''"> | 
 |  |  |          and matnr = #{matnr} | 
 |  |  |       </if> | 
 |  |  |    </select> | 
 |  |  |  | 
 |  |  | </mapper> |