|
@@ -3,6 +3,7 @@ package com.kxs.transfer.api.controller;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.aliyun.dts.subscribe.clients.record.DefaultUserRecord;
|
|
import com.aliyun.dts.subscribe.clients.record.DefaultUserRecord;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
+import com.kxs.system.api.model.KxsSchoolStudy;
|
|
|
import com.kxs.transfer.api.annotation.DtsMsgListener;
|
|
import com.kxs.transfer.api.annotation.DtsMsgListener;
|
|
|
import com.kxs.transfer.api.model.KxsDtsErrorLog;
|
|
import com.kxs.transfer.api.model.KxsDtsErrorLog;
|
|
|
import com.kxs.transfer.api.model.KxsDtsLog;
|
|
import com.kxs.transfer.api.model.KxsDtsLog;
|
|
@@ -12,6 +13,7 @@ import com.kxs.transfer.api.service.KxsDtsLogService;
|
|
|
import com.kxs.transfer.api.service.product.KxsShopGoodsService;
|
|
import com.kxs.transfer.api.service.product.KxsShopGoodsService;
|
|
|
import com.kxs.transfer.api.service.sys.KxsMorningLogService;
|
|
import com.kxs.transfer.api.service.sys.KxsMorningLogService;
|
|
|
import com.kxs.transfer.api.service.sys.KxsMorningService;
|
|
import com.kxs.transfer.api.service.sys.KxsMorningService;
|
|
|
|
|
+import com.kxs.transfer.api.service.sys.KxsSchoolStudyService;
|
|
|
import com.kxs.transfer.api.service.user.*;
|
|
import com.kxs.transfer.api.service.user.*;
|
|
|
import com.kxs.user.api.model.KxsPartner;
|
|
import com.kxs.user.api.model.KxsPartner;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -50,6 +52,7 @@ public class DtsController {
|
|
|
private final KxsLeaderAmountLogService kxsLeaderAmountLogService;
|
|
private final KxsLeaderAmountLogService kxsLeaderAmountLogService;
|
|
|
private final KxsPartnerService kxsPartnerService;
|
|
private final KxsPartnerService kxsPartnerService;
|
|
|
private final KxsMorningService kxsMorningService;
|
|
private final KxsMorningService kxsMorningService;
|
|
|
|
|
+ private final KxsSchoolStudyService kxsSchoolStudyService;
|
|
|
|
|
|
|
|
//产品模块
|
|
//产品模块
|
|
|
private final KxsShopGoodsService kxsShopGoodsService;
|
|
private final KxsShopGoodsService kxsShopGoodsService;
|
|
@@ -158,15 +161,19 @@ public class DtsController {
|
|
|
if ("SchoolMorningMeetLog".equals(dmlData.getTableName())) {
|
|
if ("SchoolMorningMeetLog".equals(dmlData.getTableName())) {
|
|
|
kxsMorningService.changeLogData(dmlData);
|
|
kxsMorningService.changeLogData(dmlData);
|
|
|
}
|
|
}
|
|
|
|
|
+ //创客学堂
|
|
|
|
|
+ if ("SchoolMakerStudy".equals(dmlData.getTableName())) {
|
|
|
|
|
+ kxsSchoolStudyService.changeData(dmlData);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
//存储历史数据
|
|
//存储历史数据
|
|
|
- KxsDtsLog kxsDtsLog = new KxsDtsLog();
|
|
|
|
|
- kxsDtsLog.setDataId(dataId);
|
|
|
|
|
- kxsDtsLog.setContent(JSON.toJSONString(dmlData));
|
|
|
|
|
- kxsDtsLog.setTableName(dmlData.getTableName());
|
|
|
|
|
- kxsDtsLog.setOperation(dmlData.getOperation().toString());
|
|
|
|
|
- kxsDtsLogService.save(kxsDtsLog);
|
|
|
|
|
|
|
+// KxsDtsLog kxsDtsLog = new KxsDtsLog();
|
|
|
|
|
+// kxsDtsLog.setDataId(dataId);
|
|
|
|
|
+// kxsDtsLog.setContent(JSON.toJSONString(dmlData));
|
|
|
|
|
+// kxsDtsLog.setTableName(dmlData.getTableName());
|
|
|
|
|
+// kxsDtsLog.setOperation(dmlData.getOperation().toString());
|
|
|
|
|
+// kxsDtsLogService.save(kxsDtsLog);
|
|
|
|
|
|
|
|
//删除错误记录,不管有没有都删除,因为很快
|
|
//删除错误记录,不管有没有都删除,因为很快
|
|
|
kxsDtsErrorLogService.removeById(dataId);
|
|
kxsDtsErrorLogService.removeById(dataId);
|