Browse Source

fix:bug

token_replace
黄梓健 4 years ago
parent
commit
2564262cc2
  1. 2
      services/lottery/order.go
  2. 2
      services/lottery/order_special.go

2
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=?",

2
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=?",

Loading…
Cancel
Save