Browse Source

客服工作台-客服话术管理列表排序修改

renjiaojiao 2 years ago
parent
commit
40b980d9ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rpc/knowledge/internal/service/commonPhrasesService.go

+ 1 - 1
rpc/knowledge/internal/service/commonPhrasesService.go

@@ -126,7 +126,7 @@ func (c *CommonPhrasesService) CommonPhrasesList(param *knowledgeclient.CommonPh
 	var data []*knowledgeclient.CommonPhrases
 	count := Mysql.Count(util.COMMONPHRASES, map[string]interface{}{"status": 0, "appId": param.AppId, "entId": param.EntId})
 	if count > 0 {
-		dataList := Mysql.Find(util.COMMONPHRASES, map[string]interface{}{"status": 0, "appId": param.AppId, "entId": param.EntId}, "", "id desc", cm.IntAll((param.PageIndex-1)*param.PageSize), cm.IntAll(param.PageSize))
+		dataList := Mysql.Find(util.COMMONPHRASES, map[string]interface{}{"status": 0, "appId": param.AppId, "entId": param.EntId}, "", "updateTime desc", cm.IntAll((param.PageIndex-1)*param.PageSize), cm.IntAll(param.PageSize))
 		if dataList != nil && len(*dataList) > 0 {
 			for _, val := range *dataList {
 				data = append(data, &knowledgeclient.CommonPhrases{