liuxiaolong
2019-08-08 1e24626fa58f488f7744ce94e88a650f05c7a749
controllers/dbtablesCon.go
@@ -98,8 +98,30 @@
   data := esutil.GetEsDataReq(url, params, false)
   //c.JSON(200, changeEsRespData(data, "修改成功"))
   result := changeEsRespData(data, "修改成功")
   if dbtable.Enable == 0 {
      res := UpdateDbPersonsOfDbTable(dbtable.Id)
      //fmt.Println("同步修改人员状态成功----",res)
      logger.Debug("同步修改人员状态成功----", res)
   }
   if result["success"].(bool) {
      //code.Success.Message = "修改底库成功"
      //if dbtable.Enable ==1 {
      //   discovery.AddDbMessage(&protomsg.EsPersonCacheChange{
      //      Type: protomsg.EsCacheChanged_T_DbTable,
      //      PersonId: "",
      //      TableId: []string{ dbtable.Id },
      //      Feature: "",
      //      Action: protomsg.DbAction_Insert,
      //   })
      //} else {
      //   discovery.AddDbMessage(&protomsg.EsPersonCacheChange{
      //      Type: protomsg.EsCacheChanged_T_DbTable,
      //      PersonId: "",
      //      TableId: []string{ dbtable.Id },
      //      Feature: "",
      //      Action: protomsg.DbAction_Delete,
      //   })
      //}
      util.ResponseFormat(c, code.Success, result["data"])
   } else {
      //code.ServiceInsideError.Message += result["msg"].(string)