Commit de24f3cd authored by wangyangyang's avatar wangyangyang

编码自动生成报错修改

parent bb00b9c7
......@@ -101,6 +101,9 @@ public class DocumentEvent {
} else if (ObjectUtils.isEmpty(documentVO.getMasterId())) {
//新建文档,校验编号是否存在
String number = documentVO.getNumber();
if (StringUtils.isEmpty(number)){
return;
}
DxDocumentVO dxDocumentVO = extDocUtil.searchDocByNumber(number);
if (!ObjectUtils.isEmpty(dxDocumentVO)) {
throw new DxBusinessException("-1", "文档编号已存在");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment