|
@@ -1,15 +1,16 @@
|
|
|
package api
|
|
|
|
|
|
import (
|
|
|
- "../../routers/restful"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
- "github.com/Anderson-Lu/gofasion/gofasion"
|
|
|
- "github.com/xormplus/xorm"
|
|
|
"sort"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
+
|
|
|
+ "../../routers/restful"
|
|
|
+ "github.com/Anderson-Lu/gofasion/gofasion"
|
|
|
+ "github.com/xormplus/xorm"
|
|
|
)
|
|
|
|
|
|
//包含报表模块前端需要的各种数据格式转换
|
|
@@ -750,9 +751,10 @@ func getAccuracyV4(queryList []map[string]interface{}, queryListSum []map[string
|
|
|
data3 = append(data3, datamap2child)
|
|
|
datamap2child = make(map[string]interface{})
|
|
|
}
|
|
|
- datamap2 = make(map[string]interface{})
|
|
|
+ // datamap2 = make(map[string]interface{})
|
|
|
datamap2["children"] = data3
|
|
|
data2 = append(data2, datamap2)
|
|
|
+ datamap2 = make(map[string]interface{})
|
|
|
data3 = []interface{}{}
|
|
|
}
|
|
|
|