|
@@ -970,6 +970,15 @@ func (this *PredictEdbInfoController) Detail() {
|
|
|
calculateList[k] = v
|
|
|
}
|
|
|
}
|
|
|
+ fullEdb := new(data_manage.EdbInfoFullClassify)
|
|
|
+ classifyList, err, errMsg := data.GetFullClassifyByClassifyId(edbInfo.ClassifyId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = err.Error()
|
|
|
+ br.ErrMsg = errMsg
|
|
|
+ return
|
|
|
+ }
|
|
|
+ fullEdb.EdbInfo = edbInfo
|
|
|
+ fullEdb.ClassifyList = classifyList
|
|
|
|
|
|
// 拟合残差计算相关系数
|
|
|
var correlationStr string
|
|
@@ -1015,7 +1024,7 @@ func (this *PredictEdbInfoController) Detail() {
|
|
|
}
|
|
|
|
|
|
resp := response.PredictEdbInfo{
|
|
|
- EdbInfo: *edbInfo,
|
|
|
+ EdbInfo: *fullEdb,
|
|
|
RuleType: ruleType,
|
|
|
FixedValue: fixedValue,
|
|
|
CalculateList: calculateList,
|
|
@@ -1342,9 +1351,17 @@ func (this *PredictEdbInfoController) DataList() {
|
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ fullEdb := new(data_manage.EdbInfoFullClassify)
|
|
|
+ classifyList, err, errMsg := data.GetFullClassifyByClassifyId(edbInfo.ClassifyId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = err.Error()
|
|
|
+ br.ErrMsg = errMsg
|
|
|
+ return
|
|
|
+ }
|
|
|
+ fullEdb.EdbInfo = edbInfo
|
|
|
+ fullEdb.ClassifyList = classifyList
|
|
|
resp := response.PredictEdbInfoDataResp{
|
|
|
- EdbInfo: edbInfo,
|
|
|
+ EdbInfo: fullEdb,
|
|
|
DataList: resultDataList,
|
|
|
Button: button,
|
|
|
}
|