| | |
| | | JSONObject jsonObject = JSON.parseObject(o.toString()); |
| | | jsonObject.put("locNo", locMast.getLocNo());//设置库位号 |
| | | jsonObject.put("locSts", locMast.getLocSts());//库位状态 |
| | | jsonObject.put("locSts$", locMast.getLocSts$());//库位状态 |
| | | // jsonObject.put("locSts$", locMast.getLocSts$());//库位状态 |
| | | //更新list |
| | | rowData.set(bay, jsonObject); |
| | | arrayLists.set(row, rowData); |
| | |
| | | @RequestParam("matnr") String matnr, |
| | | @RequestParam("maktx") String maktx |
| | | ) { |
| | | List<LocDetl> locDetls = locDetlService.searchByLike(orderNo, matnr, maktx, specs, locNo); |
| | | List<LocDetl> locDetls = locDetlService.searchByLike(orderNo, matnr, maktx, specs, ""); |
| | | ArrayList<LocDetl> lists = new ArrayList<>(); |
| | | for (LocDetl locDetl : locDetls) {//过滤掉不是当前楼层的数据 |
| | | int lev1 = Utils.getLev(locDetl.getLocNo()); |
| | |
| | | lists.add(locDetl); |
| | | } |
| | | } |
| | | |
| | | //搜索指定库位号,即使库位为空,也可以返回数据 |
| | | LocMast locMast = locMastService.selectById(locNo); |
| | | if (locMast != null) { |
| | | LocDetl locDetl = new LocDetl(); |
| | | locDetl.setLocNo(locMast.getLocNo()); |
| | | lists.add(locDetl); |
| | | } |
| | | return R.ok().add(lists); |
| | | } |
| | | |