| | |
| | | @RequestParam Map<String, Object> param) { |
| | | Page<LocDetl> stockStatis = locDetlService.getStockStatis(toPage(curr, limit, param, LocDetl.class)); |
| | | for (LocDetl locDetl : stockStatis.getRecords()) { |
| | | Double weight = locDetl.getWeight(); |
| | | String standby1 = locDetl.getStandby1(); |
| | | Mat mat = matService.selectByMatnr(locDetl.getMatnr()); |
| | | if (mat != null) { |
| | | locDetl.sync(mat); |
| | | locDetl.setStandby1(standby1); |
| | | locDetl.setWeight(weight); |
| | | } |
| | | } |
| | | return R.ok().add(stockStatis); |
| | |
| | | return R.ok(sum); |
| | | } |
| | | |
| | | /** |
| | | * 获取库存总数 |
| | | * @return |
| | | */ |
| | | @RequestMapping("/locDetl/count2") |
| | | public R getAllCount2(){ |
| | | Integer sum = locDetlService.sum2(); |
| | | return R.ok(sum); |
| | | } |
| | | |
| | | } |