| | |
| | | package com.xzx.gc.entity; |
| | | |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.xzx.gc.common.entity.BaseEntity; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | public static final Integer ISQG_YES = 1; |
| | | public static final Integer ISQG_NO = 2; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private Date qgStartTime; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private Date qgEndTime; |
| | | |
| | | private Integer isSale; |
| | |
| | | private List<String> goodsImages; |
| | | |
| | | @ApiModelProperty(value="积分商品样式") |
| | | private List<ScoreGoodsStyleDto> scoreGoodsStyleDtos; |
| | | private List<ScoreGoodsStyleDto> scoreGoodsStyles; |
| | | |
| | | @ApiModelProperty(value="创建人") |
| | | private String createdBy; |
| | |
| | | scoreGoods.setDelFlag(Convert.toShort(Constants.DEL_NOT_FLAG)); |
| | | scoreGoodsMapper.insert(scoreGoods); |
| | | //样式信息 |
| | | List<ScoreGoodsStyleDto> scoreGoodsStyleDtos = model.getScoreGoodsStyleDtos(); |
| | | List<ScoreGoodsStyleDto> scoreGoodsStyleDtos = model.getScoreGoodsStyles(); |
| | | if(CollUtil.isNotEmpty(scoreGoodsStyleDtos)){ |
| | | for(ScoreGoodsStyleDto scoreGoodsStyleDto : scoreGoodsStyleDtos){ |
| | | ScoreGoodsStyle scoreGoodsStyle = objectMapper.convertValue(scoreGoodsStyleDto, ScoreGoodsStyle.class); |
| | |
| | | @ApiModelProperty(value="商品详情") |
| | | private String details; |
| | | |
| | | @ApiModelProperty(value="原价",required=true) |
| | | private String originalPrice; |
| | | |
| | | @ApiModelProperty(value="现价",required=true) |
| | | private String presentPrice; |
| | | |
| | | /** |
| | | * 是否抢购 1-是 2-否 |
| | | */ |