| | |
| | | ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |
| | | |
| | | <select id="getStockStatisDate" resultType="com.zy.asrs.entity.LocDetl"> |
| | | select * from |
| | | ( |
| | | select |
| | | ROW_NUMBER() over (order by a.anfme,a.batch desc) as row |
| | | , a.matnr |
| | | , a.loc_no as locNo |
| | | , a.batch |
| | | , a.anfme |
| | | from asr_loc_detl a |
| | | where 1=1 |
| | | and batch!='' and batch is not null |
| | | <include refid="stockOutCondition"></include> |
| | | group by a.matnr,a.batch,a.anfme, a.loc_no |
| | | ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |
| | | |
| | | <select id="getStockStatisOut" resultType="com.zy.asrs.entity.LocDetl"> |
| | | select * from |
| | | ( |
| | |
| | | ) b |
| | | </select> |
| | | |
| | | <select id="getStockStatisDateCount" parameterType="java.util.Map" resultType="java.lang.Integer"> |
| | | select count(1) as count from |
| | | ( |
| | | select |
| | | a.matnr |
| | | from asr_loc_detl a |
| | | where 1=1 |
| | | <include refid="stockOutCondition"></include> |
| | | group by a.matnr |
| | | ) b |
| | | </select> |
| | | |
| | | <select id="getStockStatisOutCount" parameterType="java.util.Map" resultType="java.lang.Integer"> |
| | | select count(1) as count from |
| | | ( |