package com.ruoyi.user.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.ruoyi.common.core.constant.Constants; import com.ruoyi.common.core.domain.BaseEntity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; /** *

* 回收分类表 *

* * @author hjl * @since 2024-06-06 */ @Getter @Setter @TableName("sys_recovery_classify") @ApiModel(value = "RecoveryClassify对象", description = "回收分类表") public class RecoveryClassify extends BaseEntity { @TableId(value = "id", type = IdType.AUTO) private Integer id; @ApiModelProperty("上级分类名称") @TableField("sup_classify") private String supClassify; @ApiModelProperty("下级分类名称") @TableField("sub_classify") private String subClassify; @ApiModelProperty("首页显示名称") @TableField("home_page_name") private String homePageName; @ApiModelProperty("分类图标") @TableField("classification_picture") private String classificationPicture; @ApiModelProperty("分类描述") @TableField("type_describe") private String typeDescribe; @ApiModelProperty("排序权重") @TableField("sort") private Integer sort; @ApiModelProperty("分类简介") @TableField("brief_introduction") private String briefIntroduction; @ApiModelProperty("是否推荐 0未推荐;1已推荐") @TableField("is_recommend") private Integer isRecommend; @ApiModelProperty("服务类型(0:以旧换新,1:家电回收)") @TableField(exist = false) private Integer type; public Integer getType() { return supClassify.equals(Constants.TRADE_IN) ? Constants.ZERO : Constants.ONE; } }