Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
AND (use_time_type = 'all' OR
|
AND (use_time_type = 'all' OR
|
||||||
(use_time_type = 'custom' AND TIME(NOW()) BETWEEN use_start_time AND use_end_time))
|
(use_time_type = 'custom' AND TIME(NOW()) BETWEEN use_start_time AND use_end_time))
|
||||||
AND FIND_IN_SET(#{useDay}, use_days) > 0
|
AND FIND_IN_SET(#{useDay}, use_days) > 0
|
||||||
ORDER BY sort,
|
ORDER BY sort DESC,
|
||||||
update_time DESC,
|
update_time DESC,
|
||||||
create_time DESC
|
create_time DESC
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|||||||
@@ -401,7 +401,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||||||
orderInfo.setUserId(userInfo.getId());
|
orderInfo.setUserId(userInfo.getId());
|
||||||
}
|
}
|
||||||
//会员价校验
|
//会员价校验
|
||||||
if (param.isVipPrice() && (shopUser == null || shopUser.getIsMemberPrice() == 0 || shopUser.getIsVip().equals(0))) {
|
if (param.isVipPrice() && (shopUser == null || shopUser.getIsMemberPrice() == null
|
||||||
|
|| shopUser.getIsMemberPrice() == 0 || shopUser.getIsVip().equals(0))) {
|
||||||
throw new ValidateException("生成支付订单失败,仅会员可使用会员价");
|
throw new ValidateException("生成支付订单失败,仅会员可使用会员价");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user