From c4938f6f4e839890b032c75c7a57333a6a9157a9 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 06 十一月 2025 17:06:10 +0800
Subject: [PATCH] 添加新闻功能

---
 backend/src/main/java/com/rongyichuang/activity/dto/ActivityResponse.java |   44 ++++++++++++++++++++++++++++++++++++--------
 1 files changed, 36 insertions(+), 8 deletions(-)

diff --git a/backend/src/main/java/com/rongyichuang/activity/dto/ActivityResponse.java b/backend/src/main/java/com/rongyichuang/activity/dto/ActivityResponse.java
index f200f67..f80d70f 100644
--- a/backend/src/main/java/com/rongyichuang/activity/dto/ActivityResponse.java
+++ b/backend/src/main/java/com/rongyichuang/activity/dto/ActivityResponse.java
@@ -19,14 +19,18 @@
     private String address;
     private Long ratingSchemeId;
     private Integer playerMax;
+    private Integer sortOrder;
     private Integer state;
     private LocalDateTime createTime;
     private LocalDateTime updateTime;
+    // 鏈�杩戜竴娆¤瘎瀹″鍑篫IP涓嬭浇URL
+    private String reviewExportUrl;
     
     // 鍏宠仈鏁版嵁
     private RatingSchemeResponse ratingScheme;
     private List<ActivityResponse> stages;
     private ActivityResponse parent;
+    private List<ActivityJudgeResponse> judges; // 璇勫鍒楄〃
     
     // 缁熻鏁版嵁
     private Integer playerCount = 0; // 鎶ュ悕浜烘暟锛堝疄闄呬汉鏁帮級
@@ -51,18 +55,18 @@
         this.address = activity.getAddress();
         this.ratingSchemeId = activity.getRatingSchemeId();
         this.playerMax = activity.getPlayerMax();
+        this.sortOrder = activity.getSortOrder();
         this.state = activity.getState();
         this.createTime = activity.getCreateTime();
         this.updateTime = activity.getUpdateTime();
+        this.reviewExportUrl = activity.getReviewExportUrl();
         
         // 璁剧疆鐘舵�佸悕绉�
         this.stateName = getStateNameByValue(activity.getState());
         
-        // 璁剧疆鍏宠仈鏁版嵁锛堜粎娴呮槧灏勮瘎鍒嗘ā鏉匡紝閬垮厤浠讳綍灞傜骇鐨勬椿鍔ㄩ�掑綊锛�
-        if (activity.getRatingScheme() != null) {
-            this.ratingScheme = new RatingSchemeResponse(activity.getRatingScheme());
-        }
-        // 鏄庣‘涓嶅湪DTO鏋勯�犱腑濉厖stages鍜宲arent锛岄伩鍏嶉�掑綊涓庢噿鍔犺浇鐜矾
+        // 閬垮厤璁块棶鎳掑姞杞界殑鍏宠仈鍏崇郴锛岄槻姝㈠湪娌℃湁娲昏穬Hibernate浼氳瘽鏃跺嚭鐜板紓甯�
+        // 濡傛灉闇�瑕乺atingScheme淇℃伅锛屽簲璇ュ湪Service灞傚崟鐙鐞�
+        this.ratingScheme = null;
         this.stages = null;
         this.parent = null;
     }
@@ -72,8 +76,8 @@
         if (state == null) return "鏈煡";
         switch (state) {
             case 0: return "鏈彂甯�";
-            case 1: return "宸插彂甯�";
-            case 2: return "宸插叧闂�";
+            case 1: return "杩涜涓�";
+            case 2: return "鍏抽棴";
             default: return "鏈煡";
         }
     }
@@ -159,6 +163,14 @@
         this.playerMax = playerMax;
     }
     
+    public Integer getSortOrder() {
+        return sortOrder;
+    }
+    
+    public void setSortOrder(Integer sortOrder) {
+        this.sortOrder = sortOrder;
+    }
+    
     public Integer getState() {
         return state;
     }
@@ -181,6 +193,14 @@
     
     public void setUpdateTime(LocalDateTime updateTime) {
         this.updateTime = updateTime;
+    }
+
+    public String getReviewExportUrl() {
+        return reviewExportUrl;
+    }
+
+    public void setReviewExportUrl(String reviewExportUrl) {
+        this.reviewExportUrl = reviewExportUrl;
     }
     
     public RatingSchemeResponse getRatingScheme() {
@@ -223,8 +243,16 @@
         this.stateName = stateName;
     }
     
+    public List<ActivityJudgeResponse> getJudges() {
+        return judges;
+    }
+    
+    public void setJudges(List<ActivityJudgeResponse> judges) {
+        this.judges = judges;
+    }
+    
     // 涓氬姟鏂规硶
-    public boolean isCompetition() {
+    public boolean isMainActivity() {
         return pid == 0;
     }
     

--
Gitblit v1.8.0