diff --git a/services/lottery/order.go b/services/lottery/order.go index 2b96b53..2e195d3 100644 --- a/services/lottery/order.go +++ b/services/lottery/order.go @@ -48,7 +48,7 @@ type OrderWinnersResult struct { func GetOrderWinnersResult(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, u.nickname as username, "+ + Select("r.order_entry_person_name as entry_person_name, r.user_id, u.nickname as user_name, "+ " u.phone as user_phone, u.avatar, r.prize_name").Join("LEFT", (&models.User{}).Alias("u"), "u.id=r.user_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=?", diff --git a/services/lottery/order_special.go b/services/lottery/order_special.go index 84dbb35..83351dc 100644 --- a/services/lottery/order_special.go +++ b/services/lottery/order_special.go @@ -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=?",