mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-13 14:30:08 +08:00
打印日志
This commit is contained in:
@@ -4,12 +4,15 @@ import com.jsowell.common.core.domain.ykc.YKCDataProtocol;
|
|||||||
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
|
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
|
||||||
import com.jsowell.common.util.BytesUtil;
|
import com.jsowell.common.util.BytesUtil;
|
||||||
import com.jsowell.common.util.Cp56Time2a.Cp56Time2aUtil;
|
import com.jsowell.common.util.Cp56Time2a.Cp56Time2aUtil;
|
||||||
|
import com.jsowell.common.util.DateUtils;
|
||||||
import com.jsowell.common.util.YKCUtils;
|
import com.jsowell.common.util.YKCUtils;
|
||||||
import com.jsowell.netty.factory.YKCOperateFactory;
|
import com.jsowell.netty.factory.YKCOperateFactory;
|
||||||
import io.netty.channel.Channel;
|
import io.netty.channel.Channel;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 对时设置应答
|
* 对时设置应答
|
||||||
*
|
*
|
||||||
@@ -46,7 +49,8 @@ public class TimeCheckSettingResponseHandler extends AbstractHandler{
|
|||||||
startIndex += length;
|
startIndex += length;
|
||||||
length = 7;
|
length = 7;
|
||||||
byte[] currentTimeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
|
byte[] currentTimeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
|
||||||
log.info("对时设置应答, pileSn:{}, 当前时间:{}", pileSn, Cp56Time2aUtil.byte2Hdate(currentTimeByteArr));
|
Date date = Cp56Time2aUtil.byte2Hdate(currentTimeByteArr);
|
||||||
|
log.info("对时设置应答, pileSn:{}, 充电桩当前时间:{}", pileSn, DateUtils.formatDateTime(date));
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user