打印日志

This commit is contained in:
Guoqs
2025-07-31 09:28:48 +08:00
parent d15dfb4781
commit 268cb88c47
2 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
package com.jsowell.netty.handler.yunkuaichong;
import com.alibaba.fastjson2.JSON;
import com.jsowell.common.core.domain.ykc.YKCDataProtocol;
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
import com.jsowell.common.util.BytesUtil;
@@ -28,7 +29,7 @@ public class BMSAbortDuringChargingPhaseHandler extends AbstractYkcHandler {
@Override
public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, ChannelHandlerContext channel) {
// log.info("[===充电阶段 BMS 中止===] param:{}, channel:{}", JSON.toJSONString(ykcDataProtocol), channel.toString());
log.info("[===充电阶段BMS中止===] param:{}, channel:{}", JSON.toJSONString(ykcDataProtocol), channel.channel().id().asShortText());
// 获取消息体
byte[] msgBody = ykcDataProtocol.getMsgBody();

View File

@@ -1,12 +1,13 @@
package com.jsowell.netty.handler.yunkuaichong;
import com.alibaba.fastjson2.JSON;
import com.jsowell.common.core.domain.ykc.BMSDemandAndChargerOutputData;
import com.jsowell.common.core.domain.ykc.YKCDataProtocol;
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
import com.jsowell.common.core.redis.RedisCache;
import com.jsowell.common.util.BytesUtil;
import com.jsowell.common.util.YKCUtils;
import com.jsowell.netty.factory.YKCOperateFactory;
import com.jsowell.common.core.domain.ykc.BMSDemandAndChargerOutputData;
import com.jsowell.pile.service.PileBasicInfoService;
import io.netty.channel.ChannelHandlerContext;
import lombok.extern.slf4j.Slf4j;
@@ -127,7 +128,7 @@ public class BMSDemandAndChargerOutputHandler extends AbstractYkcHandler {
@Override
public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, ChannelHandlerContext channel) {
// log.info("[===充电过程 BMS 需求与充电机输出===] param:{}, channel:{}", JSON.toJSONString(ykcDataProtocol), channel.toString());
log.info("[===充电过程BMS需求与充电机输出===] param:{}, channel:{}", JSON.toJSONString(ykcDataProtocol), channel.channel().id().asShortText());
// 获取消息体
byte[] msgBody = ykcDataProtocol.getMsgBody();