自动化立体仓库 - WMS系统
luxiaotao1123
2022-03-23 0cbc7c78492a530354321337366fa7d6af419f89
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();
    }