| | |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (a.batch IS NULL OR a.batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | and b.row1 >= 1 |
| | | and b.row1 <= 3 |
| | | group by b.bay1 |
| | |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (a.batch IS NULL OR a.batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | and b.row1 >= 4 |
| | | and b.row1 <= 7 |
| | | group by b.bay1 |
| | |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (a.batch IS NULL OR a.batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | and b.row1 >= 8 |
| | | and b.row1 <= 11 |
| | | group by b.bay1 |
| | |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (a.batch IS NULL OR a.batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | and b.row1 >= 12 |
| | | and b.row1 <= 14 |
| | | group by b.bay1 |
| | |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (a.batch IS NULL OR a.batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | and b.row1 >= 15 |
| | | and b.row1 <= 18 |
| | | group by b.bay1 |
| | |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | and a.manu is null |
| | | and a.matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (a.batch IS NULL OR a.batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | and b.row1 >= 19 |
| | | and b.row1 <= 21 |
| | | group by b.bay1 |
| | |
| | | </if> |
| | | ) |
| | | and a.matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (a.batch IS NULL OR a.batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | and b.bay1 = #{bay} |
| | | and b.loc_sts = 'F' and b.frozen != 1 |
| | | order by b.row1 |