mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update
This commit is contained in:
@@ -5,7 +5,6 @@ import com.github.pagehelper.PageInfo;
|
||||
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
|
||||
import com.jsowell.common.core.page.PageResponse;
|
||||
import com.jsowell.common.util.BytesUtil;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.common.util.YKCUtils;
|
||||
import com.jsowell.pile.domain.PileMsgRecord;
|
||||
import com.jsowell.pile.dto.QueryPileDTO;
|
||||
@@ -65,17 +64,12 @@ public class PileMsgRecordServiceImpl implements IPileMsgRecordService {
|
||||
for (PileMsgRecord pileMsgRecord : pageInfo.getList()) {
|
||||
PileCommunicationLogVO vo = new PileCommunicationLogVO();
|
||||
String frameType = pileMsgRecord.getFrameType();
|
||||
|
||||
String frameTypeStr = YKCFrameTypeCode.getFrameTypeStr(frameType);
|
||||
if (StringUtils.isNotBlank(frameTypeStr)) {
|
||||
vo.setDescription(frameTypeStr);
|
||||
} else {
|
||||
vo.setDescription(pileMsgRecord.getJsonMsg());
|
||||
}
|
||||
vo.setFrameType(frameType);
|
||||
vo.setFrameTypeStr(YKCFrameTypeCode.getFrameTypeStr(frameType));
|
||||
vo.setDescription(pileMsgRecord.getJsonMsg());
|
||||
vo.setOriginalMsg(pileMsgRecord.getOriginalMsg());
|
||||
vo.setPileSn(pileMsgRecord.getPileSn());
|
||||
vo.setCreateTime(pileMsgRecord.getCreateTime());
|
||||
vo.setFrameType(frameType);
|
||||
list.add(vo);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,11 @@ public class PileCommunicationLogVO {
|
||||
*/
|
||||
private String frameType;
|
||||
|
||||
/**
|
||||
* 帧类型名称
|
||||
*/
|
||||
private String frameTypeStr;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user