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 | 55 ++++++++++++++++++------------------------------------- 1 files changed, 18 insertions(+), 37 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 86909cc..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,8 +20,10 @@ /** * 鎵嬫満鍙风爜 + * @deprecated 姝ゅ瓧娈靛凡搴熷純锛岀數璇濆彿鐮佺粺涓�淇濆瓨鍦╰_user琛ㄤ腑锛屾瀛楁灏嗚缃负null */ - @Column(name = "phone", length = 32, nullable = false) + @Deprecated + @Column(name = "phone", length = 32, nullable = true) private String phone; @@ -45,23 +47,10 @@ 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() {} @@ -81,10 +70,18 @@ this.name = name; } + /** + * @deprecated 姝ゆ柟娉曞凡搴熷純锛岃閫氳繃鍏宠仈鐨刄ser瀵硅薄鑾峰彇鐢佃瘽鍙风爜 + */ + @Deprecated public String getPhone() { return phone; } + /** + * @deprecated 姝ゆ柟娉曞凡搴熷純锛岀數璇濆彿鐮佺粺涓�淇濆瓨鍦║ser琛ㄤ腑 + */ + @Deprecated public void setPhone(String phone) { this.phone = phone; } @@ -115,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