自动化立体仓库 - WMS系统
pjb
3 天以前 e50218d4ba057a4a33af708ad13b8ef77c41e91c
src/main/java/com/zy/asrs/controller/LocDetlController.java
@@ -412,12 +412,12 @@
                    @RequestParam(defaultValue = "10")Integer limit,
                    @RequestParam Map<String, Object> param) {
        Page<LocDetl> stockStatis = locDetlService.getStockStatis(toPage(curr, limit, param, LocDetl.class));
        for (LocDetl locDetl : stockStatis.getRecords()) {
            Mat mat = matService.selectByMatnr(locDetl.getMatnr());
            if (mat != null) {
                locDetl.sync(mat);
            }
        }
//        for (LocDetl locDetl : stockStatis.getRecords()) {
//            Mat mat = matService.selectByMatnr(locDetl.getMatnr());
//            if (mat != null) {
//                locDetl.sync(mat);
//            }
//        }
        return R.ok().add(stockStatis);
    }
@@ -451,7 +451,7 @@
    @RequestMapping("/locDetl/count")
    public R getAllCount(){
        Integer sum = locDetlService.sum();
        return R.ok(sum);
        return R.ok(sum == null ? 0 : sum);
    }
}