|
@@ -53,13 +53,7 @@ public class AlarmRuleRebackJob {
|
|
}
|
|
}
|
|
|
|
|
|
private void rebackKuaiShou() {
|
|
private void rebackKuaiShou() {
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //0状态为启动
|
|
|
|
- map.put("message", "success");
|
|
|
|
- map.put("value_time", DateUtils.getLastDay(DateUtils.formatDate(new Date()), 1));
|
|
|
|
- map.put("indicator_code", "TIME");
|
|
|
|
- map.put("media_type", "快手");
|
|
|
|
- List<AlarmRuleOperationRecord> ruleAccountTemplates = ruleOperationRecordMapper.selectByMap(map);
|
|
|
|
|
|
+ List<AlarmRuleOperationRecord> ruleAccountTemplates = ruleOperationRecordMapper.queryToBeRestoredInfo("快手",DateUtils.getLastDay(DateUtils.formatDate(new Date()), 1));
|
|
if (!Check.isNull(ruleAccountTemplates)) {
|
|
if (!Check.isNull(ruleAccountTemplates)) {
|
|
ruleAccountTemplates.forEach(operationRecord -> {
|
|
ruleAccountTemplates.forEach(operationRecord -> {
|
|
CtopOauthToken token = tokenService.getTokenByAccountId(operationRecord.getAccountId());
|
|
CtopOauthToken token = tokenService.getTokenByAccountId(operationRecord.getAccountId());
|
|
@@ -83,13 +77,7 @@ public class AlarmRuleRebackJob {
|
|
}
|
|
}
|
|
|
|
|
|
private void rebackByteDance() {
|
|
private void rebackByteDance() {
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //0状态为启动
|
|
|
|
- map.put("message", "success");
|
|
|
|
- map.put("value_time", DateUtils.getLastDay(DateUtils.formatDate(new Date()), 1));
|
|
|
|
- map.put("indicator_code", "TIME");
|
|
|
|
- map.put("media_type", "头条");
|
|
|
|
- List<AlarmRuleOperationRecord> ruleAccountTemplates = ruleOperationRecordMapper.selectByMap(map);
|
|
|
|
|
|
+ List<AlarmRuleOperationRecord> ruleAccountTemplates = ruleOperationRecordMapper.queryToBeRestoredInfo("头条",DateUtils.getLastDay(DateUtils.formatDate(new Date()), 1));
|
|
if (!Check.isNull(ruleAccountTemplates)) {
|
|
if (!Check.isNull(ruleAccountTemplates)) {
|
|
ruleAccountTemplates.forEach(operationRecord -> {
|
|
ruleAccountTemplates.forEach(operationRecord -> {
|
|
CtopOauthToken token = tokenService.getTokenByAccountId(operationRecord.getAccountId());
|
|
CtopOauthToken token = tokenService.getTokenByAccountId(operationRecord.getAccountId());
|