|
@@ -507,10 +507,10 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
*/
|
|
|
public boolean arrangeGrade(String goodsName,Long goodsId,Long orderGoodsId,Long gradeId,Long userId,String orderSn){
|
|
|
//查询该学员有没有有效期内同商品班级 有就不允许添加
|
|
|
- Integer classNum = baseMapper.selectUserClass(goodsId,userId);
|
|
|
+ /* Integer classNum = baseMapper.selectUserClass(goodsId,userId);
|
|
|
if (classNum > 0){
|
|
|
throw new CustomException("该学员已在此商品有效期内的班级,无法加入新的有效期班级,请查看该学员此商品下的班级");
|
|
|
- }
|
|
|
+ }*/
|
|
|
//指定班级
|
|
|
if(gradeId!=null&&gradeId>0){
|
|
|
ClassGradeVo classGradeVo = iClassGradeService.queryById(gradeId);
|