Jianghan 1 жил өмнө
parent
commit
30afc72a42

+ 1 - 1
api/internal/logic/ignoreactionlogic.go

@@ -41,7 +41,7 @@ func (l *IgnoreActionLogic) IgnoreAction(req *types.IgnoreReq) (resp *types.Repl
 			"is_ignore": req.Action,
 		}
 		if req.Action == "1" {
-			update["is_handle"] = 1
+			update["is_handle"] = 0
 		}
 		b := T.CrmMysql.Update("connection_status", query, update)
 		if !b {

+ 4 - 2
api/internal/service/CoopHistoryService.go

@@ -171,7 +171,7 @@ func GetData(propertyForm []string, bid string) (result1, result2 []map[string]i
 					if len(m1Buckets.Buckets) > 0 {
 						for _, v := range m1Buckets.Buckets {
 							if v.Key != "" {
-								m1[v.Key] = map[string]interface{}{"name": v.Key, "amount": v.Amount_all.Value, "count": v.Doc_count}
+								m1[v.Key] = map[string]interface{}{"name": v.Key, "amount": v.Amount_all.Value, "count": v.Doc_count, "nameId": v.EntId.Buckets[0].Key}
 							}
 						}
 					}
@@ -182,6 +182,7 @@ func GetData(propertyForm []string, bid string) (result1, result2 []map[string]i
 			v1 := v.(map[string]interface{})
 			tmp := make(map[string]interface{})
 			tmp["name"] = k
+			tmp["nameId"] = v1["nameId"]
 			tmp["coop_size"] = v1["count"]
 			tmp["coop_amount"] = v1["amount"]
 			result1 = append(result1, tmp)
@@ -203,7 +204,7 @@ func GetData(propertyForm []string, bid string) (result1, result2 []map[string]i
 				if len(m2Buckets.Buckets) > 0 {
 					for _, v := range m2Buckets.Buckets {
 						if v.Key != "" {
-							m2[v.Key] = map[string]interface{}{"name": v.Key, "amount": v.Amount_all.Value, "count": v.Doc_count}
+							m2[v.Key] = map[string]interface{}{"name": v.Key, "amount": v.Amount_all.Value, "count": v.Doc_count, "nameId": v.EntId.Buckets[0].Key}
 						}
 					}
 				}
@@ -214,6 +215,7 @@ func GetData(propertyForm []string, bid string) (result1, result2 []map[string]i
 		v1 := v.(map[string]interface{})
 		tmp := make(map[string]interface{})
 		tmp["name"] = k
+		tmp["nameId"] = v1["nameId"]
 		tmp["coop_size"] = v1["count"]
 		tmp["coop_amount"] = v1["amount"]
 		result2 = append(result2, tmp)

+ 1 - 0
api/internal/service/plistService.go

@@ -95,6 +95,7 @@ func GetProjectList(req *types.ProjectListReq) (resultList []*ProjectEntry, hasN
 	} else {
 		total = int(T.NetworkCom.Count(countSql))
 	}
+	total = len(resultList)
 	if total > req.PageSize {
 		hasNextPage = true
 	} else {