UserMsgVo.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.fdkankan.tk.response;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import lombok.Data;
  5. import java.util.Date;
  6. import java.util.List;
  7. @Data
  8. public class UserMsgVo {
  9. @ExcelProperty("昵称")
  10. private String nickName;
  11. @ExcelIgnore
  12. private String wxUserId;
  13. @ExcelProperty("手机号码")
  14. private String phoneNumber;
  15. @ExcelIgnore
  16. private String roomId;
  17. @ExcelProperty("房间名称")
  18. private String roomTitle;
  19. @ExcelProperty("在线时长(min)")
  20. private Long onlineTime;
  21. @ExcelProperty("初次进入房间")
  22. private Date firstInRoomTime;
  23. @ExcelProperty("最后离开房间")
  24. private Date lastOutRoomTime;
  25. @ExcelProperty("留言条数")
  26. private Long textCount;
  27. @ExcelIgnore
  28. private List<String> texts;
  29. @ExcelProperty("留言内容")
  30. private String textsStr;
  31. @ExcelIgnore
  32. private Integer liveId;
  33. public String getTextsStr() {
  34. if(texts == null || texts.size() <=0){
  35. return "";
  36. }
  37. StringBuilder sb = new StringBuilder();
  38. for (String s : texts) {
  39. sb.append(s).append(";");
  40. }
  41. return sb.toString();
  42. }
  43. }