| | |
| | | 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("上级分类名称") |
| | |
| | | @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; |
| | | } |
| | | } |