|
@@ -4325,7 +4325,7 @@ func (this *EdbInfoController) SetEdbDataInsertConfig() {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
func (this *EdbInfoController) TraceEdbInfo() {
|
|
@@ -4341,14 +4341,32 @@ func (this *EdbInfoController) TraceEdbInfo() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
- edbInfoId, _ := this.GetInt("EdbInfoId")
|
|
|
- if edbInfoId <= 0 {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ uniqueCode := this.GetString("UniqueCode")
|
|
|
+ if uniqueCode == `` {
|
|
|
br.Msg = "参数错误"
|
|
|
br.ErrMsg = "参数错误"
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- resp, err := data.TraceEdbInfoByEdbInfoId(edbInfoId)
|
|
|
+
|
|
|
+ edbInfo, err := data_manage.GetEdbInfoByUniqueCode(uniqueCode)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取失败"
|
|
|
+ br.Msg = "获取失败,Err:" + err.Error()
|
|
|
+ if err.Error() == utils.ErrNoRow() {
|
|
|
+ br.Msg = "指标不存在"
|
|
|
+ }
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ resp, err := data.TraceEdbInfoByEdbInfoId(edbInfo.EdbInfoId)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.Msg = "获取失败,Err:" + err.Error()
|