浏览代码

Merge branch 'ETA_1.8.8' into debug

zwxi 8 月之前
父节点
当前提交
84c80d5bf2
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      services/ai_summary/ai_summary.go

+ 13 - 0
services/ai_summary/ai_summary.go

@@ -5,6 +5,7 @@ import (
 	"eta/eta_api/models/ai_summary"
 	"eta/eta_api/models/system"
 	"eta/eta_api/utils"
+	"strconv"
 )
 
 // GetAiSummaryClassifyListForMe 获取我创建的纪要
@@ -15,18 +16,30 @@ func GetAiSummaryClassifyListForMe(adminInfo system.Admin, resp *ai_summary.AiSu
 		return
 	}
 
+	for k := range rootList {
+		rootList[k].UniqueCode = strconv.Itoa(rootList[k].AiSummaryClassifyId) + "_" + strconv.Itoa(rootList[k].AiSummaryId)
+	}
+
 	classifyAll, err := ai_summary.GetAiSummaryClassifyByParentId(ai_summaryClassifyId)
 	if err != nil && err.Error() != utils.ErrNoRow() {
 		errMsg = "获取失败"
 		return
 	}
 
+	for k := range classifyAll {
+		classifyAll[k].UniqueCode = strconv.Itoa(classifyAll[k].AiSummaryClassifyId) + "_" + strconv.Itoa(classifyAll[k].AiSummaryId)
+	}
+
 	ai_summaryAll, err := ai_summary.GetAiSummaryInfoByAdminId(adminInfo.AdminId)
 	if err != nil && err.Error() != utils.ErrNoRow() {
 		errMsg = "获取失败"
 		return
 	}
 
+	for k := range ai_summaryAll {
+		ai_summaryAll[k].UniqueCode = strconv.Itoa(ai_summaryAll[k].AiSummaryClassifyId) + "_" + strconv.Itoa(ai_summaryAll[k].AiSummaryId)
+	}
+
 	sandListMap := make(map[int][]*ai_summary.AiSummaryClassifyItems)
 	for _, v := range ai_summaryAll {
 		if _, ok := sandListMap[v.AiSummaryClassifyId]; !ok {