|
@@ -18,6 +18,7 @@ import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
import com.ym.mec.common.service.IdGeneratorService;
|
|
|
+import com.ym.mec.common.tenant.TenantContextHolder;
|
|
|
import com.ym.mec.util.date.DateUtil;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -180,6 +181,9 @@ public class TempDirectorTrainingCampDetailServiceImpl extends ServiceImpl<TempD
|
|
|
if(StringUtils.equals(campDetail.getPaymentStatus(),"PAID")){
|
|
|
throw new BizException("您已缴费请勿重复支付");
|
|
|
}
|
|
|
+ Integer userId = campDetail.getUserId();
|
|
|
+ Teacher teacher = teacherDao.get(userId);
|
|
|
+ TenantContextHolder.setTenantId(teacher.getTenantId());
|
|
|
Date now = new Date();
|
|
|
TempDirectorTrainingCamp trainingCamp = tempDirectorTrainingCampService.getById(campDetail.getTempDirectorTrainingCampId());
|
|
|
this.checkTraining(now,trainingCamp);
|
|
@@ -206,8 +210,6 @@ public class TempDirectorTrainingCampDetailServiceImpl extends ServiceImpl<TempD
|
|
|
if(money.compareTo(payDto.getAmount()) != 0){
|
|
|
throw new BizException("活动信息变更,请重新下单");
|
|
|
}
|
|
|
- Integer userId = campDetail.getUserId();
|
|
|
- Teacher teacher = teacherDao.get(userId);
|
|
|
String channelType = "";
|
|
|
StudentPaymentOrder studentPaymentOrder = new StudentPaymentOrder();
|
|
|
studentPaymentOrder.setUserId(userId);
|
|
@@ -261,6 +263,7 @@ public class TempDirectorTrainingCampDetailServiceImpl extends ServiceImpl<TempD
|
|
|
studentPaymentOrder.setPaymentChannel((String) payMap.get("type"));
|
|
|
studentPaymentOrder.setUpdateTime(nowDate);
|
|
|
studentPaymentOrderService.update(studentPaymentOrder);
|
|
|
+ TenantContextHolder.clearTenantId();
|
|
|
return BaseController.succeed(payMap);
|
|
|
}
|
|
|
|