【7.6.0】【db】更新通用业务实体,包含租户标识,乐观锁,逻辑删除

pull/55/head
fengshuonan 2023-05-11 13:24:17 +08:00
parent c4ed2d567e
commit bd14d5e082
1 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,68 @@
/*
* 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.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
* <p>
* id
*
* @author fengshuonan
* @since 2023/5/11 13:22
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseBusinessEntity extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableField(value = "version_flag", fill = FieldFill.INSERT)
@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;
}