|
|
@ -372,13 +372,13 @@ 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)){ |
|
|
|
if(OrderInfoEnum.SYS_SOURCE_SAP.getKey().equals(xtly)){ |
|
|
|
fptsParam = convertToYwxtParam(fpTsMqData,xtly,content); |
|
|
|
fptsParam = convertToYwxtParam(fpTsMqData,xtly,content,baseServiceConfig.getPoClient()); |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
fptsParam = JsonUtils.getInstance().toJsonString(requestMap); |
|
|
|
fptsParam = JsonUtils.getInstance().toJsonString(requestMap); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
log.info("{}推送企业开始,推送企业url:{},推送参数:{}", LOGGER_MSG, pushInfo.getPushUrl(), fptsParam.substring(0,400)); |
|
|
|
log.info("{}推送企业开始,推送企业url:{},推送参数:{}", LOGGER_MSG, pushInfo.getPushUrl(), fptsParam); |
|
|
|
long startTime = System.currentTimeMillis(); |
|
|
|
long startTime = System.currentTimeMillis(); |
|
|
|
String result = ""; |
|
|
|
String result = ""; |
|
|
|
if (ConfigurerInfo.INTERFACE_VERSION_V5.equals(pushInfo.getVersionIdent()) |
|
|
|
if (ConfigurerInfo.INTERFACE_VERSION_V5.equals(pushInfo.getVersionIdent()) |
|
|
@ -865,7 +865,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
return content; |
|
|
|
return content; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String convertToYwxtParam(CommonTsMqData fpTsMqData,String xtly,String content){ |
|
|
|
public String convertToYwxtParam(CommonTsMqData fpTsMqData,String xtly,String content,String poClient){ |
|
|
|
String ywxtParam = ""; |
|
|
|
String ywxtParam = ""; |
|
|
|
|
|
|
|
|
|
|
|
if(OrderInfoEnum.INTERFACE_TYPE_INVOICE_PUSH_STATUS_1.getKey().equals(fpTsMqData.getPushType())){ |
|
|
|
if(OrderInfoEnum.INTERFACE_TYPE_INVOICE_PUSH_STATUS_1.getKey().equals(fpTsMqData.getPushType())){ |
|
|
@ -880,7 +880,6 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
fpkjtsReqSap.setZJSDH(ddfpxx.getDDH()); |
|
|
|
fpkjtsReqSap.setZJSDH(ddfpxx.getDDH()); |
|
|
|
fpkjtsReqSap.setZFPDM(ddfpxx.getFPDM()); |
|
|
|
fpkjtsReqSap.setZFPDM(ddfpxx.getFPDM()); |
|
|
|
fpkjtsReqSap.setZFPHM(ddfpxx.getFPHM()); |
|
|
|
fpkjtsReqSap.setZFPHM(ddfpxx.getFPHM()); |
|
|
|
//TODO lfl 发票类型需要做转换
|
|
|
|
|
|
|
|
fpkjtsReqSap.setZFPLX(ddfpxx.getFPLXDM()); |
|
|
|
fpkjtsReqSap.setZFPLX(ddfpxx.getFPLXDM()); |
|
|
|
fpkjtsReqSap.setZXFBM(ddfpxx.getXHFSBH()); |
|
|
|
fpkjtsReqSap.setZXFBM(ddfpxx.getXHFSBH()); |
|
|
|
fpkjtsReqSap.setZGFBH(ddfpxx.getGMFSBH()); |
|
|
|
fpkjtsReqSap.setZGFBH(ddfpxx.getGMFSBH()); |
|
|
@ -927,11 +926,11 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
isInput.setIFYWID(OrderInfoEnum.INTERFACE_BUSINESS_ID_FPKJTS.getKey()); |
|
|
|
isInput.setIFYWID(OrderInfoEnum.INTERFACE_BUSINESS_ID_FPKJTS.getKey()); |
|
|
|
isInput.setBSKEY(apiInvoiceCommonMapperService.getGenerateShotKey()); |
|
|
|
isInput.setBSKEY(apiInvoiceCommonMapperService.getGenerateShotKey()); |
|
|
|
isInput.setZORG(""); |
|
|
|
isInput.setZORG(""); |
|
|
|
isInput.setZFILED5(""); |
|
|
|
isInput.setZFILED5(poClient); |
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(fpkjtsReqSap); |
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(fpkjtsReqSap); |
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
poCommonRequestParam.setISINPUT(isInput); |
|
|
|
poCommonRequestParam.setIS_INPUT(isInput); |
|
|
|
|
|
|
|
|
|
|
|
ywxtParam = JsonUtils.getInstance().toJsonString(poCommonRequestParam); |
|
|
|
ywxtParam = JsonUtils.getInstance().toJsonString(poCommonRequestParam); |
|
|
|
} |
|
|
|
} |
|
|
@ -953,7 +952,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(fpzftsReqSap); |
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(fpzftsReqSap); |
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
poCommonRequestParam.setISINPUT(isInput); |
|
|
|
poCommonRequestParam.setIS_INPUT(isInput); |
|
|
|
|
|
|
|
|
|
|
|
ywxtParam = JsonUtils.getInstance().toJsonString(poCommonRequestParam); |
|
|
|
ywxtParam = JsonUtils.getInstance().toJsonString(poCommonRequestParam); |
|
|
|
} |
|
|
|
} |
|
|
|