【7.6.0】【hr】更新实体继承关系

dev-7.6.0-hang
fengshuonan 2023-05-30 18:09:36 +08:00
parent 1cfa00e8a4
commit 7ae0062774
4 changed files with 62 additions and 34 deletions

View File

@ -0,0 +1,56 @@
/*
* Copyright [2020-2030] [https://www.stylefeng.cn]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* GunsAPACHE LICENSE 2.0使
*
* 1.LICENSE
* 2.Guns
* 3.
* 4. https://gitee.com/stylefeng/guns
* 5. https://gitee.com/stylefeng/guns
* 6.
*/
package cn.stylefeng.roses.kernel.db.api.pojo.entity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Map;
/**
*
* <p>
* id
*
* @author fengshuonan
* @since 2023/5/11 13:22
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseExpandFieldEntity extends BaseBusinessEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableField(value = "expand_field", typeHandler = JacksonTypeHandler.class)
@ChineseDescription("拓展字段")
private Map<String, Object> expandField;
}

View File

@ -1,14 +1,12 @@
package cn.stylefeng.roses.kernel.system.modular.organization.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseBusinessEntity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseExpandFieldEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Map;
/**
*
@ -19,7 +17,7 @@ import java.util.Map;
@TableName(value = "hr_organization", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
public class HrOrganization extends BaseBusinessEntity {
public class HrOrganization extends BaseExpandFieldEntity {
/**
*
@ -119,11 +117,4 @@ public class HrOrganization extends BaseBusinessEntity {
@ChineseDescription("对接外部主数据的父级机构id")
private String masterOrgParentId;
/**
*
*/
@TableField(value = "expand_field", typeHandler = JacksonTypeHandler.class)
@ChineseDescription("拓展字段")
private Map<String, Object> expandField;
}

View File

@ -24,17 +24,15 @@
*/
package cn.stylefeng.roses.kernel.system.modular.organization.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseBusinessEntity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseExpandFieldEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Map;
/**
*
@ -45,7 +43,7 @@ import java.util.Map;
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_position")
public class HrPosition extends BaseBusinessEntity {
public class HrPosition extends BaseExpandFieldEntity {
/**
*
@ -89,11 +87,4 @@ public class HrPosition extends BaseBusinessEntity {
@ChineseDescription("职位备注")
private String positionRemark;
/**
*
*/
@TableField(value = "expand_field", typeHandler = JacksonTypeHandler.class)
@ChineseDescription("拓展字段")
private Map<String, Object> expandField;
}

View File

@ -24,18 +24,15 @@
*/
package cn.stylefeng.roses.kernel.system.modular.user.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseBusinessEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseExpandFieldEntity;
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 com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import java.util.Map;
/**
*
@ -46,7 +43,7 @@ import java.util.Map;
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user")
public class SysUser extends BaseBusinessEntity {
public class SysUser extends BaseExpandFieldEntity {
/**
*
@ -150,11 +147,4 @@ public class SysUser extends BaseBusinessEntity {
@TableField("master_user_id")
private String masterUserId;
/**
*
*/
@TableField(value = "expand_field", typeHandler = JacksonTypeHandler.class)
@ChineseDescription("拓展字段")
private Map<String, Object> expandField;
}