From afeeed281e60466b576fbe74d339634cc5d07b82 Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期三, 08 十月 2025 08:56:42 +0800
Subject: [PATCH] 修复评审功能和用户认证问题

---
 backend/src/main/java/com/rongyichuang/employee/entity/Employee.java |   70 ++++++++++-------------------------
 1 files changed, 20 insertions(+), 50 deletions(-)

diff --git a/backend/src/main/java/com/rongyichuang/employee/entity/Employee.java b/backend/src/main/java/com/rongyichuang/employee/entity/Employee.java
index c7599ed..0076ce1 100644
--- a/backend/src/main/java/com/rongyichuang/employee/entity/Employee.java
+++ b/backend/src/main/java/com/rongyichuang/employee/entity/Employee.java
@@ -20,15 +20,13 @@
 
     /**
      * 鎵嬫満鍙风爜
+     * @deprecated 姝ゅ瓧娈靛凡搴熷純锛岀數璇濆彿鐮佺粺涓�淇濆瓨鍦╰_user琛ㄤ腑锛屾瀛楁灏嗚缃负null
      */
-    @Column(name = "phone", length = 32, nullable = false)
+    @Deprecated
+    @Column(name = "phone", length = 32, nullable = true)
     private String phone;
 
-    /**
-     * 瀵嗙爜
-     */
-    @Column(name = "password", length = 128, nullable = false)
-    private String password;
+
 
     /**
      * 瑙掕壊ID
@@ -49,31 +47,17 @@
     private Long userId;
 
     /**
-     * 鍒涘缓鐢ㄦ埛ID
+     * 鐘舵�侊細1-姝e父锛�0-鍒犻櫎
      */
-    @Column(name = "create_user_id")
-    private Long createUserId;
-
-    /**
-     * 鏇存柊鐢ㄦ埛ID
-     */
-    @Column(name = "update_user_id")
-    private Long updateUserId;
-
-    /**
-     * 鐗堟湰鍙凤紙涔愯閿侊級
-     */
-    @Version
-    @Column(name = "version", nullable = false)
-    private Long version = 0L;
+    @Column(name = "state", nullable = false)
+    private Integer state = 1;
 
     // 鏋勯�犲嚱鏁�
     public Employee() {}
 
-    public Employee(String name, String phone, String password, String roleId) {
+    public Employee(String name, String phone, String roleId) {
         this.name = name;
         this.phone = phone;
-        this.password = password;
         this.roleId = roleId;
     }
 
@@ -86,21 +70,23 @@
         this.name = name;
     }
 
+    /**
+     * @deprecated 姝ゆ柟娉曞凡搴熷純锛岃閫氳繃鍏宠仈鐨刄ser瀵硅薄鑾峰彇鐢佃瘽鍙风爜
+     */
+    @Deprecated
     public String getPhone() {
         return phone;
     }
 
+    /**
+     * @deprecated 姝ゆ柟娉曞凡搴熷純锛岀數璇濆彿鐮佺粺涓�淇濆瓨鍦║ser琛ㄤ腑
+     */
+    @Deprecated
     public void setPhone(String phone) {
         this.phone = phone;
     }
 
-    public String getPassword() {
-        return password;
-    }
 
-    public void setPassword(String password) {
-        this.password = password;
-    }
 
     public String getRoleId() {
         return roleId;
@@ -126,27 +112,11 @@
         this.userId = userId;
     }
 
-    public Long getCreateUserId() {
-        return createUserId;
+    public Integer getState() {
+        return state;
     }
 
-    public void setCreateUserId(Long createUserId) {
-        this.createUserId = createUserId;
-    }
-
-    public Long getUpdateUserId() {
-        return updateUserId;
-    }
-
-    public void setUpdateUserId(Long updateUserId) {
-        this.updateUserId = updateUserId;
-    }
-
-    public Long getVersion() {
-        return version;
-    }
-
-    public void setVersion(Long version) {
-        this.version = version;
+    public void setState(Integer state) {
+        this.state = state;
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0