|
@@ -899,10 +899,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
SysOldOrg org = sysOldOrgService.list(new LambdaQueryWrapper<SysOldOrg>()
|
|
|
.eq(SysOldOrg::getTenantId, tenant)
|
|
|
.last("limit 1")).stream().findFirst().orElse(null);
|
|
|
- //共享班级关闭学时推送入口
|
|
|
- if (org.getShareClass() == 1) {
|
|
|
- return "";
|
|
|
- }
|
|
|
+
|
|
|
// if (true){
|
|
|
// return "";
|
|
|
// }
|
|
@@ -955,6 +952,10 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
if(fullName.contains("继续教育")&&fullName.contains("施工现场专业人员")){
|
|
|
return pushSevenOfficialPeriod(bo,userVo,orderGoods);
|
|
|
}
|
|
|
+ //共享班级关闭学时推送入口
|
|
|
+ if (org.getShareClass() == 1) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
/* UserProfile userProfile = iUserProfileService.getOne(new LambdaQueryWrapper<UserProfile>()
|
|
|
.eq(UserProfile::getUserId, bo.getUserId()).eq(UserProfile::getGoodsId, orderGoods.getGoodsId())
|
|
|
.eq(UserProfile::getCurrentStatus, 1).eq(UserProfile::getTypeStatus, 1)
|
|
@@ -1024,18 +1025,6 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
}
|
|
|
|
|
|
public String pushSevenOfficialPeriod(ClassGradeUserQueryBo bo,ClassGradeUserVo userVo,OrderGoodsVo orderGoods) {
|
|
|
- //企业ID
|
|
|
- String tenant = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
- SysOldOrg org = sysOldOrgService.list(new LambdaQueryWrapper<SysOldOrg>()
|
|
|
- .eq(SysOldOrg::getTenantId, tenant)
|
|
|
- .last("limit 1")).stream().findFirst().orElse(null);
|
|
|
- //共享班级关闭学时推送入口
|
|
|
- if (org.getShareClass() == 1) {
|
|
|
- return "";
|
|
|
- }
|
|
|
-// if (true){
|
|
|
-// return "";
|
|
|
-// }
|
|
|
|
|
|
// ClassGradeUserVo userVo = this.baseMapper.selectUser(bo);
|
|
|
if (Validator.isEmpty(userVo)) {
|