套餐下单

This commit is contained in:
曹磊 2024-07-03 19:19:12 +08:00
parent 9d50b8f1b0
commit f34fe134a5
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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("此次购买的服务不支持优惠券!");
}