【7.6.0】【user】更新用户实体外部对接id

pull/55/head
fengshuonan 2023-05-11 13:27:56 +08:00
parent bd14d5e082
commit 3f50e3f890
2 changed files with 17 additions and 33 deletions

View File

@ -1,6 +1,6 @@
package cn.stylefeng.roses.kernel.system.modular.organization.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseBusinessEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
@ -19,7 +19,7 @@ import java.util.Map;
@TableName(value = "hr_organization", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
public class HrOrganization extends BaseEntity {
public class HrOrganization extends BaseBusinessEntity {
/**
*
@ -126,25 +126,5 @@ public class HrOrganization extends BaseEntity {
@ChineseDescription("拓展字段")
private Map<String, Object> expandField;
/**
*
*/
@TableField("version_flag")
@ChineseDescription("乐观锁")
private Long versionFlag;
/**
* Y-N-
*/
@TableField(value = "del_flag", fill = FieldFill.INSERT)
@ChineseDescription("删除标记Y-已删除N-未删除")
private String delFlag;
/**
*
*/
@TableField("tenant_id")
@ChineseDescription("租户号")
private Long tenantId;
}

View File

@ -24,8 +24,11 @@
*/
package cn.stylefeng.roses.kernel.system.modular.user.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseBusinessEntity;
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 lombok.Data;
import lombok.EqualsAndHashCode;
@ -40,7 +43,7 @@ import java.util.Date;
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user")
public class SysUser extends BaseEntity {
public class SysUser extends BaseBusinessEntity {
/**
*
@ -120,6 +123,12 @@ public class SysUser extends BaseEntity {
@TableField("status_flag")
private Integer statusFlag;
/**
*
*/
@TableField("login_count")
private Integer loginCount;
/**
* IP
*/
@ -133,14 +142,9 @@ public class SysUser extends BaseEntity {
private Date lastLoginTime;
/**
* Y-N-
* id
*/
@TableField(value = "del_flag", fill = FieldFill.INSERT)
private String delFlag;
@TableField("master_user_id")
private String masterUserId;
/**
*
*/
@TableField("login_count")
private Integer loginCount;
}