package org.jeecg.modules.base.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 com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* <p>
|
* 编码规则表
|
* </p>
|
*
|
* @Author cuijian
|
* @since 2022-11-03
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@TableName("mom_base_encode_rule")
|
@Accessors(chain = true)
|
public class EncodeRule implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* id
|
*/
|
@TableId(type = IdType.ASSIGN_ID)
|
private String id;
|
|
/**
|
* 规则编码
|
*/
|
private String ruleCode;
|
|
/**
|
* 规则名称
|
*/
|
private String ruleName;
|
|
/**
|
* 菜单id
|
*/
|
private String permissionId;
|
|
/**
|
* 归零依据
|
*/
|
private String zeroBasis;
|
|
/**
|
* 编码长度
|
*/
|
private Integer codeLength;
|
|
/**
|
* 状态 0:禁用 1:启用
|
*/
|
private String status;
|
|
/**
|
* 编码示例
|
*/
|
private String codeExample;
|
|
|
/**
|
* 创建人
|
*/
|
private String createBy;
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/**
|
* 更新人
|
*/
|
private String updateBy;
|
|
/**
|
* 更新时间
|
*/
|
private Date updateTime;
|
|
/**
|
* 状态,0:正常,1:删除
|
*/
|
private String delFlag;
|
|
//备注
|
private String remark;
|
|
/**
|
* 公司id
|
*/
|
private String enterpriseId;
|
|
/**
|
* 是否断码补码
|
*/
|
private String isBrokenCode;
|
|
/**
|
* 表名
|
*/
|
private String tableName;
|
|
/**
|
* 字段名
|
*/
|
private String fieldName;
|
|
}
|