Browse Source

bug: sql error

master
黄梓健 5 years ago
parent
commit
6fea5132cd
  1. 2
      models/shake_red_envelope_record.go

2
models/shake_red_envelope_record.go

@ -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)
}
Loading…
Cancel
Save