Merge branch 'bfasrs' of http://47.97.1.152:5880/r/zy-asrs into bfasrs
| | |
| | | |
| | | // ------------------------------------------------- |
| | | |
| | | List<QueryStockPreDo> queryStockPre(@Param("matnr")String matnr); |
| | | List<QueryStockPreDo> queryStockPre(@Param("matnr")String matnr, @Param("batch")String batch); |
| | | |
| | | List<LocDetl> queryStock(@Param("matnr")String matnr, @Param("no") Integer no, @Param("orderBy") String orderBy, @Param("bay") Integer bay); |
| | | List<LocDetl> queryStock(@Param("matnr")String matnr, @Param("batch")String batch, @Param("no") Integer no, @Param("orderBy") String orderBy, @Param("bay") Integer bay); |
| | | |
| | | Double queryStockAnfme(String matnr, String batch); |
| | | |
| | |
| | | @Override |
| | | public List<LocDetl> queryStock(String matnr, String batch, String orderNo, Set<String> locNos) { |
| | | List<LocDetl> result = new ArrayList<>(); |
| | | List<QueryStockPreDo> preDos = this.baseMapper.queryStockPre(matnr); |
| | | List<QueryStockPreDo> preDos = this.baseMapper.queryStockPre(matnr, batch); |
| | | for (QueryStockPreDo preDo : preDos) { |
| | | List<LocDetl> locDetls = this.baseMapper.queryStock(matnr, preDo.getNo(), preDo.getOrderBy(), preDo.getBay()); |
| | | List<LocDetl> locDetls = this.baseMapper.queryStock(matnr, batch, preDo.getNo(), preDo.getOrderBy(), preDo.getBay()); |
| | | result.addAll(locDetls); |
| | | } |
| | | return result; |
| | |
| | | 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 |