|
@@ -58,6 +58,8 @@ import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
import com.zhongzheng.modules.polyv.bo.PolyvLiveQueryBo;
|
|
import com.zhongzheng.modules.polyv.bo.PolyvLiveQueryBo;
|
|
import com.zhongzheng.modules.polyv.service.IPolyvLiveService;
|
|
import com.zhongzheng.modules.polyv.service.IPolyvLiveService;
|
|
import com.zhongzheng.modules.system.domain.SysOldOrg;
|
|
import com.zhongzheng.modules.system.domain.SysOldOrg;
|
|
|
|
+import com.zhongzheng.modules.system.domain.SysTenant;
|
|
|
|
+import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
import com.zhongzheng.modules.user.domain.*;
|
|
import com.zhongzheng.modules.user.domain.*;
|
|
import com.zhongzheng.modules.user.mapper.UserStudyRecordMapper;
|
|
import com.zhongzheng.modules.user.mapper.UserStudyRecordMapper;
|
|
@@ -177,6 +179,8 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
@Autowired
|
|
@Autowired
|
|
private IUserStudyVideoService iUserStudyVideoService;
|
|
private IUserStudyVideoService iUserStudyVideoService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISysTenantService iSysTenantService;
|
|
|
|
|
|
@Value("${fileHost}")
|
|
@Value("${fileHost}")
|
|
private String fileHost;
|
|
private String fileHost;
|
|
@@ -382,9 +386,12 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
if(Validator.isEmpty(gradeOgUser)){
|
|
if(Validator.isEmpty(gradeOgUser)){
|
|
throw new CustomException("订单数据错误");
|
|
throw new CustomException("订单数据错误");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ String tenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
//校验是否有快进
|
|
//校验是否有快进
|
|
- checkFastForward(bo);
|
|
|
|
|
|
+ SysTenant tenant = iSysTenantService.getById(Long.valueOf(tenantId));
|
|
|
|
+ if (ObjectUtils.isNotNull(tenant) && tenant.getFastForwardSign() == 1){
|
|
|
|
+ checkFastForward(bo);
|
|
|
|
+ }
|
|
/*GoodsVo goodsVo = iGoodsService.queryById(bo.getGoodsId());
|
|
/*GoodsVo goodsVo = iGoodsService.queryById(bo.getGoodsId());
|
|
String fullName;
|
|
String fullName;
|
|
CourseBusinessQueryBo queryBusinessBo = new CourseBusinessQueryBo();
|
|
CourseBusinessQueryBo queryBusinessBo = new CourseBusinessQueryBo();
|