瀏覽代碼

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

renjiaojiao 2 年之前
父節點
當前提交
40b980d9ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  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{