Commit 971f6038 authored by tangwei's avatar tangwei

修改接口

parent 40fcd967
......@@ -80,7 +80,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
/**
* 同步保存ES
*/
// eSAlertCalledService.saveAlertCalledToES(alertCalled);
eSAlertCalledService.saveAlertCalledToES(alertCalled);
return alertCalledVo;
}
......@@ -109,8 +109,14 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
break;
}
AlertCalled alertCalled =this.getById(id);
//删除缓存
redisUtils.del(RedisKey.ALERTCALLED_ID+id);
redisUtils.del(RedisKey.ALERTCALLED_ID+id);
/**
* 同步更新存ES
*/
eSAlertCalledService.saveAlertCalledToES(alertCalled);
return true;
} catch (Exception e) {
throw new RuntimeException("系统异常!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment