int 类型为空判断
if ("0".equals(String.valueOf(operatorDocument.getDocumentType())) || "null".equals(String.valueOf(operatorDocument.getDocumentType())) || operatorDocument.getDocumentType() <= 0){
/**文档类型不能为空*/
throw new BusinessException(ExceptionCode.EXCEPTION_CODE0201);
}
文档名称重复判断,过滤自身ID
if(Base.isNotNull(operatorDocuments) && !operatorDocuments.getDocumentId().equals(operatorDocument.getDocumentId())) { throw new BusinessException(ExceptionCode.EXCEPTION_CODE0205); }