Browse Source

批量删除图表信息

xyxie 3 weeks ago
parent
commit
4db1ae73c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/eta_forum/eta_forum_hub.go

+ 1 - 1
services/eta_forum/eta_forum_hub.go

@@ -791,7 +791,7 @@ func ChartInfoDeleteBatch(chartClassifyInfo *data_manage.ChartClassify, sysUser
 		chartClassifyIdList = append(chartClassifyIdList, strconv.Itoa(v.ChartClassifyId))
 	}
 	// 批量删除图表信息
-	condition := " AND source=? AND chart_classify_id in ?"
+	condition := " AND source=? AND chart_classify_id in ? AND forum_chart_info_id > 0"
 	total, err := data_manage.GetChartInfoCountByCondition(condition, []interface{}{chartClassifyInfo.Source, chartClassifyIdList})
 	if err != nil {
 		return