diff --git a/common/dao/checkin_money.go b/common/dao/checkin_money.go index 2e31af8..0b6c111 100644 --- a/common/dao/checkin_money.go +++ b/common/dao/checkin_money.go @@ -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)