| | |
| | | and a.owner = #{owner} |
| | | </if> |
| | | <if test="batch !=null and batch!='' "> |
| | | and a.batch like #{batch} |
| | | and a.batch like '%' + #{batch} + '%' |
| | | </if> |
| | | </sql> |
| | | |
| | |
| | | |
| | | </select> |
| | | <select id="getStockStatisAll" resultType="com.zy.asrs.entity.result.LocDetlAll"> |
| | | select t.*,m.specs from |
| | | select t.* from |
| | | ( |
| | | select |
| | | ROW_NUMBER() over (order by sum(a.anfme) desc) as row |
| | | , a.matnr,a.batch |
| | | , sum(a.anfme) as anfme |
| | | ,sum (a.weight) as weight |
| | | ,owner |
| | | ,payment |
| | | from asr_loc_detl_all a |
| | |
| | | <include refid="stockOutCondition"></include> |
| | | group by a.matnr,a.batch,a.owner,a.payment |
| | | ) t |
| | | LEFT JOIN man_mat m on t.matnr = m.matnr |
| | | |
| | | where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |
| | | |