|
|
|
@ -556,6 +556,18 @@ public class ConfirmServiceImpl extends ServiceImpl<ConfirmDao, TDxHttpLog> impl |
|
|
|
|
// } else {
|
|
|
|
|
// applyInvoice.setYxse(list.get(i).getDkTaxAmount().toString());
|
|
|
|
|
// }
|
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if("31".equals(list.get(i).getInvoiceType())){ |
|
|
|
|
applyInvoice.setYxse(list.get(i).getDkTaxAmount().toString()); |
|
|
|
|
}else { |
|
|
|
@ -630,7 +642,7 @@ public class ConfirmServiceImpl extends ServiceImpl<ConfirmDao, TDxHttpLog> impl |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.info("申请认证执行失败"); |
|
|
|
|
log.error("申请认证执行失败,失败原因是:{}",e); |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|