| | |
| | | ( |
| | | select |
| | | no = 1, |
| | | orderBy = 'false', |
| | | b.bay1 as bay, |
| | | sum(anfme) as count |
| | | from asr_loc_detl a |
| | |
| | | union |
| | | select |
| | | no = 2, |
| | | orderBy = 'true', |
| | | b.bay1, |
| | | sum(anfme) as count |
| | | from asr_loc_detl a |
| | |
| | | union |
| | | select |
| | | no = 3, |
| | | orderBy = 'false', |
| | | b.bay1, |
| | | sum(anfme) as count |
| | | from asr_loc_detl a |
| | |
| | | union |
| | | select |
| | | no = 4, |
| | | orderBy = 'true', |
| | | b.bay1, |
| | | sum(anfme) as count |
| | | from asr_loc_detl a |
| | |
| | | union |
| | | select |
| | | no = 5, |
| | | orderBy = 'false', |
| | | b.bay1, |
| | | sum(anfme) as count |
| | | from asr_loc_detl a |
| | |
| | | union |
| | | select |
| | | no = 6, |
| | | orderBy = 'true', |
| | | b.bay1, |
| | | sum(anfme) as count |
| | | from asr_loc_detl a |
| | |
| | | and a.matnr = #{matnr} |
| | | and b.bay1 = #{bay} |
| | | and b.loc_sts = 'F' |
| | | order by b.row1 asc |
| | | order by b.row1 |
| | | <if test="orderBy != null and orderBy != '' and orderBy == 'false'"> |
| | | desc |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="queryStockAnfme" resultType="java.lang.Double"> |