|
|
@ -86,6 +86,6 @@ func GetRedEnvelopesByUserId(userId int64) ([]*ShakeRedEnvelopeRecord, error) { |
|
|
|
} |
|
|
|
|
|
|
|
func (t *ShakeRedEnvelopeRecord) GetLiveRedPackRecord(id, rehearsalId interface{}) (bool, error) { |
|
|
|
return core.GetXormAuto().Where("is_delete=0 and red_envelope_type = 1 and user_id == 0 "+ |
|
|
|
return core.GetXormAuto().Where("is_delete=0 and red_envelope_type = 1 and user_id = 0 and "+ |
|
|
|
"live_red_envelope_rule_id=? and rehearsal_id=?", id, rehearsalId).Get(t) |
|
|
|
} |