自动化立体仓库 - WMS系统
pang.jiabao
13 小时以前 90f1bff060e0ddca05e9a8e4f2f841d1c6c0a574
src/main/java/com/zy/asrs/controller/DocTypeController.java
@@ -119,6 +119,44 @@
        return R.ok(result);
    }
    // 只查入库单据
    @RequestMapping(value = "/docTypeQueryIn/auth")
    @ManagerAuth
    public R queryIn(String condition) {
        EntityWrapper<DocType> wrapper = new EntityWrapper<>();
        wrapper.like("doc_name", condition);
        wrapper.eq("status", 1);
        wrapper.eq("pakin", 1);
        Page<DocType> page = docTypeService.selectPage(new Page<>(0, 30), wrapper);
        List<Map<String, Object>> result = new ArrayList<>();
        for (DocType docType : page.getRecords()) {
            Map<String, Object> map = new HashMap<>();
            map.put("id", docType.getDocId());
            map.put("value", docType.getDocName());
            result.add(map);
        }
        return R.ok(result);
    }
    // 只查出库单据
    @RequestMapping(value = "/docTypeQueryOut/auth")
    @ManagerAuth
    public R queryOut(String condition) {
        EntityWrapper<DocType> wrapper = new EntityWrapper<>();
        wrapper.like("doc_name", condition);
        wrapper.eq("status", 1);
        wrapper.eq("pakout", 1);
        Page<DocType> page = docTypeService.selectPage(new Page<>(0, 30), wrapper);
        List<Map<String, Object>> result = new ArrayList<>();
        for (DocType docType : page.getRecords()) {
            Map<String, Object> map = new HashMap<>();
            map.put("id", docType.getDocId());
            map.put("value", docType.getDocName());
            result.add(map);
        }
        return R.ok(result);
    }
    @RequestMapping(value = "/docType/check/column/auth")
    @ManagerAuth
    public R query(@RequestBody JSONObject param) {