|
@@ -153,7 +153,7 @@ func (e *ExcelChartEdb) AddChartEdbAndData(list []*AddChartEdbAndDataItem, chart
|
|
|
}
|
|
|
|
|
|
//更新图表id
|
|
|
- sql := `update excel_chart_edb set chart_info_id = ? where excel_chart_edb_id in (` + utils.GetOrmInReplace(len(updateIds)) + `)`
|
|
|
+ sql := `update excel_chart_edb set chart_info_id = ? where excel_chart_edb_id in (` + utils.GetOrmInReplace(len(updateIds)) + `) and chart_info_id=0`
|
|
|
_, err = o.Raw(sql, chartInfoId, updateIds).Exec()
|
|
|
if err != nil {
|
|
|
err = fmt.Errorf("更新图表id失败,AddChartEdbAndData: %v", err)
|