Commit 2f45befe by huluobin

update

parent ffb5e03b
...@@ -183,7 +183,7 @@ public class OrderManageServiceImpl extends ServiceImpl<OrderManageMapper, Order ...@@ -183,7 +183,7 @@ public class OrderManageServiceImpl extends ServiceImpl<OrderManageMapper, Order
ProducePromotionTime producePromotionTime = producePromotionTimeMapper ProducePromotionTime producePromotionTime = producePromotionTimeMapper
.queryByProduceId(orderServeParam.getProduceId(), .queryByProduceId(orderServeParam.getProduceId(),
orderServeParam.getStartTime().toString()); new Date().toString());
//如果款式有活动价格 //如果款式有活动价格
if (producePromotionTime != null && producePromotionTime.isPromotion()) { if (producePromotionTime != null && producePromotionTime.isPromotion()) {
builder.producePromotionTimeId(producePromotionTime.getId()); builder.producePromotionTimeId(producePromotionTime.getId());
...@@ -280,7 +280,7 @@ public class OrderManageServiceImpl extends ServiceImpl<OrderManageMapper, Order ...@@ -280,7 +280,7 @@ public class OrderManageServiceImpl extends ServiceImpl<OrderManageMapper, Order
ProducePromotionTime producePromotionTime = producePromotionTimeMapper.queryByProduceId( ProducePromotionTime producePromotionTime = producePromotionTimeMapper.queryByProduceId(
orderServeParam.getProduceId(), orderServeParam.getProduceId(),
orderServeParam.getStartTime().toString()); orderServe.getStartTime().toString());
//如果款式有活动价格 //如果款式有活动价格
if (producePromotionTime != null && producePromotionTime.isPromotion()) { if (producePromotionTime != null && producePromotionTime.isPromotion()) {
orderServe.setProducePromotionTimeId(producePromotionTime.getId()); orderServe.setProducePromotionTimeId(producePromotionTime.getId());
......
...@@ -214,9 +214,9 @@ public class OrderServe implements Serializable { ...@@ -214,9 +214,9 @@ public class OrderServe implements Serializable {
} else { } else {
price = servePrice.multiply(BigDecimal.ONE.subtract(discountRate)); price = servePrice.multiply(BigDecimal.ONE.subtract(discountRate));
leisurePrice = price; leisurePrice = price;
// leisureDiscountPrice = servePrice.multiply(discountRate);
} }
} else { } else {
//有没有闲时
if (discountRate == null) { if (discountRate == null) {
//没有活动价格 //没有活动价格
if (promotionPrice == null) { if (promotionPrice == null) {
......
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