|
@@ -2,6 +2,7 @@ package task
|
|
|
|
|
|
import (
|
|
import (
|
|
"bytes"
|
|
"bytes"
|
|
|
|
+ "common_utils/mongodb"
|
|
"context"
|
|
"context"
|
|
"encoding/csv"
|
|
"encoding/csv"
|
|
"encoding/json"
|
|
"encoding/json"
|
|
@@ -753,6 +754,17 @@ func NewTaskRunAll(tt *TTask, budp bool, mapInfo map[string]interface{}) int {
|
|
}
|
|
}
|
|
res := map[string]interface{}{}
|
|
res := map[string]interface{}{}
|
|
ksmap := make(map[string]map[string][]string)
|
|
ksmap := make(map[string]map[string][]string)
|
|
|
|
+ // 针对detail内容,需要从oss 获取
|
|
|
|
+ if tools.IsOss {
|
|
|
|
+ id := mongodb.BsonIdToSId(tmp["_id"])
|
|
|
|
+ val := tools.OssGetObject(id, tools.BucketName)
|
|
|
|
+ if val == "" {
|
|
|
|
+ log.Println("获取oss 内容为空", id)
|
|
|
|
+ } else {
|
|
|
|
+ tmp["detail"] = val
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
if util.IntAll(tmp["infoformat"]) == 2 { //此处增加特例
|
|
if util.IntAll(tmp["infoformat"]) == 2 { //此处增加特例
|
|
res["toptype"] = "拟建"
|
|
res["toptype"] = "拟建"
|
|
res["subtype"] = "拟建"
|
|
res["subtype"] = "拟建"
|