src/main/java/zy/cloud/wms/manager/controller/DocTypeController.java
@@ -66,6 +66,13 @@ @RequestMapping(value = "/docType/add/auth") @ManagerAuth public R add(DocType docType) { if(Cools.isEmpty(docType) || null==docType.getDocId()) { return R.error(); } DocType one = docTypeService.selectOne(new EntityWrapper<DocType>().eq("doc_id", docType.getDocId())); if(!Cools.isEmpty(one)){ return R.error("单据编码已存在"); } docType.setHostId(getHostId()); docType.setCreateBy(getUserId()); docType.setCreateTime(new Date());