|
@@ -43,8 +43,8 @@ public class ConsumptionEventHandler implements HikEventHandler {
|
|
|
ConsumptionEventReceive receive = jsonObject.toJavaObject(ConsumptionEventReceive.class);
|
|
ConsumptionEventReceive receive = jsonObject.toJavaObject(ConsumptionEventReceive.class);
|
|
|
ConsumptionEventDetail consumptionEvent = receive.getConsumptionEvent();
|
|
ConsumptionEventDetail consumptionEvent = receive.getConsumptionEvent();
|
|
|
log.info("消费机事件,类型:{}", consumptionEvent.getMinor());
|
|
log.info("消费机事件,类型:{}", consumptionEvent.getMinor());
|
|
|
|
|
+ XfTermVo termVo = termService.queryByMac(receive.getMacAddress());
|
|
|
if (TRANSACTION_PREPROCESSING_REQUEST.equals(consumptionEvent.getMinor())) {
|
|
if (TRANSACTION_PREPROCESSING_REQUEST.equals(consumptionEvent.getMinor())) {
|
|
|
- XfTermVo termVo = termService.queryByMac(receive.getMacAddress());
|
|
|
|
|
if (termVo == null) {
|
|
if (termVo == null) {
|
|
|
log.error("消费机交易记录事件,设备信息为空,mac:{}, 不存在系统中", receive.getMacAddress());
|
|
log.error("消费机交易记录事件,设备信息为空,mac:{}, 不存在系统中", receive.getMacAddress());
|
|
|
// 直接应答失败
|
|
// 直接应答失败
|
|
@@ -98,6 +98,7 @@ public class ConsumptionEventHandler implements HikEventHandler {
|
|
|
RemoteConsumeBo remoteBo = setParamBo(receive, consumptionEvent);
|
|
RemoteConsumeBo remoteBo = setParamBo(receive, consumptionEvent);
|
|
|
remoteBo.setRecordStatus(364L);
|
|
remoteBo.setRecordStatus(364L);
|
|
|
remoteBo.setRecordId(0L);
|
|
remoteBo.setRecordId(0L);
|
|
|
|
|
+ remoteBo.setTermNo(termVo.getTermNo());
|
|
|
RemoteResultDto result = remoteConsumeService.dealHikUploadRecord(remoteBo);
|
|
RemoteResultDto result = remoteConsumeService.dealHikUploadRecord(remoteBo);
|
|
|
// log.info("消费机消费请求确认事件,结果:{}", JSONObject.toJSONString(result.getUpdatedRemoteBo()));
|
|
// log.info("消费机消费请求确认事件,结果:{}", JSONObject.toJSONString(result.getUpdatedRemoteBo()));
|
|
|
R<ErrorInfo> errorInfo = result.getErrorInfo();
|
|
R<ErrorInfo> errorInfo = result.getErrorInfo();
|