From ba94ceae1315174798ae1967ef62268c6d16cd5b Mon Sep 17 00:00:00 2001 From: Codex Assistant <codex@example.com> Date: 星期一, 06 十月 2025 22:07:06 +0800 Subject: [PATCH] feat: 评审与活动相关改动 - backend(GraphQL): Activity schema 增加 updateActivityState(id, state);实现 resolver/service 仅更新 state=2 作为逻辑删除 - backend(GraphQL): region.graphqls 新增 Query leafRegions - backend(GraphQL): player.graphqls 的 projectReviewApplications 增加可选参数 regionId - backend(Service): listProjectReviewApplications 绑定 regionId 参数,修复 QueryParameterException - frontend(web): 新增 api/activity.js 的 updateActivityState 并接入 activity-list 删除逻辑 - frontend(web): review-list.vue 权限仅校验登录,移除角色限制;查询参数修正为 name/regionId - frontend(web): 删除未引用的 ActivityList.vue - frontend(web): projectReviewNew.js GraphQL 查询增加 name 参数 --- backend/src/main/java/com/rongyichuang/player/entity/Player.java | 32 ++++++++++++++++++-------------- 1 files changed, 18 insertions(+), 14 deletions(-) diff --git a/backend/src/main/java/com/rongyichuang/player/entity/Player.java b/backend/src/main/java/com/rongyichuang/player/entity/Player.java index 0fc4492..2380e81 100644 --- a/backend/src/main/java/com/rongyichuang/player/entity/Player.java +++ b/backend/src/main/java/com/rongyichuang/player/entity/Player.java @@ -2,6 +2,7 @@ import com.rongyichuang.common.entity.BaseEntity; import jakarta.persistence.*; +import org.hibernate.annotations.Where; import java.math.BigDecimal; @@ -11,6 +12,7 @@ */ @Entity @Table(name = "t_player") +@Where(clause = "state = 1") public class Player extends BaseEntity { /** @@ -55,11 +57,7 @@ @Column(name = "introduction", columnDefinition = "TEXT") private String introduction; - /** - * 瀹℃牳鐘舵�侊細0-绛夊緟瀹℃牳锛�1-瀹℃牳閫氳繃锛�2-涓嶉�氳繃 - */ - @Column(name = "audit_state", nullable = false) - private Integer auditState; + /** * 椹冲洖鍘熷洜 @@ -79,14 +77,19 @@ @Column(name = "user_id", nullable = false) private Long userId; + /** + * 鐘舵�侊細1-姝e父锛�0-鍒犻櫎 + */ + @Column(name = "state", nullable = false) + private Integer state = 1; + // 鏋勯�犲嚱鏁� public Player() {} - public Player(String name, String phone, Long roleId, Integer auditState, Long userId) { + public Player(String name, String phone, Long roleId, Long userId) { this.name = name; this.phone = phone; this.roleId = roleId; - this.auditState = auditState; this.userId = userId; } @@ -147,13 +150,7 @@ this.introduction = introduction; } - public Integer getAuditState() { - return auditState; - } - public void setAuditState(Integer auditState) { - this.auditState = auditState; - } public String getRejectReason() { return rejectReason; @@ -179,6 +176,14 @@ this.userId = userId; } + public Integer getState() { + return state; + } + + public void setState(Integer state) { + this.state = state; + } + @Override public String toString() { return "Player{" + @@ -186,7 +191,6 @@ ", name='" + name + '\'' + ", phone='" + phone + '\'' + ", roleId=" + roleId + - ", auditState=" + auditState + ", userId=" + userId + '}'; } -- Gitblit v1.8.0