|
@@ -232,7 +232,7 @@ func SaveVarietyEdb(chartTagId int, list []request.VarietyEdbReq, sysUserId int,
|
|
func GetCountByEdbInfoId(edbInfoId int) (total int, err error) {
|
|
func GetCountByEdbInfoId(edbInfoId int) (total int, err error) {
|
|
o := orm.NewOrmUsingDB("data")
|
|
o := orm.NewOrmUsingDB("data")
|
|
sql := `SELECT count(1) total FROM chart_tag_variety a
|
|
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)
|
|
err = o.Raw(sql, edbInfoId).QueryRow(&total)
|
|
|
|
|
|
return
|
|
return
|