123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package com.fdkankan.tk.response;
- import com.alibaba.excel.annotation.ExcelIgnore;
- import com.alibaba.excel.annotation.ExcelProperty;
- import lombok.Data;
- import java.util.Date;
- import java.util.List;
- @Data
- public class UserMsgVo {
- @ExcelProperty("昵称")
- private String nickName;
- @ExcelIgnore
- private String wxUserId;
- @ExcelProperty("手机号码")
- private String phoneNumber;
- @ExcelIgnore
- private String roomId;
- @ExcelProperty("房间名称")
- private String roomTitle;
- @ExcelProperty("在线时长(min)")
- private Long onlineTime;
- @ExcelProperty("初次进入房间")
- private Date firstInRoomTime;
- @ExcelProperty("最后离开房间")
- private Date lastOutRoomTime;
- @ExcelProperty("留言条数")
- private Long textCount;
- @ExcelIgnore
- private List<String> texts;
- @ExcelProperty("留言内容")
- private String textsStr;
- @ExcelIgnore
- private Integer liveId;
- public String getTextsStr() {
- if(texts == null || texts.size() <=0){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- for (String s : texts) {
- sb.append(s).append(";");
- }
- return sb.toString();
- }
- }
|