liuxiaolong
2019-08-20 e8164f07ec594bf7d9574a7f2227e90b87a9f85d
service/EnableStatusControlService.go
@@ -17,7 +17,7 @@
      "/" + config.EsInfo.EsIndex.DbTables.IndexName + "/_search"
   var setApi dbapi.SysSetApi
   _, sysconf := setApi.GetServerInfo()
   jsonDsl := `{
   jsonDSL := `{
   "query": {
      "bool": {
         "filter": [{
@@ -36,7 +36,7 @@
   "size": 10000
}
`
   buf, err := esutil.EsReq("POST", url, []byte(jsonDsl))
   buf, err := esutil.EsReq("POST", url, []byte(jsonDSL))
   if err != nil {
      logger.Debug(err)
   }
@@ -117,6 +117,23 @@
   }
   if middle > 0 {
      logger.Debug("修改成功")
      //if flag {//生效的
      //   discovery.AddDbMessage(&protomsg.EsPersonCacheChange{
      //      Type: protomsg.EsCacheChanged_T_DbTable,
      //      PersonId: "",
      //      TableId: id,
      //      Feature: "",
      //      Action: protomsg.DbAction_Insert,
      //   })
      //} else {//失效的
      //   discovery.AddDbMessage(&protomsg.EsPersonCacheChange{
      //      Type: protomsg.EsCacheChanged_T_DbTable,
      //      PersonId: "",
      //      TableId: id,
      //      Feature: "",
      //      Action: protomsg.DbAction_Insert,
      //   })
      //}
      message = "修改成功"
   }
   return message