|
@@ -2335,7 +2335,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
if (CollectionUtils.isEmpty(classGradeUser)){
|
|
|
return true;
|
|
|
}
|
|
|
- if (!classGradeUser.stream().noneMatch(x -> x.getOrderGoodsId().equals(orderGoodsId))){
|
|
|
+ if (classGradeUser.stream().noneMatch(x -> x.getOrderGoodsId().equals(orderGoodsId))){
|
|
|
ClassGradeUser gradeUser = classGradeUser.stream().findFirst().orElse(null);
|
|
|
OrderGoods orderGoodsTwo = iOrderGoodsService.getById(gradeUser.getOrderGoodsId());
|
|
|
Goods goods = iGoodsService.getById(orderGoodsTwo.getGoodsId());
|
|
@@ -2345,12 +2345,6 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
- List<Integer> integers = Arrays.asList(1, 2, 3, 4, 5);
|
|
|
- boolean b = integers.stream().noneMatch(x -> x == 3);
|
|
|
- System.out.println("b = " + b);
|
|
|
- }
|
|
|
-
|
|
|
private String createGradeCode(Long goodsId, CourseBusinessVo business) {
|
|
|
|
|
|
Goods goods = iGoodsService.getById(goodsId);
|