Browse Source

编辑平衡表图表

xyxie 10 months ago
parent
commit
1097b1cfec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/data_manage/excel/excel_chart_edb.go

+ 1 - 1
models/data_manage/excel/excel_chart_edb.go

@@ -116,7 +116,7 @@ func (e *ExcelChartEdb) AddChartEdbAndData(list []*AddChartEdbAndDataItem, chart
 
 	// 先删除原先的绑定的指标
 	if len(deleteEdbIds) > 0 && chartInfo.ChartInfoId > 0 {
-		sql := `DELETE FROM excel_chart_edb WHERE excel_chart_info_id = ? AND excel_chart_edb_id in (` + utils.GetOrmInReplace(len(deleteEdbIds)) + `)`
+		sql := `DELETE FROM excel_chart_edb WHERE chart_info_id = ? AND excel_chart_edb_id in (` + utils.GetOrmInReplace(len(deleteEdbIds)) + `)`
 		_, err = o.Raw(sql, chartInfo.ChartInfoId, deleteEdbIds).Exec()
 		if err != nil {
 			err = fmt.Errorf("删除原先的指标失败:%v", err)