|
@@ -3,36 +3,23 @@ package com.zhongzheng.modules.schedule.service.impl;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
-import cn.hutool.core.util.StrUtil;
|
|
|
-import cn.hutool.http.HttpStatus;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
-import com.alibaba.fastjson.JSONArray;
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
-import com.github.pagehelper.Page;
|
|
|
import com.zhongzheng.common.core.domain.entity.SysUser;
|
|
|
import com.zhongzheng.common.core.redis.RedisCache;
|
|
|
import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
-import com.zhongzheng.common.utils.http.HttpUtils;
|
|
|
-import com.zhongzheng.common.utils.polyv.PolyvUtils;
|
|
|
import com.zhongzheng.modules.alisms.vo.ResultBean;
|
|
|
-import com.zhongzheng.modules.bank.domain.Exam;
|
|
|
-import com.zhongzheng.modules.bank.domain.QuestionBusiness;
|
|
|
-import com.zhongzheng.modules.bank.mapper.QuestionMapper;
|
|
|
import com.zhongzheng.modules.base.service.IProfileTpService;
|
|
|
import com.zhongzheng.modules.base.vo.ProfileTpVo;
|
|
|
-import com.zhongzheng.modules.base.vo.UserProfileVo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseChapterSectionQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseModuleChapterQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseSectionQueryBo;
|
|
|
-import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
|
import com.zhongzheng.modules.course.domain.CourseSection;
|
|
|
import com.zhongzheng.modules.course.domain.CourseSubject;
|
|
|
import com.zhongzheng.modules.course.service.*;
|
|
@@ -51,9 +38,8 @@ import com.zhongzheng.modules.exam.mapper.ExamBeforeMapper;
|
|
|
import com.zhongzheng.modules.exam.mapper.ExamNumberMapper;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamApplyVo;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamBeforeVo;
|
|
|
-import com.zhongzheng.modules.exam.vo.ExamNumberVo;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamUserApplyVo;
|
|
|
-import com.zhongzheng.modules.goods.bo.GoodsCourseQueryBo;
|
|
|
+import com.zhongzheng.modules.goods.bo.GoodsBatchCopyTenantBo;
|
|
|
import com.zhongzheng.modules.goods.bo.GoodsQueryBo;
|
|
|
import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
import com.zhongzheng.modules.goods.domain.GoodsExamTime;
|
|
@@ -67,11 +53,12 @@ import com.zhongzheng.modules.grade.bo.ClassGradeQueryBo;
|
|
|
import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
|
import com.zhongzheng.modules.grade.domain.*;
|
|
|
import com.zhongzheng.modules.grade.service.*;
|
|
|
-import com.zhongzheng.modules.grade.vo.*;
|
|
|
+import com.zhongzheng.modules.grade.vo.ClassGradeUserGoodsVo;
|
|
|
+import com.zhongzheng.modules.grade.vo.ClassGradeVo;
|
|
|
+import com.zhongzheng.modules.grade.vo.ClassPeriodVo;
|
|
|
import com.zhongzheng.modules.inform.bo.InformQueryBo;
|
|
|
import com.zhongzheng.modules.inform.bo.InformSysUserAddBo;
|
|
|
import com.zhongzheng.modules.inform.bo.InformUserAddBo;
|
|
|
-import com.zhongzheng.modules.inform.domain.Inform;
|
|
|
import com.zhongzheng.modules.inform.domain.InformUser;
|
|
|
import com.zhongzheng.modules.inform.service.IInformRemindService;
|
|
|
import com.zhongzheng.modules.inform.service.IInformService;
|
|
@@ -79,10 +66,8 @@ import com.zhongzheng.modules.inform.service.IInformSysUserService;
|
|
|
import com.zhongzheng.modules.inform.service.IInformUserService;
|
|
|
import com.zhongzheng.modules.inform.vo.InformRemindVo;
|
|
|
import com.zhongzheng.modules.inform.vo.InformVo;
|
|
|
-import com.zhongzheng.modules.mock.bo.MockApplyEditBo;
|
|
|
import com.zhongzheng.modules.mock.domain.MockApply;
|
|
|
import com.zhongzheng.modules.mock.domain.MockMajorSubject;
|
|
|
-import com.zhongzheng.modules.mock.domain.MockMajorSubjectGoods;
|
|
|
import com.zhongzheng.modules.mock.domain.MockMajorSubjectTime;
|
|
|
import com.zhongzheng.modules.mock.service.IMockApplyService;
|
|
|
import com.zhongzheng.modules.mock.service.IMockMajorSubjectGoodsService;
|
|
@@ -94,24 +79,14 @@ import com.zhongzheng.modules.order.domain.Order;
|
|
|
import com.zhongzheng.modules.order.domain.OrderGoods;
|
|
|
import com.zhongzheng.modules.order.mapper.OrderGoodsMapper;
|
|
|
import com.zhongzheng.modules.order.mapper.OrderMapper;
|
|
|
-import com.zhongzheng.modules.order.service.IOrderBusinessService;
|
|
|
import com.zhongzheng.modules.order.service.IOrderGoodsService;
|
|
|
import com.zhongzheng.modules.order.service.IOrderService;
|
|
|
import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
|
import com.zhongzheng.modules.order.vo.OrderListVo;
|
|
|
-import com.zhongzheng.modules.order.vo.OrderVo;
|
|
|
import com.zhongzheng.modules.polyv.bo.PolyvLiveQueryBo;
|
|
|
-import com.zhongzheng.modules.polyv.bo.PolyvVideoAddBo;
|
|
|
-import com.zhongzheng.modules.polyv.bo.PolyvVideoEditBo;
|
|
|
-import com.zhongzheng.modules.polyv.bo.PolyvVideoQueryBo;
|
|
|
-import com.zhongzheng.modules.polyv.domain.PolyvVideDo;
|
|
|
import com.zhongzheng.modules.polyv.domain.PolyvVideo;
|
|
|
-import com.zhongzheng.modules.polyv.domain.TokenResponse;
|
|
|
import com.zhongzheng.modules.polyv.mapper.PolyvVideoMapper;
|
|
|
import com.zhongzheng.modules.polyv.service.IPolyvLiveService;
|
|
|
-import com.zhongzheng.modules.polyv.vo.PolyvVideoQuerVo;
|
|
|
-import com.zhongzheng.modules.polyv.vo.PolyvVideoVo;
|
|
|
-import com.zhongzheng.modules.polyv.vo.PolyvVo;
|
|
|
import com.zhongzheng.modules.schedule.service.IScheduleService;
|
|
|
import com.zhongzheng.modules.system.service.ISysUserService;
|
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
@@ -122,29 +97,21 @@ import com.zhongzheng.modules.user.service.*;
|
|
|
import com.zhongzheng.modules.user.vo.*;
|
|
|
import com.zhongzheng.modules.wisdom.service.IWisdomService;
|
|
|
import com.zhongzheng.modules.wx.service.IWxLoginService;
|
|
|
-import com.zhongzheng.modules.wx.service.IWxPayService;
|
|
|
import net.polyv.common.v1.util.StringUtils;
|
|
|
import net.polyv.live.v1.entity.channel.playback.LiveChannelVideoListResponse;
|
|
|
-import net.polyv.live.v1.entity.channel.playback.LiveListChannelSessionInfoResponse;
|
|
|
import net.polyv.live.v1.entity.channel.playback.LiveListChannelVideoLibraryResponse;
|
|
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
-import java.util.concurrent.TimeUnit;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
-import static com.alibaba.fastjson.JSONPatch.OperationType.add;
|
|
|
-import static com.squareup.okhttp.internal.Util.md5Hex;
|
|
|
-
|
|
|
/**
|
|
|
* 定时任务
|
|
|
*
|
|
@@ -1082,6 +1049,18 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void synchronizationGoodsByTenantId(String tenantId) {
|
|
|
+ GoodsBatchCopyTenantBo bo = new GoodsBatchCopyTenantBo();
|
|
|
+ bo.setTenantId(Long.valueOf(tenantId));
|
|
|
+ iGoodsService.goodsBatchCopyTenant(bo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void goodsDispose() {
|
|
|
+ iGoodsService.goodsBatchCopyDisposeTenant();
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void closeTimeOutOrder() {
|
|
|
OrderQueryBo bo = new OrderQueryBo();
|