|
@@ -3,7 +3,7 @@ package service
|
|
|
import (
|
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
|
"app.yhyue.com/moapp/jybase/encrypt"
|
|
|
- elastic "app.yhyue.com/moapp/jybase/es"
|
|
|
+
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
|
MC "bp.jydev.jianyu360.cn/BaseService/biService/entity"
|
|
|
"bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice"
|
|
@@ -35,7 +35,7 @@ func (l SqlService) SqlManage(in *biservice.SqlManageReq) []byte {
|
|
|
count := int64(0)
|
|
|
switch dbType {
|
|
|
case "es":
|
|
|
- count, rs = elastic.GetWithCount(common.InterfaceToStr((*sqlData)["db_name"]), common.InterfaceToStr((*sqlData)["db_name"]), "", Sqlformat(common.InterfaceToStr((*sqlData)["content"]), *in))
|
|
|
+ count, rs = MC.EntEs.GetWithCount(common.InterfaceToStr((*sqlData)["db_name"]), common.InterfaceToStr((*sqlData)["db_name"]), "", Sqlformat(common.InterfaceToStr((*sqlData)["content"]), *in))
|
|
|
}
|
|
|
for k, v := range *rs {
|
|
|
(*rs)[k]["id"] = encrypt.EncodeArticleId2ByCheck(common.InterfaceToStr(v["_id"]))
|