修改新增秒杀报错

This commit is contained in:
xuwenbo
2020-09-01 10:25:55 +08:00
parent 4a5b00e8aa
commit 6fa3077d83
4 changed files with 0 additions and 41 deletions

View File

@ -71,24 +71,6 @@ public class YxStoreSeckill extends BaseDomain {
private String info; private String info;
/** 价格 */
@NotNull(message = "请输入秒杀价")
@DecimalMin(value="0.00", message = "秒杀价不在合法范围内" )
@DecimalMax(value="99999999.99", message = "秒杀价不在合法范围内")
@ApiModelProperty(value = "秒杀价")
private BigDecimal price;
/** 成本 */
@ApiModelProperty(value = "成本价")
private BigDecimal cost;
/** 原价 */
@ApiModelProperty(value = "原价")
private BigDecimal otPrice;
/** 返多少积分 */ /** 返多少积分 */
@ApiModelProperty(value = "返多少积分") @ApiModelProperty(value = "返多少积分")
private BigDecimal giveIntegral; private BigDecimal giveIntegral;

View File

@ -51,15 +51,6 @@ public class YxStoreSeckillDto implements Serializable {
// 简介 // 简介
private String info; private String info;
// 价格
private BigDecimal price;
// 成本
private BigDecimal cost;
// 原价
private BigDecimal otPrice;
// 返多少积分 // 返多少积分
private BigDecimal giveIntegral; private BigDecimal giveIntegral;

View File

@ -217,9 +217,6 @@ public class YxStoreSeckillServiceImpl extends BaseServiceImpl<YxStoreSeckillMap
map.put("轮播图", yxStoreSeckill.getImages()); map.put("轮播图", yxStoreSeckill.getImages());
map.put("活动标题", yxStoreSeckill.getTitle()); map.put("活动标题", yxStoreSeckill.getTitle());
map.put("简介", yxStoreSeckill.getInfo()); map.put("简介", yxStoreSeckill.getInfo());
map.put("价格", yxStoreSeckill.getPrice());
map.put("成本", yxStoreSeckill.getCost());
map.put("原价", yxStoreSeckill.getOtPrice());
map.put("返多少积分", yxStoreSeckill.getGiveIntegral()); map.put("返多少积分", yxStoreSeckill.getGiveIntegral());
map.put("排序", yxStoreSeckill.getSort()); map.put("排序", yxStoreSeckill.getSort());
map.put("库存", yxStoreSeckill.getStock()); map.put("库存", yxStoreSeckill.getStock());
@ -251,8 +248,6 @@ public class YxStoreSeckillServiceImpl extends BaseServiceImpl<YxStoreSeckillMap
throw new YshopException("请上传轮播图"); throw new YshopException("请上传轮播图");
} }
yxStoreSeckill.setPrice(BigDecimal.valueOf(resultDTO.getMinPrice()));
yxStoreSeckill.setCost(new BigDecimal(resultDTO.getMinCost()));
yxStoreSeckill.setStock(resultDTO.getStock()); yxStoreSeckill.setStock(resultDTO.getStock());
yxStoreSeckill.setImages(String.join(",", resources.getImages())); yxStoreSeckill.setImages(String.join(",", resources.getImages()));
this.saveOrUpdate(yxStoreSeckill); this.saveOrUpdate(yxStoreSeckill);

View File

@ -56,15 +56,6 @@ public class YxStoreSeckillQueryVo implements Serializable{
@ApiModelProperty(value = "简介") @ApiModelProperty(value = "简介")
private String info; private String info;
@ApiModelProperty(value = "价格")
private BigDecimal price;
@ApiModelProperty(value = "成本")
private BigDecimal cost;
@ApiModelProperty(value = "原价")
private BigDecimal otPrice;
@ApiModelProperty(value = "返多少积分") @ApiModelProperty(value = "返多少积分")
private BigDecimal giveIntegral; private BigDecimal giveIntegral;