|
@@ -529,6 +529,24 @@ func (this *ChartClassifyController) DeleteChartClassifyCheck() {
|
|
|
tipsMsg = "可删除,进行删除操作"
|
|
|
}
|
|
|
|
|
|
+ if req.ChartClassifyId == 0 && req.ChartInfoId > 0 {
|
|
|
+ chartInfo, err := data_manage.GetChartInfoById(req.ChartInfoId)
|
|
|
+ if err != nil {
|
|
|
+ if utils.IsErrNoRow(err) {
|
|
|
+ br.Msg = "图表已删除,请刷新页面"
|
|
|
+ br.ErrMsg = "指标不存在,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ br.Msg = "删除失败"
|
|
|
+ br.ErrMsg = "获取图表信息失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if chartInfo.ForumChartInfoId > 0 {
|
|
|
+ deleteStatus = 3
|
|
|
+ tipsMsg = "删除后,该图表将从ETA投研资源库同步删除,影响客户的查看权限,是否确认删除?"
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
resp := new(data_manage.ChartClassifyDeleteCheckResp)
|
|
|
resp.DeleteStatus = deleteStatus
|
|
|
resp.TipsMsg = tipsMsg
|
|
@@ -705,6 +723,10 @@ func (this *ChartClassifyController) DeleteChartClassify() {
|
|
|
// 删除MY ETA 图表 es数据
|
|
|
//go data.EsDeleteMyChartInfoByChartInfoId(req.ChartInfoId)
|
|
|
go data.EsDeleteMyChartInfoByMyChartIds(myIds)
|
|
|
+
|
|
|
+ if chartInfo.ForumChartInfoId > 0 {
|
|
|
+ go eta_forum.DeleteChartByForumChartInfoId(chartInfo.ForumChartInfoId)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
var condition string
|