| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | import annotation.Excel; |
| | | import com.ycl.system.domain.TreeEntity; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | 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; |
| | | |
| | | /** |
| | | * 违约规则对象 t_default_rule |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * 违约规则 |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | public class DefaultRule extends TreeEntity |
| | | { |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("t_default_rule") |
| | | @ApiModel(value = "DefaultRule对象", description = "违约规则") |
| | | public class DefaultRule extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 主键 */ |
| | | private Long id; |
| | | |
| | | /** 规则名称 */ |
| | | @Excel(name = "规则名称") |
| | | @ApiModelProperty("规则名称") |
| | | @TableField("rule_name") |
| | | private String ruleName; |
| | | |
| | | /** 扣减方式 */ |
| | | @Excel(name = "扣减方式") |
| | | private Long deductCategory; |
| | | @ApiModelProperty("规则详情JSON") |
| | | @TableField("rule_detail") |
| | | private String ruleDetail; |
| | | |
| | | /** 人工打分/系统打分 */ |
| | | private Long deductWay; |
| | | |
| | | /** 规则描述 */ |
| | | @Excel(name = "规则描述") |
| | | @ApiModelProperty("规则描述") |
| | | @TableField("rule_desc") |
| | | private String ruleDesc; |
| | | |
| | | /** 规则状态 */ |
| | | @Excel(name = "规则状态") |
| | | @ApiModelProperty("规则状态:启用、未启用") |
| | | @TableField("rule_status") |
| | | 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(); |
| | | } |
| | | } |