| | |
| | | , a.maktx |
| | | , a.model |
| | | , a.volume |
| | | ,manu_date manuDate |
| | | ,batch |
| | | , sum(a.anfme) as anfme |
| | | ,sum(a.weight) weight |
| | | ,sum(a.man_length) manLength |
| | | from asr_loc_detl a |
| | | where 1=1 |
| | | <include refid="stockOutCondition"></include> |
| | | group by a.matnr,a.maktx,a.model,a.volume |
| | | group by a.matnr,a.maktx,a.model,a.volume,manu_date,batch |
| | | ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |
| | | |
| | |
| | | , a.maktx |
| | | , a.model |
| | | , a.volume |
| | | ,manu_date manuDate |
| | | ,batch |
| | | from asr_loc_detl a |
| | | where 1=1 |
| | | <include refid="stockOutCondition"></include> |
| | | group by a.matnr, a.maktx, a.model,a.volume |
| | | group by a.matnr,a.maktx,a.model,a.volume,manu_date,batch |
| | | ) b |
| | | </select> |
| | | |
| | |
| | | select |
| | | ROW_NUMBER() over (order by sum(a.anfme) desc) as row |
| | | , a.matnr |
| | | , a.maktx |
| | | , a.model |
| | | , a.volume |
| | | ,manu_date manuDate |
| | | ,batch |
| | | , sum(a.anfme) as anfme |
| | | ,sum(a.weight) weight |
| | | ,sum(a.man_length) manLength |
| | | from asr_loc_detl a |
| | | where 1=1 |
| | | group by a.matnr |
| | | group by a.matnr,a.maktx,a.model,a.volume,manu_date,batch |
| | | </select> |
| | | |
| | | <select id="selectPakoutByRule" resultMap="BaseResultMap"> |