|
|
|
@ -238,7 +238,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
|
|
|
|
|
|
//推送票池
|
|
|
|
|
try { |
|
|
|
|
if (StringUtils.isNotBlank(commonTsMqData.getFpTsMqData().getFpdm()) && StringUtils.isNotBlank(commonTsMqData.getFpTsMqData().getFphm())) { |
|
|
|
|
if (StringUtils.isNotBlank(commonTsMqData.getFpTsMqData().getFphm())) { |
|
|
|
|
pushTicketPoolService.pushTicketPool(commonTsMqData.getFpTsMqData().getFpdm(), commonTsMqData.getFpTsMqData().getFphm(), commonTsMqData.getNsrsbh()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -259,7 +259,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
|
} |
|
|
|
|
//推送票池
|
|
|
|
|
try { |
|
|
|
|
if (StringUtils.isNotBlank(commonTsMqData.getZfTsMqData().getFpdm()) && StringUtils.isNotBlank(commonTsMqData.getZfTsMqData().getFphm())) { |
|
|
|
|
if (StringUtils.isNotBlank(commonTsMqData.getZfTsMqData().getFphm())) { |
|
|
|
|
pushTicketPoolService.pushTicketPool(commonTsMqData.getZfTsMqData().getFpdm(), commonTsMqData.getZfTsMqData().getFphm(), commonTsMqData.getNsrsbh()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1452,7 +1452,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
|
fpkjtsReqSap.setZHSJEY(ddfpxx.getJSHJ()); |
|
|
|
|
fpkjtsReqSap.setZHSJE(ddfpxx.getJSHJ()); |
|
|
|
|
fpkjtsReqSap.setZZBZ(ddfpxx.getBZ()); |
|
|
|
|
fpkjtsReqSap.setZFPZT(ConfigureConstant.STRING_0);//0-正常、1-作废
|
|
|
|
|
fpkjtsReqSap.setZFPZT(ddfpxx.getZFBZ());//0-正常、1-作废
|
|
|
|
|
String formatKprq = ""; |
|
|
|
|
try { |
|
|
|
|
Date date = (Date) new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ddfpxx.getKPRQ()); |
|
|
|
@ -1481,6 +1481,14 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
|
fpkjtsReqSap.setZYWDJ(ddfpxx.getBillNum()); |
|
|
|
|
fpkjtsReqSap.setIMGID(ddfpxx.getDocuId()); |
|
|
|
|
fpkjtsReqSap.setZBZDH(ddfpxx.getBillNum()); |
|
|
|
|
// String zfbz = ddfpxx.getZFBZ();
|
|
|
|
|
// String chbz = ddfpxx.getCHBZ();
|
|
|
|
|
// fpkjtsReqSap.setZFPZT();
|
|
|
|
|
if(StringUtils.isNotBlank(ddfpxx.getYFPHM())){ |
|
|
|
|
fpkjtsReqSap.setZYFPDM(ddfpxx.getYFPDM()); |
|
|
|
|
fpkjtsReqSap.setZYFPHM(ddfpxx.getYFPHM()); |
|
|
|
|
fpkjtsReqSap.setZHZXXB(StringUtils.isNotBlank(ddfpxx.getHZXXBBH())?ddfpxx.getHZXXBBH():""); |
|
|
|
|
} |
|
|
|
|
if(OrderInfoEnum.SYS_SOURCE_DSXT01.getKey().equals(ddfpxx.getXtly()) || |
|
|
|
|
OrderInfoEnum.SYS_SOURCE_DSXT02.getKey().equals(ddfpxx.getXtly())){ |
|
|
|
|
fpkjtsReqSap.setPDFZJL(ddfpxx.getPDFZJL()); |
|
|
|
@ -1595,7 +1603,13 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
|
log.info("{}推送接口orderProcessInfo数据:{}", LOGGER_MSG, JsonUtils.getInstance().toJsonString(orderProcessInfo)); |
|
|
|
|
if(OrderInfoEnum.SYS_SOURCE_SNYXX.getKey().equals(orderProcessInfo.getXtly())){ |
|
|
|
|
List<OrderProcessInfo> orderProcessInfos = orderProcessService.queryOrderProcessInfoByBzdh(orderProcessInfo.getBzdh(), shList); |
|
|
|
|
int count = (int)orderProcessInfos.stream().filter(t -> OrderInfoEnum.ORDER_STATUS_5.getKey().equals(t.getDdzt())).count(); |
|
|
|
|
int count = (int)orderProcessInfos.stream().filter(t ->{ |
|
|
|
|
if(new BigDecimal(orderProcessInfo.getKphjje()).compareTo(BigDecimal.ZERO) > 0){ |
|
|
|
|
return OrderInfoEnum.ORDER_STATUS_5.getKey().equals(t.getDdzt()); |
|
|
|
|
}else{ |
|
|
|
|
return OrderInfoEnum.ORDER_STATUS_7.getKey().equals(t.getDdzt()); |
|
|
|
|
} |
|
|
|
|
}).count(); |
|
|
|
|
if(orderProcessInfos.size() != count){ |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
@ -1904,7 +1918,11 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
|
resultToyxVo.setBuyerName(orderInvoiceInfo.getGhfMc()); |
|
|
|
|
resultToyxVo.setSellerName(orderInvoiceInfo.getXhfMc()); |
|
|
|
|
String terminalCode = orderInvoiceInfo.getSksbdm(); |
|
|
|
|
if(OrderInfoEnum.ORDER_INVOICE_TYPE_51.getValue().equals(orderInvoiceInfo.getFpzlDm()) || OrderInfoEnum.ORDER_INVOICE_TYPE_52.getValue().equals(orderInvoiceInfo.getFpzlDm())){ |
|
|
|
|
if(OrderInfoEnum.ORDER_INVOICE_TYPE_51.getValue().equals(orderInvoiceInfo.getFpzlDm()) |
|
|
|
|
|| OrderInfoEnum.ORDER_INVOICE_TYPE_52.getValue().equals(orderInvoiceInfo.getFpzlDm()) |
|
|
|
|
|| OrderInfoEnum.ORDER_INVOICE_TYPE_01.getValue().equals(orderInvoiceInfo.getFpzlDm()) |
|
|
|
|
|| OrderInfoEnum.ORDER_INVOICE_TYPE_02.getValue().equals(orderInvoiceInfo.getFpzlDm()) |
|
|
|
|
){ |
|
|
|
|
OrderInfo orderInfo = orderInfoService.selectOrderInfoByOrderId(orderProcessInfo.getOrderInfoId(), shList); |
|
|
|
|
List<FileDownLoad> fileDownLoadList = orderInvoiceInfoService.getInvoiceFile(orderInfo.getDdlx(), orderInvoiceInfo.getFpzlDm(), orderInvoiceInfo.getPdfUrl(), orderInvoiceInfo.getKplsh(), orderInvoiceInfo.getFpdm(), orderInvoiceInfo.getFphm(), orderInvoiceInfo.getXhfNsrsbh(), terminalCode,""); |
|
|
|
|
if (ObjectUtil.isNotEmpty(fileDownLoadList)) { |
|
|
|
|