xyxie 2 周之前
父節點
當前提交
6c62cbb4fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/chart_description.go

+ 1 - 1
models/chart_description.go

@@ -106,7 +106,7 @@ func BatchUpdateChartDescription(chartInfoId int, descriptionList []*ChartDescri
 	}
 	if len(deleteIds) > 0 {
 		sql := `DELETE FROM chart_description WHERE id IN (`+utils.GetOrmInReplace(len(deleteIds))+`) AND chart_info_id = ?`
-		_, err = tx.Raw(sql, deleteIds).Exec()
+		_, err = tx.Raw(sql, deleteIds, chartInfoId).Exec()
 	}
 	
 	return