.
18516761980
2022-03-19 9ff5e64187837a3bbd78370c1cfaadf2329f97f0
src/main/java/zy/cloud/wms/manager/controller/WorkController.java
@@ -201,8 +201,9 @@
    // 获取所有单据类型
    @RequestMapping("/docType/all/get")
    @ManagerAuth
    public R getDocTypeData() {
        List<DocType> docTypes = docTypeService.selectList(new EntityWrapper<DocType>().eq("status", 1).eq("host_id", getHostId()).orderBy("create_time", false).eq("doc_class",1));
    public R getDocTypeData(Integer docClass) {
        List<DocType> docTypes = docTypeService.selectList(new EntityWrapper<DocType>().eq("status", 1).
                eq("host_id", getHostId()).orderBy("create_time", false).eq("doc_class",docClass));
        return R.ok().add(docTypes);
    }