Browse Source

fix:bug

token_replace
黄梓健 5 years ago
parent
commit
7583a775ea
  1. 2
      services/lottery/order_special.go

2
services/lottery/order_special.go

@ -65,7 +65,7 @@ func GetSpecialOrderLottery(repeat string, activityId, ruleId, ladderId, rehears
func GetSpecialOrderWinnersResult(ruleId, rehearsalId, archId interface{}) (result []*OrderWinnersResult, err error) {
err = core.GetXormAuto().Table(&models.OrderDrawRecord{}).Alias("r").
Select("r.order_entry_person_name as entry_person_name, r.user_id, o.receiver as user_name, "+
" u.phone as user_phone, r.prize_name").Join("LEFT",
" o.phone as user_phone, r.prize_name").Join("LEFT",
(&models.CustomerOrder{}).Alias("o"), "o.id=r.customer_order_id and u.is_delete=0").
Where("r.is_delete=0 and r.order_draw_rule_id=? and r.rehearsal_id=? and r.arch_id=?",
ruleId, rehearsalId, archId).Find(&result)

Loading…
Cancel
Save