|
|
|
@ -142,7 +142,18 @@ public class ImageSubmitServiceImpl implements ImageSubmitService { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R salesInvoiceRollback(SNRequestObject params) { |
|
|
|
|
return null; |
|
|
|
|
List<String> uuidList = new ArrayList<>(); |
|
|
|
|
params.getInvoiceInfoList().stream().forEach(item -> { |
|
|
|
|
String uuid = (StringUtils.isBlank(item.getInvoiceCode()) ? "" : item.getInvoiceCode()) + item.getInvoiceNumber(); |
|
|
|
|
uuidList.add(uuid); |
|
|
|
|
}); |
|
|
|
|
UpdateWrapper<SdnyTDxRecordInvoiceDetailSales> updateWrapper = new UpdateWrapper<>(); |
|
|
|
|
updateWrapper.set(true, "image_id", null); |
|
|
|
|
updateWrapper.set(true, "bzdh", null); |
|
|
|
|
updateWrapper.set(true, "bzr", null); |
|
|
|
|
updateWrapper.in("uuid", uuidList); |
|
|
|
|
sdnyTDxRecordInvoiceDetailSalesService.update(updateWrapper); |
|
|
|
|
return pushSap(null, params); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -155,6 +166,8 @@ public class ImageSubmitServiceImpl implements ImageSubmitService { |
|
|
|
|
public R pushSap(List<SdnyTDxSaleRecordInvoice> invoiceList, SNRequestObject params) { |
|
|
|
|
String dt = DateUtil.now(); |
|
|
|
|
List<ZData> zDataList = new ArrayList<>(); |
|
|
|
|
if (invoiceList != null) { |
|
|
|
|
// 影像提交
|
|
|
|
|
invoiceList.stream().forEach(item -> { |
|
|
|
|
String invoiceType = FplxEnum.getSapFplxdm(item.getInvoiceType()); |
|
|
|
|
if (StringUtils.isBlank(invoiceType)) { |
|
|
|
@ -253,6 +266,8 @@ public class ImageSubmitServiceImpl implements ImageSubmitService { |
|
|
|
|
zdata.setZSM(TaxRateCodeEnum.getCode(taxRate)); |
|
|
|
|
zDataList.add(zdata); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
S4Request request = S4Request.builder() |
|
|
|
|
.SYSID("FPXT") |
|
|
|
|
.IFYWID("FI889") |
|
|
|
|