|
@@ -2890,6 +2890,9 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
Goods goods = iGoodsService.getById(goodsId);
|
|
|
String businessName = iGoodsService.getGoodsBusinessName(goodsId);
|
|
|
Major major = iMajorService.getById(goods.getMajorId());
|
|
|
+ if(Validator.isEmpty(major)){
|
|
|
+ throw new CustomException("二建二造专业不能为空");
|
|
|
+ }
|
|
|
tenantList.forEach(tenant -> {
|
|
|
//是否存在对应课程商品
|
|
|
List<Goods> relGoods = iGoodsService.getRelGoodsNoTenant(businessName,major.getCategoryName(),tenant.getTenantId());
|