lyhzzz il y a 2 ans
Parent
commit
ba3b643720

+ 29 - 1
src/main/java/com/fdkankan/tk/response/RoomListDataVo.java

@@ -12,9 +12,13 @@ public class RoomListDataVo {
     @ExcelProperty("房间名称")
     private String roomTitle;
 
-    @ExcelProperty("相关场景")
+    @ExcelIgnore
+
     private List<String> sceneNameList;
 
+    @ExcelProperty("相关场景")
+    private String sceneNameListStr;
+
     @ExcelProperty("总观看时长(min)")
     private Long lookTime;
 
@@ -32,4 +36,28 @@ public class RoomListDataVo {
 
     @ExcelProperty("分享总数")
     private Long shareCount;
+
+    public String getRoomStatusStr() {
+        if(roomStatus == null){
+            return "";
+        }
+        switch (roomStatus){
+            case 0 :return "未开启";
+            case 1 :return "进行中";
+            case 2 :return "已关闭";
+        }
+        return roomStatusStr;
+    }
+
+    public String getSceneNameListStr() {
+        if(sceneNameList == null || sceneNameList.size() <=0){
+            return "";
+        }
+        StringBuilder sb = new StringBuilder();
+        for (String s : sceneNameList) {
+            sb.append(s).append(";");
+        }
+        return sb.toString();
+    }
+
 }

+ 16 - 1
src/main/java/com/fdkankan/tk/response/UserMsgVo.java

@@ -37,9 +37,24 @@ public class UserMsgVo {
     @ExcelProperty("留言条数")
     private Long textCount;
 
-    @ExcelProperty("留言内容")
+    @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();
+    }
 }