浏览代码

update

master
shenjiachi 1 天前
父节点
当前提交
e09c58042d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      src/implement/user_tag_records_implement.go

+ 5
- 1
src/implement/user_tag_records_implement.go 查看文件

@@ -79,7 +79,11 @@ func (u UserTagRecordsDb) UserTagRecordsFindByParams(params map[string]interface

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


正在加载...
取消
保存