可抵扣数量
This commit is contained in:
parent
2673440426
commit
eb31057b3e
|
|
@ -233,12 +233,7 @@ public class MyStpLogic {
|
|||
* @return 主店id
|
||||
*/
|
||||
public Long getHeadShopId() {
|
||||
Long shopId = getShopId(0L);
|
||||
Long mainId = DbChain.table("tb_shop_config").select("main_id").where("id = ?", shopId).objAs(Long.class);
|
||||
if (mainId != null) {
|
||||
return mainId;
|
||||
}
|
||||
return shopId;
|
||||
return getHeadShopId(getShopId(0L));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ public class UserCouponVo {
|
|||
private Integer type;
|
||||
//到期时间
|
||||
private Date endTime;
|
||||
//可抵扣数量 商品券使用
|
||||
private Integer discountNum;
|
||||
private String useRule;
|
||||
private String ruleDetails;
|
||||
private String useRestrictions;
|
||||
private boolean isUse = false;
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -62,6 +62,9 @@
|
|||
inRecord.name as name,
|
||||
inRecord.type,
|
||||
coupon.foods as foods,
|
||||
coupon.use_rule as useRule,
|
||||
coupon.rule_details as ruleDetails,
|
||||
coupon.discount_num as discountNum,
|
||||
inRecord.use_end_time as endTime
|
||||
FROM
|
||||
mk_shop_coupon_record inRecord
|
||||
|
|
|
|||
|
|
@ -1151,7 +1151,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||
log.error("订单积分使用或优惠券扣除失败,订单id:{}", orderInfo.getId());
|
||||
}
|
||||
} else {
|
||||
//TODO 新客立减
|
||||
//新客立减
|
||||
if (param.getNewCustomerDiscountId() != null) {
|
||||
newConsumerDiscountRecordService.useDiscount(param.getNewCustomerDiscountId(), shopUser.getId(), param.getOrderId(), param.getNewCustomerDiscountAmount());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue