|
|
@ -1602,6 +1602,7 @@ public class InvoicePoolServiceImpl implements InvoicePoolService { |
|
|
|
SalesInvoicePushInfos infos = null; |
|
|
|
SalesInvoicePushInfos infos = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|
infos = JSONObject.parseObject(requestParam.get("data"), SalesInvoicePushInfos.class); |
|
|
|
infos = JSONObject.parseObject(requestParam.get("data"), SalesInvoicePushInfos.class); |
|
|
|
|
|
|
|
log.info("接受到的销项票池发票信息为:{}",infos); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
run.setReturnCode(ReturnCodeEnum.QQBWGSCW.getFhzDm()); |
|
|
|
run.setReturnCode(ReturnCodeEnum.QQBWGSCW.getFhzDm()); |
|
|
|
run.setReturnMessage(ReturnCodeEnum.QQBWGSCW.getFhzMc(ReturnCodeEnum.QQBWGSCW.getIndex())); |
|
|
|
run.setReturnMessage(ReturnCodeEnum.QQBWGSCW.getFhzMc(ReturnCodeEnum.QQBWGSCW.getIndex())); |
|
|
@ -1652,6 +1653,7 @@ public class InvoicePoolServiceImpl implements InvoicePoolService { |
|
|
|
TdxSaleRecordInvoice saleRecordInvoice = tdxSaleRecordInvoiceDao |
|
|
|
TdxSaleRecordInvoice saleRecordInvoice = tdxSaleRecordInvoiceDao |
|
|
|
.selectOne(new QueryWrapper<TdxSaleRecordInvoice>().eq("uuid", invoiceCode + invoiceNo)); |
|
|
|
.selectOne(new QueryWrapper<TdxSaleRecordInvoice>().eq("uuid", invoiceCode + invoiceNo)); |
|
|
|
if (saleRecordInvoice != null) { |
|
|
|
if (saleRecordInvoice != null) { |
|
|
|
|
|
|
|
log.info("更新销项票池"); |
|
|
|
TdxSaleRecordInvoice update = new TdxSaleRecordInvoice(); |
|
|
|
TdxSaleRecordInvoice update = new TdxSaleRecordInvoice(); |
|
|
|
update.setId(saleRecordInvoice.getId()); |
|
|
|
update.setId(saleRecordInvoice.getId()); |
|
|
|
update.setQsDate(new Date()); |
|
|
|
update.setQsDate(new Date()); |
|
|
@ -1674,7 +1676,7 @@ public class InvoicePoolServiceImpl implements InvoicePoolService { |
|
|
|
return JSONObject.toJSONString(interfaceCode, SerializerFeature.WriteMapNullValue); |
|
|
|
return JSONObject.toJSONString(interfaceCode, SerializerFeature.WriteMapNullValue); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
log.info("插入销项票池"); |
|
|
|
TdxSaleRecordInvoice invoiceInfo = getSaleInvoiceInfo(infos); |
|
|
|
TdxSaleRecordInvoice invoiceInfo = getSaleInvoiceInfo(infos); |
|
|
|
invoiceInfo.setUuid(invoiceCode + invoiceNo); |
|
|
|
invoiceInfo.setUuid(invoiceCode + invoiceNo); |
|
|
|
invoiceInfo.setCompany(company); |
|
|
|
invoiceInfo.setCompany(company); |
|
|
|