Commit 971f6038 authored by tangwei's avatar tangwei

修改接口

parent 40fcd967
...@@ -80,7 +80,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall ...@@ -80,7 +80,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
/** /**
* 同步保存ES * 同步保存ES
*/ */
// eSAlertCalledService.saveAlertCalledToES(alertCalled); eSAlertCalledService.saveAlertCalledToES(alertCalled);
return alertCalledVo; return alertCalledVo;
} }
...@@ -109,8 +109,14 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall ...@@ -109,8 +109,14 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
break; break;
} }
AlertCalled alertCalled =this.getById(id);
//删除缓存 //删除缓存
redisUtils.del(RedisKey.ALERTCALLED_ID+id); redisUtils.del(RedisKey.ALERTCALLED_ID+id);
/**
* 同步更新存ES
*/
eSAlertCalledService.saveAlertCalledToES(alertCalled);
return true; return true;
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException("系统异常!"); 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