| | |
| | | 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; |
| | |
| | | @ApiModel(value = "RecoveryClassify对象", description = "回收分类表") |
| | | public class RecoveryClassify extends BaseEntity { |
| | | |
| | | @TableId(value = "id",type = IdType.AUTO) |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("上级分类名称") |
| | |
| | | private String classificationPicture; |
| | | |
| | | @ApiModelProperty("分类描述") |
| | | @TableField("describe") |
| | | private String describe; |
| | | @TableField("type_describe") |
| | | private String typeDescribe; |
| | | |
| | | @ApiModelProperty("排序权重") |
| | | @TableField("order") |
| | | private Integer order; |
| | | @TableField("sort") |
| | | private Integer sort; |
| | | |
| | | @ApiModelProperty("分类简介") |
| | | @TableField("brief_introduction") |
| | |
| | | @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; |
| | | } |
| | | } |