| | |
| | | select * from |
| | | ( |
| | | select |
| | | ROW_NUMBER() over (order by a.appe_time,a.matnr,a.loc_no) as row, |
| | | ROW_NUMBER() over (order by a.loc_no,a.appe_time,a.matnr) as row, |
| | | a.* |
| | | from asr_loc_detl a |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | and b.row1 >= 1 |
| | | and b.row1 <= 3 |
| | |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | and b.row1 >= 4 |
| | | and b.row1 <= 7 |
| | |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | and b.row1 >= 8 |
| | | and b.row1 <= 11 |
| | |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | and b.row1 >= 12 |
| | | and b.row1 <= 14 |
| | |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | and b.row1 >= 15 |
| | | and b.row1 <= 18 |
| | |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | and b.row1 >= 19 |
| | | and b.row1 <= 21 |