价格
This commit is contained in:
parent
e128101563
commit
80e93ecd39
@ -182,7 +182,7 @@ public class OrderBiz {
|
|||||||
respVO.setFree(priceObj.isFree());
|
respVO.setFree(priceObj.isFree());
|
||||||
respVO.setGoodsType(goodsType);
|
respVO.setGoodsType(goodsType);
|
||||||
respVO.setGoodsId(goodsId);
|
respVO.setGoodsId(goodsId);
|
||||||
respVO.setPrice(priceObj.getPrice());
|
respVO.setOrigPrice(priceObj.getPrice());
|
||||||
respVO.setSlashPrice(priceObj.getSlashPrice());
|
respVO.setSlashPrice(priceObj.getSlashPrice());
|
||||||
}
|
}
|
||||||
return respVO;
|
return respVO;
|
||||||
|
@ -92,7 +92,6 @@ public class PriceBiz {
|
|||||||
if (Integer.valueOf(1).equals(scenicConfig.getAllFree())) {
|
if (Integer.valueOf(1).equals(scenicConfig.getAllFree())) {
|
||||||
// 景区全免
|
// 景区全免
|
||||||
respVO.setFree(true);
|
respVO.setFree(true);
|
||||||
respVO.setPrice(BigDecimal.ZERO);
|
|
||||||
respVO.setSlashPrice(BigDecimal.ZERO);
|
respVO.setSlashPrice(BigDecimal.ZERO);
|
||||||
return respVO;
|
return respVO;
|
||||||
}
|
}
|
||||||
@ -100,7 +99,7 @@ public class PriceBiz {
|
|||||||
respVO.setConfigId(priceConfig.getId());
|
respVO.setConfigId(priceConfig.getId());
|
||||||
respVO.setGoodsIds(goodsIds);
|
respVO.setGoodsIds(goodsIds);
|
||||||
respVO.setType(type);
|
respVO.setType(type);
|
||||||
respVO.setPrice(priceConfig.getPrice());
|
respVO.setOrigPrice(priceConfig.getPrice());
|
||||||
respVO.setSlashPrice(priceConfig.getSlashPrice());
|
respVO.setSlashPrice(priceConfig.getSlashPrice());
|
||||||
|
|
||||||
// 查询用户是否有此类订单
|
// 查询用户是否有此类订单
|
||||||
|
@ -12,6 +12,11 @@ public class IsBuyBatchRespVO {
|
|||||||
private Integer configId;
|
private Integer configId;
|
||||||
private int type;
|
private int type;
|
||||||
private String goodsIds;
|
private String goodsIds;
|
||||||
private BigDecimal price;
|
private BigDecimal origPrice = BigDecimal.ZERO;
|
||||||
private BigDecimal slashPrice;
|
private BigDecimal couponPrice = BigDecimal.ZERO;
|
||||||
|
private BigDecimal slashPrice = BigDecimal.ZERO;
|
||||||
|
|
||||||
|
public BigDecimal getPrice() {
|
||||||
|
return origPrice.subtract(couponPrice);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,11 @@ public class IsBuyRespVO {
|
|||||||
private Long orderId;
|
private Long orderId;
|
||||||
private int goodsType;
|
private int goodsType;
|
||||||
private Long goodsId;
|
private Long goodsId;
|
||||||
private BigDecimal price;
|
private BigDecimal origPrice = BigDecimal.ZERO;
|
||||||
private BigDecimal slashPrice;
|
private BigDecimal couponPrice = BigDecimal.ZERO;
|
||||||
|
private BigDecimal slashPrice = BigDecimal.ZERO;
|
||||||
|
|
||||||
|
public BigDecimal getPrice() {
|
||||||
|
return origPrice.subtract(couponPrice);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user