From c2a9635771370e7ec908db7e11a5cdd1b5f7bbf0 Mon Sep 17 00:00:00 2001 From: guyue <1721849008@qq.com> Date: 星期一, 14 七月 2025 17:23:29 +0800 Subject: [PATCH] 修改删除提问词,用户添加和导入设置创建时间 --- src/main/java/com/linghu/model/entity/User.java | 34 ++++++++++++++++++++++++++++++++-- 1 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/linghu/model/entity/User.java b/src/main/java/com/linghu/model/entity/User.java index cbc51f6..9673030 100644 --- a/src/main/java/com/linghu/model/entity/User.java +++ b/src/main/java/com/linghu/model/entity/User.java @@ -1,14 +1,18 @@ package com.linghu.model.entity; +import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; +import java.time.LocalDateTime; import javax.validation.constraints.Email; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Size; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** @@ -21,7 +25,7 @@ /** * 用户id */ - @TableId + @TableId(type = IdType.AUTO) private Integer user_id; /** @@ -47,7 +51,26 @@ /** * 手机号 */ + @ApiModelProperty(hidden = true) private Integer phone; + + /** + * 分组id + */ + private Integer sectionalization_id; + + + /** + * 创建时间 + */ + @ApiModelProperty(hidden = true) + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDateTime create_time; + + /** + * 状态 + */ + private String status; @TableField(exist = false) private static final long serialVersionUID = 1L; @@ -71,7 +94,10 @@ : this.getUser_email().equals(other.getUser_email())) && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword())) - && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())); + && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())) + && (this.getSectionalization_id() == null ? other.getSectionalization_id() == null : this.getSectionalization_id().equals(other.getSectionalization_id())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) + ; } @Override @@ -83,6 +109,8 @@ result = prime * result + ((getUser_email() == null) ? 0 : getUser_email().hashCode()); result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode()); result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode()); + result = prime * result + ((getSectionalization_id() == null) ? 0 : getSectionalization_id().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); return result; } @@ -97,6 +125,8 @@ sb.append(", user_email=").append(user_email); sb.append(", password=").append(password); sb.append(", phone=").append(phone); + sb.append(", sectionalization_id=").append(sectionalization_id); + sb.append(", status=").append(status); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); -- Gitblit v1.7.1