判断场地是否被抢占
This commit is contained in:
@@ -171,7 +171,7 @@ public class OrderController extends BaseController {
|
|||||||
order.setScene(1234);
|
order.setScene(1234);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(order.getScene().equals(1234)){
|
if(order.getScene() != null && order.getScene().equals(1234)){
|
||||||
return fail("场地不存在");
|
return fail("场地不存在");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,9 +44,5 @@ public class OrderTask extends BaseController {
|
|||||||
});
|
});
|
||||||
orderService.updateBatchById(list);
|
orderService.updateBatchById(list);
|
||||||
System.out.println("自动处理过期订单 = " + list.size());
|
System.out.println("自动处理过期订单 = " + list.size());
|
||||||
// list.forEach(d -> {
|
|
||||||
// System.out.println("任务1:处理未支付订单超时自动关闭 = " + d);
|
|
||||||
// orderMapper.updateExpirationOrder(d.getOrderId());
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user