|
@@ -3010,7 +3010,7 @@ func (this *EdbInfoController) EdbInfoRefresh() {
|
|
|
br.ErrMsg = "参数错误"
|
|
|
return
|
|
|
}
|
|
|
- _, err := data_manage.GetEdbInfoById(edbInfoId)
|
|
|
+ edbInfo, err := data_manage.GetEdbInfoById(edbInfoId)
|
|
|
if err != nil {
|
|
|
if utils.IsErrNoRow(err) {
|
|
|
br.Msg = "数据已被删除,请刷新页面"
|
|
@@ -3021,6 +3021,11 @@ func (this *EdbInfoController) EdbInfoRefresh() {
|
|
|
br.ErrMsg = "获取指标信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ if edbInfo.NoUpdate == 1 {
|
|
|
+ br.Msg = "该指标已停用"
|
|
|
+ br.ErrMsg = "该指标已停用,edbCode:" + edbInfo.EdbCode
|
|
|
+ return
|
|
|
+ }
|
|
|
err, isAsync := data.EdbInfoRefreshAllFromBaseV2(edbInfoId, false, false)
|
|
|
if err != nil {
|
|
|
br.Msg = "刷新失败"
|