|
@@ -1,5 +1,6 @@
|
|
|
package org.dromara.server.hik.event.handler;
|
|
package org.dromara.server.hik.event.handler;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -90,7 +91,9 @@ public class ConsumptionEventHandler implements HikEventHandler {
|
|
|
*/
|
|
*/
|
|
|
Boolean cancel = consumptionEvent.getCancel();
|
|
Boolean cancel = consumptionEvent.getCancel();
|
|
|
if(cancel !=null && cancel){
|
|
if(cancel !=null && cancel){
|
|
|
- log.info("消费机消费请求确认事件,取消交易");
|
|
|
|
|
|
|
+ log.info("消费机消费请求确认事件,取消交易:{}", JSONUtil.toJsonStr(receive));
|
|
|
|
|
+ // 将原始记录标记为删除 termVo.getTermNo() consumptionEvent.getSerialNo() TermRecordId
|
|
|
|
|
+ remoteConsumeService.cancleDeal(termVo.getTermNo(), consumptionEvent.getSerialNo());
|
|
|
return rs;
|
|
return rs;
|
|
|
}
|
|
}
|
|
|
|
|
|