套餐下单
This commit is contained in:
parent
9d50b8f1b0
commit
f34fe134a5
|
@ -5067,7 +5067,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersDao, Orders> implements
|
|||
//修改订单下所有加钟的状态为待评价
|
||||
UpdateWrapper<Orders> updateWrapper = new UpdateWrapper<>();
|
||||
updateWrapper.eq("parent_id", orders.getOrdersId());
|
||||
updateWrapper.notIn("status", "1,4");
|
||||
updateWrapper.notIn("status", 1,4);
|
||||
Orders orders2 = new Orders();
|
||||
orders2.setStatus(3);
|
||||
baseMapper.update(orders2,updateWrapper);
|
||||
|
|
|
@ -171,7 +171,7 @@ public class UserPackageOrderServiceImpl extends ServiceImpl<UserPackageOrderDao
|
|||
BigDecimal couponMinMoney = BigDecimal.ZERO;//所有代金券的使用额度总和
|
||||
List<CouponUser> CouponUserList = Lists.newArrayList();
|
||||
String couponIds = userPackageOrder.getCouponId();
|
||||
if(couponIds.length()>0){
|
||||
if(couponIds!=null && couponIds.length()>0){
|
||||
if(canCouponMoney.compareTo(BigDecimal.ZERO)==0){
|
||||
return Result.error("此次购买的服务不支持优惠券!");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue