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(); }