Ver código fonte

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

Roc 1 ano atrás
pai
commit
ca2f5e5395

+ 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