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()){