【7.6.0】【hr】组织机构增加几个字段,关联外部数据id

pull/55/head
fengshuonan 2023-05-11 12:59:08 +08:00
parent 2253e1afbf
commit c4ed2d567e
2 changed files with 99 additions and 40 deletions

View File

@ -24,6 +24,7 @@
*/
package cn.stylefeng.roses.kernel.system.api.pojo.organization;
import cn.hutool.core.lang.Dict;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.validator.api.validators.status.StatusValue;
@ -74,6 +75,12 @@ public class HrOrganizationRequest extends BaseRequest {
@ChineseDescription("组织名称")
private String orgName;
/**
*
*/
@ChineseDescription("组织机构的简称")
private String orgShortName;
/**
*
*/
@ -128,6 +135,34 @@ public class HrOrganizationRequest extends BaseRequest {
@ChineseDescription("描述")
private String orgRemark;
/**
*
*/
@ChineseDescription("组织机构的层级")
private Integer orgLevel;
/**
* orgId
*/
@ChineseDescription("主数据orgId")
private String masterOrgId;
/**
* id
*/
@ChineseDescription("主数据的父级id")
private String masterOrgParentId;
/**
*
*/
@ChineseDescription("拓展字段")
private Dict expandField;
//-------------------------------非实体字段-------------------------------
//-------------------------------非实体字段-------------------------------
//-------------------------------非实体字段-------------------------------
/**
* id
*/

View File

@ -1,55 +1,30 @@
/*
* 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.system.modular.organization.entity;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
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;
/**
*
*
*
* @author fengshuonan
* @since 2020/11/04 11:05
* @date 2023/05/11 10:12
*/
@TableName(value = "hr_organization", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_organization")
public class HrOrganization extends BaseEntity {
/**
*
*/
@TableId("org_id")
@TableId(value = "org_id", type = IdType.ASSIGN_ID)
@ChineseDescription("主键")
private Long orgId;
@ -74,6 +49,13 @@ public class HrOrganization extends BaseEntity {
@ChineseDescription("组织名称")
private String orgName;
/**
*
*/
@TableField(value = "org_short_name")
@ChineseDescription("组织机构简称")
private String orgShortName;
/**
*
*/
@ -91,36 +73,78 @@ public class HrOrganization extends BaseEntity {
/**
* 1-2-
*/
@TableField(value = "status_flag",fill = FieldFill.INSERT)
@TableField(value = "status_flag", fill = FieldFill.INSERT)
@ChineseDescription("状态1-启用2-禁用")
private Integer statusFlag;
/**
* 1-2-
*/
@TableField(value = "org_type")
@TableField("org_type")
@ChineseDescription("组织机构类型1-公司2-部门")
private Integer orgType;
/**
*
*/
@TableField(value = "tax_no")
@TableField("tax_no")
@ChineseDescription("税号")
private String taxNo;
/**
*
*
*/
@TableField("org_remark")
@ChineseDescription("组织机构描述")
@ChineseDescription("描述")
private String orgRemark;
/**
* Y-N-
*
*/
@TableField(value = "del_flag",fill = FieldFill.INSERT)
@ChineseDescription("删除标记Y-已删除N-未删除)")
@TableField("org_level")
@ChineseDescription("组织机构层级")
private Integer orgLevel;
/**
* id
*/
@TableField("master_org_id")
@ChineseDescription("对接外部主数据的机构id")
private String masterOrgId;
/**
* id
*/
@TableField("master_org_parent_id")
@ChineseDescription("对接外部主数据的父级机构id")
private String masterOrgParentId;
/**
*
*/
@TableField(value = "expand_field", typeHandler = JacksonTypeHandler.class)
@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;
}