自动化立体仓库 - WMS系统
luxiaotao1123
2022-03-23 9b50ae798149b64f9e3413897ff96d4084a9a7aa
src/main/java/com/zy/asrs/controller/DocTypeController.java
@@ -60,6 +60,11 @@
    @RequestMapping(value = "/docType/add/auth")
    @ManagerAuth
    public R add(DocType docType) {
        docType.setStatus(1);
        docType.setCreateBy(getUserId());
        docType.setCreateTime(new Date());
        docType.setUpdateBy(getUserId());
        docType.setUpdateTime(new Date());
        docTypeService.insert(docType);
        return R.ok();
    }
@@ -70,6 +75,8 @@
        if (Cools.isEmpty(docType) || null==docType.getDocId()){
            return R.error();
        }
        docType.setUpdateBy(getUserId());
        docType.setUpdateTime(new Date());
        docTypeService.updateById(docType);
        return R.ok();
    }