|
|
@@ -85,7 +85,7 @@ public class ConsumptionEventHandler implements HikEventHandler {
|
|
|
// String reason = "";
|
|
|
// BigDecimal balance = BigDecimal.ZERO;
|
|
|
// BigDecimal consumeMoney = remoteBo.getConsumeMoney();
|
|
|
-
|
|
|
+ log.info("transactionPreprocessingRequest 调用消费服务的消费请求接口,出参:{}", JSONUtil.toJsonStr(updatedRemoteBo));
|
|
|
return answerEvent(consumptionEvent, bussiRs, balance, consumeMoney, reason, deptName);
|
|
|
} else if (TRANSACTION_CONFIRMING_REQUEST.equals(consumptionEvent.getMinor())) {
|
|
|
HashMap<String, Object> rs = new HashMap<>(1);
|
|
|
@@ -109,8 +109,8 @@ public class ConsumptionEventHandler implements HikEventHandler {
|
|
|
remoteBo.setRecordId(0L);
|
|
|
remoteBo.setTermNo(termVo.getTermNo());
|
|
|
log.info("transactionConfirmingRequest 调用调用消费请求与入库接口,入参:{}", JSONUtil.toJsonStr(remoteBo));
|
|
|
- RemoteResultDto result = remoteConsumeService.dealHikUploadRecord(remoteBo);
|
|
|
-// RemoteResultDto result = remoteConsumeService.dealHikFullRecord(remoteBo);
|
|
|
+ // RemoteResultDto result = remoteConsumeService.dealHikUploadRecord(remoteBo);
|
|
|
+ RemoteResultDto result = remoteConsumeService.dealHikFullRecord(remoteBo);
|
|
|
// log.info("消费机消费请求确认事件,结果:{}", JSONObject.toJSONString(result.getUpdatedRemoteBo()));
|
|
|
R<ErrorInfo> errorInfo = result.getErrorInfo();
|
|
|
if (R.isError(errorInfo)) {
|
|
|
@@ -126,10 +126,11 @@ public class ConsumptionEventHandler implements HikEventHandler {
|
|
|
}
|
|
|
|
|
|
private RemoteConsumeBo setParamBo(ConsumptionEventReceive receive, ConsumptionEventDetail consumptionEvent) {
|
|
|
- String consumeMoney = consumptionEvent.getActualPayment();
|
|
|
- if (TRANSACTION_PREPROCESSING_REQUEST.equals(consumptionEvent.getMinor())) {
|
|
|
- consumeMoney = consumptionEvent.getTotalPayment();
|
|
|
- }
|
|
|
+ // String consumeMoney = consumptionEvent.getActualPayment();
|
|
|
+ // if (TRANSACTION_PREPROCESSING_REQUEST.equals(consumptionEvent.getMinor())) {
|
|
|
+ // consumeMoney = consumptionEvent.getTotalPayment();
|
|
|
+ // }
|
|
|
+ String consumeMoney = consumptionEvent.getTotalPayment();
|
|
|
// 如果是计次模式,金额就为0
|
|
|
if (ConsumeModeEnum.count.getCode().equals(consumptionEvent.getMode())) {
|
|
|
consumeMoney = "0";
|