fuliqi
2024-04-02 ea3e40330575519d9a4c7dbe4f6d63e4a22ea861
ycl-pojo/src/main/java/com/ycl/platform/domain/entity/DefaultRule.java
@@ -1,43 +1,122 @@
package com.ycl.platform.domain.entity;
import com.ycl.platform.base.AbsEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ycl.platform.base.AbsEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import annotation.Excel;
import com.ycl.system.domain.TreeEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
 * 违约规则
 * 违约规则对象 t_default_rule
 *
 * @author xp
 * @since 2024-03-05
 * @author ruoyi
 * @date 2024-04-01
 */
@Data
@Accessors(chain = true)
@TableName("t_default_rule")
@ApiModel(value = "DefaultRule对象", description = "违约规则")
public class DefaultRule extends AbsEntity {
public class DefaultRule extends TreeEntity
{
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("规则名称")
    @TableField("rule_name")
    /** 主键 */
    private Long id;
    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;
    @ApiModelProperty("规则详情JSON")
    @TableField("rule_detail")
    private String ruleDetail;
    /** 扣减方式 */
    @Excel(name = "扣减方式")
    private Long deductCategory;
    @ApiModelProperty("规则描述")
    @TableField("rule_desc")
    /** 人工打分/系统打分 */
    private Long deductWay;
    /** 规则描述 */
    @Excel(name = "规则描述")
    private String ruleDesc;
    @ApiModelProperty("规则状态:启用、未启用")
    @TableField("rule_status")
    /** 规则状态 */
    @Excel(name = "规则状态")
    private String ruleStatus;
    /** 逻辑删除 */
    private String deleted;
    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }
    public void setRuleName(String ruleName)
    {
        this.ruleName = ruleName;
    }
    public String getRuleName()
    {
        return ruleName;
    }
    public void setDeductCategory(Long deductCategory)
    {
        this.deductCategory = deductCategory;
    }
    public Long getDeductCategory()
    {
        return deductCategory;
    }
    public void setDeductWay(Long deductWay)
    {
        this.deductWay = deductWay;
    }
    public Long getDeductWay()
    {
        return deductWay;
    }
    public void setRuleDesc(String ruleDesc)
    {
        this.ruleDesc = ruleDesc;
    }
    public String getRuleDesc()
    {
        return ruleDesc;
    }
    public void setRuleStatus(String ruleStatus)
    {
        this.ruleStatus = ruleStatus;
    }
    public String getRuleStatus()
    {
        return ruleStatus;
    }
    public void setDeleted(String deleted)
    {
        this.deleted = deleted;
    }
    public String getDeleted()
    {
        return deleted;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ruleName", getRuleName())
            .append("parentId", getParentId())
            .append("deductCategory", getDeductCategory())
            .append("deductWay", getDeductWay())
            .append("ruleDesc", getRuleDesc())
            .append("ruleStatus", getRuleStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}