|
|
@ -64,7 +64,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 username, "+ |
|
|
|
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", |
|
|
|
(&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=?", |
|
|
|