userid
This commit is contained in:
parent
6f409296d5
commit
a2a89508e6
|
@ -53,7 +53,7 @@ func (d *CheckinMoneyDao) Get(id int64) (*model.CheckinMoney, error) {
|
|||
func (d *CheckinMoneyDao) GetByDay(userId, day, checkinType string) (*model.CheckinMoney, error) {
|
||||
var u model.CheckinMoney
|
||||
tx := GetDB().Table(d.TableName())
|
||||
tx = tx.Where("user_id = ?", userId)
|
||||
tx = tx.Where("userid = ?", userId)
|
||||
tx = tx.Where("checkin_type = ?", checkinType)
|
||||
tx = tx.Where("day = ?", day)
|
||||
res := tx.First(&u)
|
||||
|
|
Loading…
Reference in New Issue