ariesy 解决邮箱发送底账库不存在发票不成功

release
yefei 2 years ago
parent cd86171148
commit 4f3dee13db
  1. 7
      dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/SignFpqsServiceImpl.java

@ -3445,7 +3445,7 @@ public class SignFpqsServiceImpl extends MpBaseServiceImpl<SignRecordInvoiceDao,
List<QsExcelEntity> excelList = selectWqsfp(pramsMap);
log.info("excelList {}",excelList);
ExcelWriter excelWriter = null;
if(excelList != null){
if(excelList != null && excelList.size() > 0){
// String fileName = "签收数据导出" + ".xlsx";
ByteArrayOutputStream outputStream = null;
try {
@ -3474,6 +3474,11 @@ public class SignFpqsServiceImpl extends MpBaseServiceImpl<SignRecordInvoiceDao,
}
}
}
}else{
JSONObject json = new JSONObject();
json.put("code", "9999");
json.put("msg", "发送的发票信息在公司发票信息库不存在,请检查签收信息是否正确!");
return super.responseResult(json);
}
JSONObject json = new JSONObject();
json.put("code", "9999");

Loading…
Cancel
Save