修改同步日志

This commit is contained in:
wuweihua
2026-09-29 09:49:22 +08:00
parent d08758aa35
commit 590a65475b
2 changed files with 26 additions and 11 deletions
@@ -159,6 +159,7 @@ public class PrcOrderBillServiceImpl implements IPrcOrderBillService
{
throw new ServiceException(MessageUtils.message("price.bill.notFound"));
}
failReq.setTransferNo(bill.getTransferNo());
assertOrderBillEditable(bill);
List<PrcIncomeBillFee> fees = incomeBillFeeMapper.selectByBillId(bill.getBillId());
@@ -215,12 +216,15 @@ public class PrcOrderBillServiceImpl implements IPrcOrderBillService
JSONObject req = new JSONObject();
req.put("action", "REFUND");
req.put("orderNo", orderNo);
req.put("transferNo", bill.getTransferNo());
req.put("billId", bill.getBillId());
req.put("refundAmount", feeSum.negate());
req.put("feeId", refundFee.getFeeId());
if (billSearchStore != null)
{
billSearchStore.save(EsLogType.BILL, orderNo, req.toJSONString(), toResponseJson(result));
billSearchStore.save(EsLogType.BILL,
EsBizLogSupport.billBizId(bill.getTransferNo(), orderNo),
req.toJSONString(), toResponseJson(result));
}
return result;
}
@@ -906,7 +910,7 @@ public class PrcOrderBillServiceImpl implements IPrcOrderBillService
String requestJson = toRequestJson(request);
persistBillExt(bill, request.getUpstreamRow());
result.setRequestJson(requestJson);
billSearchStore.save(EsLogType.BILL, orderNo, requestJson, toResponseJson(result));
billSearchStore.save(EsLogType.BILL, EsBizLogSupport.billBizId(request), requestJson, toResponseJson(result));
}
/**
@@ -1355,7 +1359,7 @@ public class PrcOrderBillServiceImpl implements IPrcOrderBillService
return null;
}
obj.remove("apiCode");
obj.remove("upstreamRow");
// Keep upstreamRow (Oracle/TAB_ORDER payload) in ES request for ops troubleshooting.
return obj.toJSONString();
}