package cn.stylefeng.guns.modular.zsx.sys.codingRule.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.IdType; import java.util.Date; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.TableField; import java.io.Serializable; /** *
* 编码规则 *
* * @author ruimin * @since 2023-08-23 */ @TableName("sys_coding_rule") public class CodingRule implements Serializable { private static final long serialVersionUID=1L; /** * 主键id */ @TableId(value = "id", type = IdType.ID_WORKER) private Long id; /** * 编码规则编号 */ @TableField("coding_rule_code") private String codingRuleCode; /** * 编码规则描述 */ @TableField("coding_rule_desc") private String codingRuleDesc; /** * 编码规则前缀 */ @TableField("coding_rule_prefix") private String codingRulePrefix; /** * 启用日期(0否,1是) */ @TableField("enable_date") private String enableDate; /** * 日期格式类型 */ @TableField("date_type") private String dateType; /** * 当前编号 */ @TableField("current_code") private String currentCode; /** * 编号长度 */ @TableField("code_length") private Integer codeLength; /** * 预留字段1 */ @TableField("spare_field_1") private String spareField1; /** * 预留字段2 */ @TableField("spare_field_2") private String spareField2; /** * 备注 */ @TableField("remark") private String remark; /** * 创建用户 */ @TableField(value = "create_user", fill = FieldFill.INSERT) private String createUser; /** * 创建时间 */ @TableField(value = "create_time", fill = FieldFill.INSERT) private Date createTime; /** * 更改用户 */ @TableField(value = "update_user", fill = FieldFill.UPDATE) private String updateUser; /** * 更改时间 */ @TableField(value = "update_time", fill = FieldFill.UPDATE) private Date updateTime; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getCodingRuleCode() { return codingRuleCode; } public void setCodingRuleCode(String codingRuleCode) { this.codingRuleCode = codingRuleCode; } public String getCodingRuleDesc() { return codingRuleDesc; } public void setCodingRuleDesc(String codingRuleDesc) { this.codingRuleDesc = codingRuleDesc; } public String getCodingRulePrefix() { return codingRulePrefix; } public void setCodingRulePrefix(String codingRulePrefix) { this.codingRulePrefix = codingRulePrefix; } public String getEnableDate() { return enableDate; } public void setEnableDate(String enableDate) { this.enableDate = enableDate; } public String getDateType() { return dateType; } public void setDateType(String dateType) { this.dateType = dateType; } public String getCurrentCode() { return currentCode; } public void setCurrentCode(String currentCode) { this.currentCode = currentCode; } public Integer getCodeLength() { return codeLength; } public void setCodeLength(Integer codeLength) { this.codeLength = codeLength; } public String getSpareField1() { return spareField1; } public void setSpareField1(String spareField1) { this.spareField1 = spareField1; } public String getSpareField2() { return spareField2; } public void setSpareField2(String spareField2) { this.spareField2 = spareField2; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public String getCreateUser() { return createUser; } public void setCreateUser(String createUser) { this.createUser = createUser; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getUpdateUser() { return updateUser; } public void setUpdateUser(String updateUser) { this.updateUser = updateUser; } public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @Override public String toString() { return "CodingRule{" + "id=" + id + ", codingRuleCode=" + codingRuleCode + ", codingRuleDesc=" + codingRuleDesc + ", codingRulePrefix=" + codingRulePrefix + ", enableDate=" + enableDate + ", dateType=" + dateType + ", currentCode=" + currentCode + ", codeLength=" + codeLength + ", spareField1=" + spareField1 + ", spareField2=" + spareField2 + ", remark=" + remark + ", createUser=" + createUser + ", createTime=" + createTime + ", updateUser=" + updateUser + ", updateTime=" + updateTime + "}"; } }