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/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