记得上下班打卡 | git大法好,push需谨慎

Commit 28ba3cdb authored by 胡佳晨's avatar 胡佳晨

提交 正在下单

parent e584fcdf
...@@ -23,6 +23,8 @@ public class GoblinSelfZhengzaiSkuVo implements Serializable, Cloneable { ...@@ -23,6 +23,8 @@ public class GoblinSelfZhengzaiSkuVo implements Serializable, Cloneable {
private Integer stock; private Integer stock;
@ApiModelProperty(position = 2, value = "可配置库存") @ApiModelProperty(position = 2, value = "可配置库存")
private Integer skuStock; private Integer skuStock;
@ApiModelProperty(position = 2, value = "剩余库存")
private Integer restStock;
@ApiModelProperty(position = 3, value = "原价") @ApiModelProperty(position = 3, value = "原价")
private BigDecimal price; private BigDecimal price;
@ApiModelProperty(position = 4, value = "秒杀价") @ApiModelProperty(position = 4, value = "秒杀价")
......
...@@ -116,6 +116,8 @@ public class GoblinZhengzaiServiceImpl implements IGoblinZhengzaiService { ...@@ -116,6 +116,8 @@ public class GoblinZhengzaiServiceImpl implements IGoblinZhengzaiService {
vo.setMarketSkuId(marketSkuId); vo.setMarketSkuId(marketSkuId);
vo.setSkuId(marketSkuId.split(GoblinStatusConst.MarketPreStatus.MARKET_PRE_ZHENGZAI.getValue())[0]); vo.setSkuId(marketSkuId.split(GoblinStatusConst.MarketPreStatus.MARKET_PRE_ZHENGZAI.getValue())[0]);
vo.setSkuSpecList(skuVo.getSkuSpecList()); vo.setSkuSpecList(skuVo.getSkuSpecList());
Integer restStock = redisUtils.getSkuStock("ZZ",marketSkuVo.getSkuId());
vo.setRestStock(restStock);
vo.setPrice(skuVo.getPrice()); vo.setPrice(skuVo.getPrice());
vo.setStock(skuVo.getStock()); vo.setStock(skuVo.getStock());
vo.setSkuStock(skuVo.getSkuStock()); vo.setSkuStock(skuVo.getSkuStock());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment