|
@@ -17,6 +17,7 @@ import com.zhongzheng.common.core.redis.RedisCache;
|
|
import com.zhongzheng.common.core.redis.RedisLockEntity;
|
|
import com.zhongzheng.common.core.redis.RedisLockEntity;
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
|
+import com.zhongzheng.common.utils.ServletUtils;
|
|
import com.zhongzheng.common.utils.ToolsUtils;
|
|
import com.zhongzheng.common.utils.ToolsUtils;
|
|
import com.zhongzheng.common.utils.file.FileUtils;
|
|
import com.zhongzheng.common.utils.file.FileUtils;
|
|
import com.zhongzheng.common.utils.http.HttpUtils;
|
|
import com.zhongzheng.common.utils.http.HttpUtils;
|
|
@@ -45,6 +46,7 @@ import com.zhongzheng.modules.order.domain.OrderGoods;
|
|
import com.zhongzheng.modules.order.service.IOrderGoodsService;
|
|
import com.zhongzheng.modules.order.service.IOrderGoodsService;
|
|
import com.zhongzheng.modules.order.service.IOrderService;
|
|
import com.zhongzheng.modules.order.service.IOrderService;
|
|
import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
|
|
+import com.zhongzheng.modules.system.domain.SysOldOrg;
|
|
import com.zhongzheng.modules.system.service.ISysOldOrgService;
|
|
import com.zhongzheng.modules.system.service.ISysOldOrgService;
|
|
import com.zhongzheng.modules.user.bo.SubjectStudyRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.SubjectStudyRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserBankRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserBankRecordQueryBo;
|
|
@@ -635,17 +637,17 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
@Override
|
|
@Override
|
|
public String pushOfficialPeriod(ClassGradeUserQueryBo bo) {
|
|
public String pushOfficialPeriod(ClassGradeUserQueryBo bo) {
|
|
//企业ID
|
|
//企业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){
|
|
|
|
|
|
+ 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 "";
|
|
return "";
|
|
}
|
|
}
|
|
|
|
+// if (true){
|
|
|
|
+// return "";
|
|
|
|
+// }
|
|
|
|
|
|
ClassGradeUserVo userVo = this.baseMapper.selectUser(bo);
|
|
ClassGradeUserVo userVo = this.baseMapper.selectUser(bo);
|
|
if (Validator.isEmpty(userVo)) {
|
|
if (Validator.isEmpty(userVo)) {
|