|
|
@@ -657,7 +657,7 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
// 2. 数据库校验:是否已存在开票记录
|
|
|
Integer count = baseMapper.invoicingCheck(invoicingVo);
|
|
|
if (count > 0) {
|
|
|
- log.info("数据库已存在开票记录,直接禁止");
|
|
|
+ log.info("数据库已存在开票记录,直接禁止开票");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
@@ -830,7 +830,7 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
log.info("开票异常.invoicingVo=[{}]",JSONUtil.toJsonStr(invoicingVo), e);
|
|
|
// 回滚事务
|
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
- return null;
|
|
|
+ throw new ServiceException(Objects.toString(e.getMessage(),"开票异常"));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -844,9 +844,9 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
if(invoicingVo == null){
|
|
|
throw new ServiceException("无法开票,开票参数为空");
|
|
|
}
|
|
|
- if(StrUtil.isEmpty(invoicingVo.getInvoiceNo())){
|
|
|
- throw new ServiceException("发票号不能为空");
|
|
|
- }
|
|
|
+// if(StrUtil.isEmpty(invoicingVo.getInvoiceNo())){
|
|
|
+// throw new ServiceException("发票号不能为空");
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
@Override
|