package com.mzl.flower.dto.response.flower; 
 | 
  
 | 
import com.fasterxml.jackson.annotation.JsonFormat; 
 | 
import com.mzl.flower.base.AbstractTransDTO; 
 | 
import com.mzl.flower.base.annotation.DictTrans; 
 | 
import io.swagger.annotations.ApiModelProperty; 
 | 
import lombok.Data; 
 | 
import org.springframework.format.annotation.DateTimeFormat; 
 | 
  
 | 
import java.math.BigDecimal; 
 | 
import java.time.LocalDateTime; 
 | 
  
 | 
@Data 
 | 
public class FlowerMarkupSpListDTO extends AbstractTransDTO { 
 | 
    @ApiModelProperty(value = "商品id") 
 | 
    private Long flowerId; 
 | 
  
 | 
    @ApiModelProperty(value = "名称") 
 | 
    private String name; 
 | 
  
 | 
    @ApiModelProperty(value = "分类") 
 | 
    private Long category; 
 | 
    private String categoryStr; 
 | 
    private String parentCategoryStr; 
 | 
  
 | 
    @ApiModelProperty(value = "单位") 
 | 
    private String unit; 
 | 
  
 | 
    @ApiModelProperty(value = "颜色") 
 | 
    private String color; 
 | 
  
 | 
    @ApiModelProperty(value = "封面") 
 | 
    private String cover; 
 | 
  
 | 
    @ApiModelProperty(value = "级别; FLOWER_LEVEL") 
 | 
    @DictTrans(target = "levelStr", codeType = "FLOWER_LEVEL") 
 | 
    private String level; 
 | 
    private String levelStr; 
 | 
  
 | 
    @ApiModelProperty(value = "供应商价格") 
 | 
    private BigDecimal price; 
 | 
  
 | 
    @ApiModelProperty(value = "销量") 
 | 
    private Integer sales; 
 | 
  
 | 
    @ApiModelProperty(value = "库存") 
 | 
    private Integer stock; 
 | 
  
 | 
    @ApiModelProperty(value = "状态; FLOWER_STATUS_ALL") 
 | 
    @DictTrans(target = "statusStr", codeType = "FLOWER_STATUS_ALL") 
 | 
    private String status; 
 | 
    private String statusStr; 
 | 
  
 | 
    @ApiModelProperty(value = "加价金额") 
 | 
    private BigDecimal fee; 
 | 
  
 | 
    @ApiModelProperty(value = "标签") 
 | 
    private String tags; 
 | 
  
 | 
    @ApiModelProperty(value = "审核时间") 
 | 
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8") 
 | 
    @DateTimeFormat 
 | 
    private LocalDateTime auditTime; 
 | 
  
 | 
    @ApiModelProperty(value = "供应商名称") 
 | 
    private String supplierName; 
 | 
  
 | 
    @ApiModelProperty(value = "重量") 
 | 
    private Double weight; 
 | 
  
 | 
    @ApiModelProperty(value = "售价") 
 | 
    private BigDecimal sellPrice; 
 | 
} 
 |