瀏覽代碼

fix:判断指标是否用作跨品种图表使用调整

Roc 1 年之前
父節點
當前提交
ca2f5e5395
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/data_manage/cross_variety/chart_tag_variety.go

+ 1 - 1
models/data_manage/cross_variety/chart_tag_variety.go

@@ -232,7 +232,7 @@ func SaveVarietyEdb(chartTagId int, list []request.VarietyEdbReq, sysUserId int,
 func GetCountByEdbInfoId(edbInfoId int) (total int, err error) {
 	o := orm.NewOrmUsingDB("data")
 	sql := `SELECT count(1) total FROM chart_tag_variety a 
-         join edb_info b on a.edb_info_id=b.edb_info_id WHERE edb_info_id = ?`
+         join edb_info b on a.edb_info_id=b.edb_info_id WHERE a.edb_info_id = ?`
 	err = o.Raw(sql, edbInfoId).QueryRow(&total)
 
 	return