@@ -644,7 +644,7 @@ func DelBaiinfoData(indexId int) (err error, errMsg string) {
err = errors.New("获取分类下的指标信息失败,Err:" + err.Error())
return
}
- if edbInfo != nil {
+ if edbInfo != nil && edbInfo.EdbInfoId > 0 {
errMsg = "当前指标已被引用,不可删除"
err = nil
@@ -192,7 +192,7 @@ func DelClarksonsData(indexId int) (err error, errMsg string) {
@@ -639,7 +639,7 @@ func DelSciData(indexId int) (err error, errMsg string) {
@@ -240,7 +240,7 @@ func DelSciHqData(indexId int) (err error, errMsg string) {
@@ -1011,7 +1011,7 @@ func DelSmmData(indexId int) (err error, errMsg string) {
@@ -568,7 +568,7 @@ func DelMysteelChemical(indexId int, sysUser *system.Admin) (err error, errMsg s