Commit 2f45befe by huluobin

update

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