|
@@ -81,9 +81,9 @@ func (u UserTagRecordsDb) UserTagRecordsExist(uid int64, tagId int) (bool, error |
|
|
var m model.UserTagRecords |
|
|
var m model.UserTagRecords |
|
|
session := u.Db.Where("tag_id = ?", tagId) |
|
|
session := u.Db.Where("tag_id = ?", tagId) |
|
|
if uid != 0 { |
|
|
if uid != 0 { |
|
|
session.And("uid=?", uid) |
|
|
|
|
|
|
|
|
session.And("uid = ?", uid) |
|
|
} |
|
|
} |
|
|
exist, err := session.Exist(m) |
|
|
|
|
|
|
|
|
exist, err := session.Exist(&m) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return false, zhios_order_relate_logx.Error(err) |
|
|
return false, zhios_order_relate_logx.Error(err) |
|
|
} |
|
|
} |
|
|