|
|
@ -5,22 +5,11 @@ import cn.hutool.core.util.RandomUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import cn.hutool.json.JSONUtil; |
|
|
|
import cn.hutool.json.JSONUtil; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.dxhy.order.constant.*; |
|
|
|
import com.dxhy.order.baseservice.config.BaseServiceConfig; |
|
|
|
import com.dxhy.order.exception.InterfaceException; |
|
|
|
|
|
|
|
import com.dxhy.order.exception.OrderReceiveException; |
|
|
|
|
|
|
|
import com.dxhy.order.model.*; |
|
|
|
|
|
|
|
import com.dxhy.order.model.ofd.OfdToPdfRequest; |
|
|
|
|
|
|
|
import com.dxhy.order.model.ofd.OfdToPdfResponse; |
|
|
|
|
|
|
|
import com.dxhy.order.model.qd.OrderInfoQd; |
|
|
|
|
|
|
|
import com.dxhy.order.model.queue.*; |
|
|
|
|
|
|
|
import com.dxhy.order.model.queue.jdwj.JdwjMqData; |
|
|
|
|
|
|
|
import com.dxhy.order.utils.CommonUtils; |
|
|
|
|
|
|
|
import com.dxhy.order.utils.HttpUtils; |
|
|
|
|
|
|
|
import com.dxhy.order.utils.JsonUtils; |
|
|
|
|
|
|
|
import com.dxhy.order.utils.NsrsbhUtils; |
|
|
|
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.rabbitmq.service.RabbitMqSendMessageService; |
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.rabbitmq.service.RabbitMqSendMessageService; |
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.redis.service.RedisService; |
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.redis.service.RedisService; |
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.simsback.service.SimsBackService; |
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.simsback.service.SimsBackService; |
|
|
|
|
|
|
|
import com.dxhy.order.constant.*; |
|
|
|
import com.dxhy.order.consumer.config.OpenApiConfig; |
|
|
|
import com.dxhy.order.consumer.config.OpenApiConfig; |
|
|
|
import com.dxhy.order.consumer.model.protocol.CommonResponse; |
|
|
|
import com.dxhy.order.consumer.model.protocol.CommonResponse; |
|
|
|
import com.dxhy.order.consumer.model.protocol.ResponseData; |
|
|
|
import com.dxhy.order.consumer.model.protocol.ResponseData; |
|
|
@ -28,6 +17,7 @@ import com.dxhy.order.consumer.model.protocol.ResponseStatus; |
|
|
|
import com.dxhy.order.consumer.modules.jdjos.service.PushInvoiceToJdJosService; |
|
|
|
import com.dxhy.order.consumer.modules.jdjos.service.PushInvoiceToJdJosService; |
|
|
|
import com.dxhy.order.consumer.modules.manager.service.PushInvoiceService; |
|
|
|
import com.dxhy.order.consumer.modules.manager.service.PushInvoiceService; |
|
|
|
import com.dxhy.order.consumer.modules.manager.service.QuickCodeInfoService; |
|
|
|
import com.dxhy.order.consumer.modules.manager.service.QuickCodeInfoService; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderCommonService; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderInfoService; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderInfoService; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderItemInfoService; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderItemInfoService; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderProcessService; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderProcessService; |
|
|
@ -35,6 +25,11 @@ import com.dxhy.order.consumer.modules.ticketpool.service.PushTicketPoolService; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.CommonRequestParam; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.CommonRequestParam; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.Response; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.Response; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.order.*; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.order.*; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.openapi.protocol.po.IsInput; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.openapi.protocol.po.PoCommonRequestParam; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.openapi.protocol.po.generateinvoicepush.sap.FpkjtsMxSap; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.openapi.protocol.po.generateinvoicepush.sap.FpkjtsReqSap; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.openapi.protocol.po.voidinvoicepush.sap.FpzftsReqSap; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v4.ResponseV4BO; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v4.ResponseV4BO; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v4.invalid.ZftsxxReqBO; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v4.invalid.ZftsxxReqBO; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v4.invalid.ZfxxRspBO; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v4.invalid.ZfxxRspBO; |
|
|
@ -43,12 +38,16 @@ import com.dxhy.order.consumer.openapi.protocol.v4.push.*; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.DxhyInterfaceResponse; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.DxhyInterfaceResponse; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.invalid.ZffptsV5; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.invalid.ZffptsV5; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.invalid.ZffpxxV5; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.invalid.ZffpxxV5; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.order.DdfpxxV5; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.order.DdfpzxxV5; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.order.DdfpzxxV5; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v5.order.DdmxxxV5; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v6.order.QdTxxBO; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v6.order.QdTxxBO; |
|
|
|
import com.dxhy.order.consumer.openapi.service.CommonDisposeService; |
|
|
|
import com.dxhy.order.consumer.openapi.service.CommonDisposeService; |
|
|
|
import com.dxhy.order.consumer.openapi.service.InterfaceServiceV5; |
|
|
|
import com.dxhy.order.consumer.openapi.service.InterfaceServiceV5; |
|
|
|
import com.dxhy.order.consumer.utils.BeanTransitionUtils; |
|
|
|
import com.dxhy.order.consumer.utils.BeanTransitionUtils; |
|
|
|
import com.dxhy.order.consumer.utils.InterfaceBeanTransUtils; |
|
|
|
import com.dxhy.order.consumer.utils.InterfaceBeanTransUtils; |
|
|
|
|
|
|
|
import com.dxhy.order.exception.InterfaceException; |
|
|
|
|
|
|
|
import com.dxhy.order.exception.OrderReceiveException; |
|
|
|
import com.dxhy.order.invoice.config.InvoiceConfig; |
|
|
|
import com.dxhy.order.invoice.config.InvoiceConfig; |
|
|
|
import com.dxhy.order.invoice.module.invoice.dao.*; |
|
|
|
import com.dxhy.order.invoice.module.invoice.dao.*; |
|
|
|
import com.dxhy.order.invoice.module.invoice.model.FileDownLoad; |
|
|
|
import com.dxhy.order.invoice.module.invoice.model.FileDownLoad; |
|
|
@ -56,11 +55,22 @@ import com.dxhy.order.invoice.module.invoice.model.PushInfo; |
|
|
|
import com.dxhy.order.invoice.module.invoice.service.InvalidInvoiceService; |
|
|
|
import com.dxhy.order.invoice.module.invoice.service.InvalidInvoiceService; |
|
|
|
import com.dxhy.order.invoice.module.invoice.service.OrderInvoiceInfoService; |
|
|
|
import com.dxhy.order.invoice.module.invoice.service.OrderInvoiceInfoService; |
|
|
|
import com.dxhy.order.invoice.utils.HttpInvoiceRequestUtil; |
|
|
|
import com.dxhy.order.invoice.utils.HttpInvoiceRequestUtil; |
|
|
|
|
|
|
|
import com.dxhy.order.model.*; |
|
|
|
|
|
|
|
import com.dxhy.order.model.ofd.OfdToPdfRequest; |
|
|
|
|
|
|
|
import com.dxhy.order.model.ofd.OfdToPdfResponse; |
|
|
|
|
|
|
|
import com.dxhy.order.model.qd.OrderInfoQd; |
|
|
|
|
|
|
|
import com.dxhy.order.model.queue.*; |
|
|
|
|
|
|
|
import com.dxhy.order.model.queue.jdwj.JdwjMqData; |
|
|
|
|
|
|
|
import com.dxhy.order.utils.CommonUtils; |
|
|
|
|
|
|
|
import com.dxhy.order.utils.HttpUtils; |
|
|
|
|
|
|
|
import com.dxhy.order.utils.JsonUtils; |
|
|
|
|
|
|
|
import com.dxhy.order.utils.NsrsbhUtils; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.*; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
|
@ -139,6 +149,12 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private PushInvoiceToJdJosService pushInvoiceToJdJosService; |
|
|
|
private PushInvoiceToJdJosService pushInvoiceToJdJosService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private OrderCommonService apiInvoiceCommonMapperService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private BaseServiceConfig baseServiceConfig; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R pushRouting(String pushMsg) { |
|
|
|
public R pushRouting(String pushMsg) { |
|
|
|
R r = new R(); |
|
|
|
R r = new R(); |
|
|
@ -319,6 +335,8 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
//判断数据是否需要放入延时队列再次推送
|
|
|
|
//判断数据是否需要放入延时队列再次推送
|
|
|
|
boolean sendPushDelay = false; |
|
|
|
boolean sendPushDelay = false; |
|
|
|
String errorMsg = ""; |
|
|
|
String errorMsg = ""; |
|
|
|
|
|
|
|
//TODO lfl 系统来源待赋值
|
|
|
|
|
|
|
|
String xtly = "SAP"; |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
//查询多个推送地址
|
|
|
|
//查询多个推送地址
|
|
|
@ -327,6 +345,8 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
queryPushInfo.setNsrsbh(fpTsMqData.getNsrsbh()); |
|
|
|
queryPushInfo.setNsrsbh(fpTsMqData.getNsrsbh()); |
|
|
|
//接口类型为发票状态推送
|
|
|
|
//接口类型为发票状态推送
|
|
|
|
queryPushInfo.setInterfaceType(fpTsMqData.getPushType()); |
|
|
|
queryPushInfo.setInterfaceType(fpTsMqData.getPushType()); |
|
|
|
|
|
|
|
//byzd1作为系统来源字段使用
|
|
|
|
|
|
|
|
queryPushInfo.setByzd1(xtly); |
|
|
|
List<PushInfo> pushInfoList = pushInfoMapper.selectListByPushInfo(queryPushInfo); |
|
|
|
List<PushInfo> pushInfoList = pushInfoMapper.selectListByPushInfo(queryPushInfo); |
|
|
|
log.info("查询到的推送地址信息:{}", JsonUtils.getInstance().toJsonString(pushInfoList)); |
|
|
|
log.info("查询到的推送地址信息:{}", JsonUtils.getInstance().toJsonString(pushInfoList)); |
|
|
|
|
|
|
|
|
|
|
@ -336,6 +356,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
return R.error(error); |
|
|
|
return R.error(error); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String fptsParam = ""; |
|
|
|
//多个地址循环推送
|
|
|
|
//多个地址循环推送
|
|
|
|
for (PushInfo pushInfo : pushInfoList) { |
|
|
|
for (PushInfo pushInfo : pushInfoList) { |
|
|
|
|
|
|
|
|
|
|
@ -352,6 +373,12 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> requestMap = commonDisposeService.getRequestParameter(pushInfo.getNsrsbh(), pushInfo.getZipCode(), pushInfo.getEncryptCode(), content, pushInfo.getPushUrl(), pushInfo.getInterfaceType(), pushInfo.getVersionIdent()); |
|
|
|
Map<String, String> requestMap = commonDisposeService.getRequestParameter(pushInfo.getNsrsbh(), pushInfo.getZipCode(), pushInfo.getEncryptCode(), content, pushInfo.getPushUrl(), pushInfo.getInterfaceType(), pushInfo.getVersionIdent()); |
|
|
|
|
|
|
|
if(OrderInfoEnum.SYS_SOURCE_SAP.getKey().equals(xtly)){ |
|
|
|
|
|
|
|
fptsParam = convertToYwxtParam(fpTsMqData,xtly,content,baseServiceConfig.getPoClient()); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
fptsParam = JsonUtils.getInstance().toJsonString(requestMap); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
String param = JsonUtils.getInstance().toJsonString(requestMap); |
|
|
|
String param = JsonUtils.getInstance().toJsonString(requestMap); |
|
|
|
if (param.length() > 500) { |
|
|
|
if (param.length() > 500) { |
|
|
@ -792,6 +819,107 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
return content; |
|
|
|
return content; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String convertToYwxtParam(CommonTsMqData fpTsMqData,String xtly,String content,String poClient){ |
|
|
|
|
|
|
|
String ywxtParam = ""; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(OrderInfoEnum.INTERFACE_TYPE_INVOICE_PUSH_STATUS_1.getKey().equals(fpTsMqData.getPushType())){ |
|
|
|
|
|
|
|
//发票开具推送
|
|
|
|
|
|
|
|
if(OrderInfoEnum.SYS_SOURCE_SAP.getKey().equals(xtly)){ |
|
|
|
|
|
|
|
DdfpzxxV5 ddfpzxxV5 = JsonUtils.getInstance().parseObject(content.substring(1,content.length()-1), DdfpzxxV5.class); |
|
|
|
|
|
|
|
DdfpxxV5 ddfpxx = ddfpzxxV5.getDDFPXX(); |
|
|
|
|
|
|
|
List<DdmxxxV5> ddmxxx = ddfpzxxV5.getDDMXXX(); |
|
|
|
|
|
|
|
List<FpkjtsReqSap> mainList = new ArrayList<>(); |
|
|
|
|
|
|
|
FpkjtsReqSap fpkjtsReqSap = new FpkjtsReqSap(); |
|
|
|
|
|
|
|
List<FpkjtsMxSap> itemList = new ArrayList<>(); |
|
|
|
|
|
|
|
//主信息
|
|
|
|
|
|
|
|
fpkjtsReqSap.setZJSDH(ddfpxx.getDDH()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZFPDM(ddfpxx.getFPDM()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZFPHM(ddfpxx.getFPHM()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZFPLX(ddfpxx.getFPLXDM()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZXFBM(ddfpxx.getXHFSBH()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZGFBH(ddfpxx.getGMFSBH()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZBHSJEY(ddfpxx.getHJJE()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZZSEY(ddfpxx.getHJSE()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZHSJEY(ddfpxx.getJSHJ()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZZBZ(ddfpxx.getBZ()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZFPZT(ConfigureConstant.STRING_1);//0-作废、1-正常
|
|
|
|
|
|
|
|
fpkjtsReqSap.setZKPRQ(ddfpxx.getKPRQ()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZGFMC(ddfpxx.getGMFMC()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZGFSH(ddfpxx.getGMFSBH()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZXFMC(ddfpxx.getXHFMC()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZXFSH(ddfpxx.getXHFSBH()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZTID(ddfpxx.getFPDM()+ddfpxx.getFPHM()+ddfpxx.getFPLXDM()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZGFZH(ddfpxx.getGMFZH()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZGFDH(ddfpxx.getGMFDH()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZXFDH(ddfpxx.getXHFDH()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZXFZH(ddfpxx.getXHFZH()); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZGSDM(""); |
|
|
|
|
|
|
|
fpkjtsReqSap.setZYWDJ(""); |
|
|
|
|
|
|
|
//明细信息
|
|
|
|
|
|
|
|
ddmxxx.stream().forEach(f -> { |
|
|
|
|
|
|
|
FpkjtsMxSap detail = new FpkjtsMxSap(); |
|
|
|
|
|
|
|
detail.setZJSDH(ddfpxx.getDDH()); |
|
|
|
|
|
|
|
detail.setZFPDM(ddfpxx.getFPDM()); |
|
|
|
|
|
|
|
detail.setZFPHM(ddfpxx.getFPHM()); |
|
|
|
|
|
|
|
detail.setZFPHH(f.getXH()); |
|
|
|
|
|
|
|
detail.setMATNR(""); |
|
|
|
|
|
|
|
detail.setZGGXH(f.getGGXH()); |
|
|
|
|
|
|
|
detail.setZSLDW(f.getDW()); |
|
|
|
|
|
|
|
detail.setZZSL(f.getSPSL()); |
|
|
|
|
|
|
|
detail.setZTAX(f.getSL()); |
|
|
|
|
|
|
|
detail.setZBHSJEY(f.getJE()); |
|
|
|
|
|
|
|
detail.setZZSEY(f.getSE()); |
|
|
|
|
|
|
|
detail.setZHSJEY(new BigDecimal(f.getJE()).add(new BigDecimal(f.getSE())).toString()); |
|
|
|
|
|
|
|
detail.setINVOICEDATE(ddfpxx.getKPRQ()); |
|
|
|
|
|
|
|
detail.setINVOICETYPE(ddfpxx.getFPLXDM()); |
|
|
|
|
|
|
|
detail.setZHWMC(f.getXMMC()); |
|
|
|
|
|
|
|
detail.setZSM(""); |
|
|
|
|
|
|
|
itemList.add(detail); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
fpkjtsReqSap.setITITEM(itemList); |
|
|
|
|
|
|
|
IsInput isInput = new IsInput(); |
|
|
|
|
|
|
|
isInput.setSYSID(OrderInfoEnum.SYS_SIGN_FP.getKey()); |
|
|
|
|
|
|
|
isInput.setIFYWID(OrderInfoEnum.INTERFACE_BUSINESS_ID_FPKJTS.getKey()); |
|
|
|
|
|
|
|
isInput.setBSKEY(apiInvoiceCommonMapperService.getGenerateShotKey()); |
|
|
|
|
|
|
|
isInput.setZORG(""); |
|
|
|
|
|
|
|
isInput.setZFILED5(poClient); |
|
|
|
|
|
|
|
mainList.add(fpkjtsReqSap); |
|
|
|
|
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(mainList); |
|
|
|
|
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
|
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
|
|
|
|
poCommonRequestParam.setIS_INPUT(isInput); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ywxtParam = JsonUtils.getInstance().toJsonString(poCommonRequestParam); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else if(OrderInfoEnum.INTERFACE_TYPE_INVOICE_PUSH_STATUS_2.getKey().equals(fpTsMqData.getPushType())){ |
|
|
|
|
|
|
|
//发票作废推送
|
|
|
|
|
|
|
|
if(OrderInfoEnum.SYS_SOURCE_SAP.getKey().equals(xtly)){ |
|
|
|
|
|
|
|
ZffptsV5 zffptsV5 = JsonUtils.getInstance().parseObject(content, ZffptsV5.class); |
|
|
|
|
|
|
|
List<FpzftsReqSap> zfList = new ArrayList<>(); |
|
|
|
|
|
|
|
FpzftsReqSap fpzftsReqSap = new FpzftsReqSap(); |
|
|
|
|
|
|
|
fpzftsReqSap.setZFPDM(zffptsV5.getFPDM()); |
|
|
|
|
|
|
|
fpzftsReqSap.setZFPHM(zffptsV5.getFPHM()); |
|
|
|
|
|
|
|
fpzftsReqSap.setZFPZT(""); |
|
|
|
|
|
|
|
fpzftsReqSap.setZJSDH(""); |
|
|
|
|
|
|
|
IsInput isInput = new IsInput(); |
|
|
|
|
|
|
|
isInput.setSYSID(OrderInfoEnum.SYS_SIGN_FP.getKey()); |
|
|
|
|
|
|
|
isInput.setIFYWID(OrderInfoEnum.INTERFACE_BUSINESS_ID_FPZFTS.getKey()); |
|
|
|
|
|
|
|
isInput.setBSKEY(apiInvoiceCommonMapperService.getGenerateShotKey()); |
|
|
|
|
|
|
|
isInput.setZORG(""); |
|
|
|
|
|
|
|
isInput.setZFILED5(poClient); |
|
|
|
|
|
|
|
zfList.add(fpzftsReqSap); |
|
|
|
|
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(zfList); |
|
|
|
|
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
|
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
|
|
|
|
poCommonRequestParam.setIS_INPUT(isInput); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ywxtParam = JsonUtils.getInstance().toJsonString(poCommonRequestParam); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ywxtParam; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取发票推送请求报文 |
|
|
|
* 获取发票推送请求报文 |
|
|
|
* |
|
|
|
* |
|
|
|