|
|
@@ -66,7 +66,9 @@ import com.zhongzheng.modules.order.domain.OrderGoods;
|
|
|
import com.zhongzheng.modules.order.service.IOrderGoodsService;
|
|
|
import com.zhongzheng.modules.order.service.IOrderService;
|
|
|
import com.zhongzheng.modules.system.domain.SysOldOrg;
|
|
|
+import com.zhongzheng.modules.system.domain.SysTenant;
|
|
|
import com.zhongzheng.modules.system.service.ISysOldOrgService;
|
|
|
+import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
|
import com.zhongzheng.modules.user.bo.UserStudyRecordQueryBo;
|
|
|
import com.zhongzheng.modules.user.domain.User;
|
|
|
import com.zhongzheng.modules.user.domain.UserExamGoods;
|
|
|
@@ -203,6 +205,9 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
@Autowired
|
|
|
private ICourseModuleService iCourseModuleService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ISysTenantService iSysTenantService;
|
|
|
+
|
|
|
@Value("${oldStudySys.syncPath}")
|
|
|
private String SYNC_PATH;
|
|
|
|
|
|
@@ -676,17 +681,22 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
queryBo.setId(goodsVo.getBusinessId());
|
|
|
String fullName = iCourseBusinessService.queryFullName(queryBo);
|
|
|
if(goodsVo.getBusinessId().longValue()!=business.getId().longValue()){
|
|
|
- CourseBusiness business7 = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getStatus, 1).eq(CourseBusiness::getId,goodsVo.getBusinessId()).last("limit 1"));
|
|
|
- if(Validator.isEmpty(business7)||(Validator.isNotEmpty(business7)&&!"七大员".equals(business7.getBusinessName()))){
|
|
|
- if(!"继续教育二级造价师".equals(fullName)){
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
- if(Validator.isNotEmpty(business7)&&"七大员".equals(business7.getBusinessName())){
|
|
|
+// CourseBusiness business7 = iCourseBusinessService.getOne(new LambdaQueryWrapper<CourseBusiness>().eq(CourseBusiness::getStatus, 1).eq(CourseBusiness::getId,goodsVo.getBusinessId()).last("limit 1"));
|
|
|
+// if(Validator.isEmpty(business7)||(Validator.isNotEmpty(business7)&&!"七大员".equals(business7.getBusinessName()))){
|
|
|
+// if(!"继续教育二级造价师".equals(fullName)){
|
|
|
+// return true;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// if(Validator.isNotEmpty(business7)&&"七大员".equals(business7.getBusinessName())){
|
|
|
+// hasSeven = true;
|
|
|
+// studyRec.setCourseType(17);
|
|
|
+// //去掉七大员推送
|
|
|
+// return true;
|
|
|
+// }
|
|
|
+ SysTenant sysTenant = iSysTenantService.getById(Long.valueOf(tenant));
|
|
|
+ if (ObjectUtils.isNotNull(sysTenant) && sysTenant.getPeriodSign() == 1){
|
|
|
hasSeven = true;
|
|
|
studyRec.setCourseType(17);
|
|
|
- //去掉七大员推送
|
|
|
- return true;
|
|
|
}
|
|
|
}
|
|
|
UserVo userVo = iUserService.queryById(bo.getUserId());
|