|
@@ -571,7 +571,7 @@ func DeleteCheck(classifyId, edbInfoId int, sysUser *system.Admin) (deleteStatus
|
|
|
return
|
|
|
}
|
|
|
if predictEdbInfoCount > 0 {
|
|
|
- deleteStatus = 3
|
|
|
+ deleteStatus = 5
|
|
|
tipsMsg = "当前指标已用作预测指标,不可删除"
|
|
|
return
|
|
|
}
|
|
@@ -591,7 +591,7 @@ func DeleteCheck(classifyId, edbInfoId int, sysUser *system.Admin) (deleteStatus
|
|
|
//3、删除失败:Deletion failed
|
|
|
//4、知道了:Understood
|
|
|
if len(excelIds) > 0 {
|
|
|
- deleteStatus = 3
|
|
|
+ deleteStatus = 6
|
|
|
tipsMsg = "当前指标已被表格引用,不可删除"
|
|
|
tableList, tmpErr = excel.GetExcelBaseInfoByExcelInfoIdList(excelIds)
|
|
|
if tmpErr != nil && tmpErr.Error() != utils.ErrNoRow() {
|
|
@@ -614,6 +614,7 @@ func DeleteCheck(classifyId, edbInfoId int, sysUser *system.Admin) (deleteStatus
|
|
|
return
|
|
|
}
|
|
|
if len(tagXList) > 0 {
|
|
|
+ deleteStatus = 7
|
|
|
errMsg = "当前指标已添加到跨品种分析,不可删除"
|
|
|
return
|
|
|
}
|
|
@@ -625,6 +626,7 @@ func DeleteCheck(classifyId, edbInfoId int, sysUser *system.Admin) (deleteStatus
|
|
|
}
|
|
|
|
|
|
if len(tagYList) > 0 {
|
|
|
+ deleteStatus = 7
|
|
|
errMsg = "当前指标已添加到跨品种分析,不可删除"
|
|
|
return
|
|
|
}
|