|
|
|
@ -556,9 +556,23 @@ public class ConfirmServiceImpl extends ServiceImpl<ConfirmDao, TDxHttpLog> impl |
|
|
|
|
// } else {
|
|
|
|
|
// applyInvoice.setYxse(list.get(i).getDkTaxAmount().toString());
|
|
|
|
|
// }
|
|
|
|
|
if("31".equals(list.get(i).getInvoiceType())){ |
|
|
|
|
if("31".equals(list.get(i).getInvoiceType()) ||"32".equals(list.get(i).getInvoiceType()) |
|
|
|
|
|| "185".equals(list.get(i).getInvoiceType())){ |
|
|
|
|
if(StringUtils.isNotEmpty(list.get(i).getInvoiceNo()) && list.get(i).getInvoiceNo().length() == 20){ |
|
|
|
|
|
|
|
|
|
String invoiceCode = list.get(i).getInvoiceNo().substring(0,12); |
|
|
|
|
String invoiceNum = list.get(i).getInvoiceNo().substring(12); |
|
|
|
|
log.info("全电发票申请认证 invoiceCode={},invoiceNum={}",invoiceCode,invoiceNum); |
|
|
|
|
applyInvoice.setInvoiceCode(invoiceCode); |
|
|
|
|
applyInvoice.setInvoiceNo(invoiceNum); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.info("list.get(i).getDkTaxAmount() = {}",list.get(i).getDkTaxAmount()); |
|
|
|
|
log.info("list.get(i).getTaxAmount() = {}",list.get(i).getTaxAmount()); |
|
|
|
|
if("31".equals(list.get(i).getInvoiceType()) && list.get(i).getDkTaxAmount() != null){ |
|
|
|
|
applyInvoice.setYxse(list.get(i).getDkTaxAmount().toString()); |
|
|
|
|
}else { |
|
|
|
|
}else if(list.get(i).getTaxAmount() != null){ |
|
|
|
|
applyInvoice.setYxse(list.get(i).getTaxAmount().toString()); |
|
|
|
|
} |
|
|
|
|
if("4".equals(list.get(i).getRzlx()) || "6".equals(list.get(i).getRzlx())) { |
|
|
|
@ -630,7 +644,7 @@ public class ConfirmServiceImpl extends ServiceImpl<ConfirmDao, TDxHttpLog> impl |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.info("申请认证执行失败"); |
|
|
|
|
log.error("申请认证执行失败,失败原因是:{}",e); |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|