|
@@ -195,16 +195,19 @@ func GetPermissionsByIds(ids []int) (permissionDTOs []reportService.PermissionDT
|
|
|
|
|
|
func matchAllByCondition(sorts []string, key string, column string, value string) (request *es.ESQueryRequest) {
|
|
|
req := new(es.ESQueryRequest)
|
|
|
- return req.CreateESQueryRequest(htConfig.GetMediaIndex(), ESColumn, key, 0, 1, sorts, es.MatchAllByCondition).ByCondition(column, value)
|
|
|
+ //return req.CreateESQueryRequest(htConfig.GetMediaIndex(), ESColumn, key, 0, 1, sorts, es.MatchAllByCondition).ByCondition(column, value)
|
|
|
+ return req.CreateESQueryRequest(htConfig.GetMediaIndex(), ESColumn, key, 0, 1, sorts, es.MatchAll)
|
|
|
}
|
|
|
|
|
|
func matchByCondition(sorts []string, key string, column string, value string, from int, to int) (request *es.ESQueryRequest) {
|
|
|
req := new(es.ESQueryRequest)
|
|
|
- return req.CreateESQueryRequest(htConfig.GetMediaIndex(), ESColumn, key, from, to, sorts, es.MatchAllByCondition).ByCondition(column, value)
|
|
|
+ //return req.CreateESQueryRequest(htConfig.GetMediaIndex(), ESColumn, key, from, to, sorts, es.MatchAllByCondition).ByCondition(column, value)
|
|
|
+ return req.CreateESQueryRequest(htConfig.GetMediaIndex(), ESColumn, key, from, to, sorts, es.MatchAll)
|
|
|
}
|
|
|
func matchRangeByCondition(key string, from int, to int, max int64, sorts []string, column string, value string) (request *es.ESQueryRequest) {
|
|
|
req := new(es.ESQueryRequest)
|
|
|
- return req.CreateESQueryRequest(htConfig.GetMediaIndex(), ESColumn, key, from, to, sorts, es.RangeByCondition).Range(0, max, ESRangeColumn).ByCondition(column, value)
|
|
|
+ //return req.CreateESQueryRequest(htConfig.GetMediaIndex(), ESColumn, key, from, to, sorts, es.RangeByCondition).Range(0, max, ESRangeColumn).ByCondition(column, value)
|
|
|
+ return req.CreateESQueryRequest(htConfig.GetMediaIndex(), ESColumn, key, from, to, sorts, es.Range).Range(0, max, ESRangeColumn)
|
|
|
}
|
|
|
|
|
|
func GetImageSrc(id int) (src string, err error) {
|