|
|
@ -401,8 +401,9 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
String sapkey = es_output.getSAPKEY(); |
|
|
|
String sapkey = es_output.getSAPKEY(); |
|
|
|
String ztype = es_output.getZTYPE(); |
|
|
|
String ztype = es_output.getZTYPE(); |
|
|
|
String zmessage = es_output.getZMESSAGE(); |
|
|
|
String zmessage = es_output.getZMESSAGE(); |
|
|
|
|
|
|
|
List<DdfptsV5> resultList = new ArrayList<>(); |
|
|
|
DdfptsV5 ddfptsV5 = new DdfptsV5(); |
|
|
|
DdfptsV5 ddfptsV5 = new DdfptsV5(); |
|
|
|
ddfptsV5.setDDQQLSH(sapkey); |
|
|
|
ddfptsV5.setDDQQLSH(fpTsMqData.getFpTsMqData().getFpqqlsh()); |
|
|
|
ddfptsV5.setNSRSBH(""); |
|
|
|
ddfptsV5.setNSRSBH(""); |
|
|
|
if(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_S.getKey().equals(ztype)){ |
|
|
|
if(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_S.getKey().equals(ztype)){ |
|
|
|
ddfptsV5.setZTDM(ConfigureConstant.STRING_000000); |
|
|
|
ddfptsV5.setZTDM(ConfigureConstant.STRING_000000); |
|
|
@ -414,7 +415,8 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
dxhyInterfaceResponse.setReturnMessage("处理成功"); |
|
|
|
dxhyInterfaceResponse.setReturnMessage("处理成功"); |
|
|
|
dxhyInterfaceResponse.setEncryptCode(ConfigurerInfo.ENCRYPTCODE_0); |
|
|
|
dxhyInterfaceResponse.setEncryptCode(ConfigurerInfo.ENCRYPTCODE_0); |
|
|
|
dxhyInterfaceResponse.setZipCode(ConfigurerInfo.ENCRYPTCODE_0); |
|
|
|
dxhyInterfaceResponse.setZipCode(ConfigurerInfo.ENCRYPTCODE_0); |
|
|
|
dxhyInterfaceResponse.setContent(Base64Encoding.encode(JsonUtils.getInstance().toJsonString(ddfptsV5))); |
|
|
|
resultList.add(ddfptsV5); |
|
|
|
|
|
|
|
dxhyInterfaceResponse.setContent(Base64Encoding.encode(JsonUtils.getInstance().toJsonString(resultList))); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
dxhyInterfaceResponse = JsonUtils.getInstance().parseObject(result, DxhyInterfaceResponse.class); |
|
|
|
dxhyInterfaceResponse = JsonUtils.getInstance().parseObject(result, DxhyInterfaceResponse.class); |
|
|
|
} |
|
|
|
} |
|
|
@ -426,9 +428,9 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
String ztype = es_output.getZTYPE(); |
|
|
|
String ztype = es_output.getZTYPE(); |
|
|
|
String zmessage = es_output.getZMESSAGE(); |
|
|
|
String zmessage = es_output.getZMESSAGE(); |
|
|
|
ZffpxxV5 zffpxxV5 = new ZffpxxV5(); |
|
|
|
ZffpxxV5 zffpxxV5 = new ZffpxxV5(); |
|
|
|
zffpxxV5.setXHFSBH(""); |
|
|
|
zffpxxV5.setXHFSBH(fpTsMqData.getZfTsMqData().getNsrsbh()); |
|
|
|
zffpxxV5.setFPDM(""); |
|
|
|
zffpxxV5.setFPDM(fpTsMqData.getZfTsMqData().getFpdm()); |
|
|
|
zffpxxV5.setFPHM(""); |
|
|
|
zffpxxV5.setFPHM(fpTsMqData.getZfTsMqData().getFphm()); |
|
|
|
if(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_S.getKey().equals(ztype)){ |
|
|
|
if(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_S.getKey().equals(ztype)){ |
|
|
|
zffpxxV5.setZTDM(ConfigureConstant.STRING_000000); |
|
|
|
zffpxxV5.setZTDM(ConfigureConstant.STRING_000000); |
|
|
|
}else { |
|
|
|
}else { |
|
|
@ -874,6 +876,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
DdfpzxxV5 ddfpzxxV5 = JsonUtils.getInstance().parseObject(content.substring(1,content.length()-1), DdfpzxxV5.class); |
|
|
|
DdfpzxxV5 ddfpzxxV5 = JsonUtils.getInstance().parseObject(content.substring(1,content.length()-1), DdfpzxxV5.class); |
|
|
|
DdfpxxV5 ddfpxx = ddfpzxxV5.getDDFPXX(); |
|
|
|
DdfpxxV5 ddfpxx = ddfpzxxV5.getDDFPXX(); |
|
|
|
List<DdmxxxV5> ddmxxx = ddfpzxxV5.getDDMXXX(); |
|
|
|
List<DdmxxxV5> ddmxxx = ddfpzxxV5.getDDMXXX(); |
|
|
|
|
|
|
|
List<FpkjtsReqSap> mainList = new ArrayList<>(); |
|
|
|
FpkjtsReqSap fpkjtsReqSap = new FpkjtsReqSap(); |
|
|
|
FpkjtsReqSap fpkjtsReqSap = new FpkjtsReqSap(); |
|
|
|
List<FpkjtsMxSap> itemList = new ArrayList<>(); |
|
|
|
List<FpkjtsMxSap> itemList = new ArrayList<>(); |
|
|
|
//主信息
|
|
|
|
//主信息
|
|
|
@ -919,6 +922,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
detail.setINVOICETYPE(ddfpxx.getFPLXDM()); |
|
|
|
detail.setINVOICETYPE(ddfpxx.getFPLXDM()); |
|
|
|
detail.setZHWMC(f.getXMMC()); |
|
|
|
detail.setZHWMC(f.getXMMC()); |
|
|
|
detail.setZSM(""); |
|
|
|
detail.setZSM(""); |
|
|
|
|
|
|
|
itemList.add(detail); |
|
|
|
}); |
|
|
|
}); |
|
|
|
fpkjtsReqSap.setITITEM(itemList); |
|
|
|
fpkjtsReqSap.setITITEM(itemList); |
|
|
|
IsInput isInput = new IsInput(); |
|
|
|
IsInput isInput = new IsInput(); |
|
|
@ -927,7 +931,8 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
isInput.setBSKEY(apiInvoiceCommonMapperService.getGenerateShotKey()); |
|
|
|
isInput.setBSKEY(apiInvoiceCommonMapperService.getGenerateShotKey()); |
|
|
|
isInput.setZORG(""); |
|
|
|
isInput.setZORG(""); |
|
|
|
isInput.setZFILED5(poClient); |
|
|
|
isInput.setZFILED5(poClient); |
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(fpkjtsReqSap); |
|
|
|
mainList.add(fpkjtsReqSap); |
|
|
|
|
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(mainList); |
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
poCommonRequestParam.setIS_INPUT(isInput); |
|
|
|
poCommonRequestParam.setIS_INPUT(isInput); |
|
|
@ -938,6 +943,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
//发票作废推送
|
|
|
|
//发票作废推送
|
|
|
|
if(OrderInfoEnum.SYS_SOURCE_SAP.getKey().equals(xtly)){ |
|
|
|
if(OrderInfoEnum.SYS_SOURCE_SAP.getKey().equals(xtly)){ |
|
|
|
ZffptsV5 zffptsV5 = JsonUtils.getInstance().parseObject(content, ZffptsV5.class); |
|
|
|
ZffptsV5 zffptsV5 = JsonUtils.getInstance().parseObject(content, ZffptsV5.class); |
|
|
|
|
|
|
|
List<FpzftsReqSap> zfList = new ArrayList<>(); |
|
|
|
FpzftsReqSap fpzftsReqSap = new FpzftsReqSap(); |
|
|
|
FpzftsReqSap fpzftsReqSap = new FpzftsReqSap(); |
|
|
|
fpzftsReqSap.setZFPDM(zffptsV5.getFPDM()); |
|
|
|
fpzftsReqSap.setZFPDM(zffptsV5.getFPDM()); |
|
|
|
fpzftsReqSap.setZFPHM(zffptsV5.getFPHM()); |
|
|
|
fpzftsReqSap.setZFPHM(zffptsV5.getFPHM()); |
|
|
@ -945,11 +951,12 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { |
|
|
|
fpzftsReqSap.setZJSDH(""); |
|
|
|
fpzftsReqSap.setZJSDH(""); |
|
|
|
IsInput isInput = new IsInput(); |
|
|
|
IsInput isInput = new IsInput(); |
|
|
|
isInput.setSYSID(OrderInfoEnum.SYS_SIGN_FP.getKey()); |
|
|
|
isInput.setSYSID(OrderInfoEnum.SYS_SIGN_FP.getKey()); |
|
|
|
isInput.setIFYWID(OrderInfoEnum.INTERFACE_BUSINESS_ID_FPKJTS.getKey()); |
|
|
|
isInput.setIFYWID(OrderInfoEnum.INTERFACE_BUSINESS_ID_FPZFTS.getKey()); |
|
|
|
isInput.setBSKEY(apiInvoiceCommonMapperService.getGenerateShotKey()); |
|
|
|
isInput.setBSKEY(apiInvoiceCommonMapperService.getGenerateShotKey()); |
|
|
|
isInput.setZORG(""); |
|
|
|
isInput.setZORG(""); |
|
|
|
isInput.setZFILED5(""); |
|
|
|
isInput.setZFILED5(poClient); |
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(fpzftsReqSap); |
|
|
|
zfList.add(fpzftsReqSap); |
|
|
|
|
|
|
|
String jsonString = JsonUtils.getInstance().toJsonString(zfList); |
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
isInput.setZDATA(jsonString); |
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
PoCommonRequestParam poCommonRequestParam = new PoCommonRequestParam(); |
|
|
|
poCommonRequestParam.setIS_INPUT(isInput); |
|
|
|
poCommonRequestParam.setIS_INPUT(isInput); |
|
|
|