zouxuan преди 5 години
родител
ревизия
54d0cfab1c
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

+ 6 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

@@ -960,8 +960,14 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 				user.getId());
 
 		if(Objects.nonNull(oldOrder)&&oldOrder.getStatus().equals(DealStatusEnum.SUCCESS)){
+			if("36".equals(user.getOrganId())){
+				throw new BizException("您已预约过此课程");
+			}
 			throw new BizException("您已购买过此课程");
 		}else if(Objects.nonNull(oldOrder)&&oldOrder.getStatus().equals(DealStatusEnum.ING)){
+			if("36".equals(user.getOrganId())){
+				throw new BizException("您已预约过此课程,请等待处理结果");
+			}
 			throw new BizException("您有处理中的订单,请等待处理结果");
 		}else{
 			if(classGroup.getStudentNum()>=classGroup.getExpectStudentNum()){