diff --git a/src/dao/happy_orchard_six_energy_ball_dao.go b/src/dao/happy_orchard_six_energy_ball_dao.go index 603593c..f528394 100644 --- a/src/dao/happy_orchard_six_energy_ball_dao.go +++ b/src/dao/happy_orchard_six_energy_ball_dao.go @@ -7,4 +7,5 @@ import ( type HappyOrchardSixEnergyBallDao interface { GetHappyOrchardSixEnergyBall(sess *xorm.Session, uid, signTime, ballId int) (m *models.HappyOrchardSixEnergyBall, err error) + GetHappyOrchardSixEnergyBallAll(uid, signTime int) (mm *[]models.HappyOrchardSixEnergyBall, err error) } diff --git a/src/implement/happy_orchard_six_energy_ball_db.go b/src/implement/happy_orchard_six_energy_ball_db.go index 4caf71b..abb0834 100644 --- a/src/implement/happy_orchard_six_energy_ball_db.go +++ b/src/implement/happy_orchard_six_energy_ball_db.go @@ -26,3 +26,11 @@ func (h HappyOrchardSixEnergyBallDb) GetHappyOrchardSixEnergyBall(sess *xorm.Ses } return m, nil } +func (h HappyOrchardSixEnergyBallDb) GetHappyOrchardSixEnergyBallAll(uid, signTime int) (mm *[]models.HappyOrchardSixEnergyBall, err error) { + var m []models.HappyOrchardSixEnergyBall + err = h.Db.Where("uid=? and sign_time=?", uid, signTime).Find(m) + if err != nil { + return nil, zhios_order_relate_logx.Error(err) + } + return &m, nil +}