Browse Source

fix:bug

token_replace
黄梓健 4 years ago
parent
commit
4b4f985553
  1. 2
      controllers/pc/order_draw.go

2
controllers/pc/order_draw.go

@ -549,7 +549,7 @@ func (t *OrderDrawCtl) Orders() {
count, err := (&models.CustomerOrder{}).CountCustomerOrder(activity.Id, activity.RehearsalId, activity.ArchId, 1)
orders := make([]*OrdersResult, 0)
err = core.GetXormAuto().Table(&models.CustomerOrder{}).Alias("o").Select("o.id as id, "+
" o.area_name, o.order_entry_person_name as entry_person_name, o.buyer_id as user_id, "+
" o.area_name, o.order_entry_person_name as entry_person_name, o.buyer_id as user_id, o.goods_name "+
" o.receiver as nickname, o.phone as phone, o.address as address, o.created_at, l.extra_data").
Distinct("o.id").Join("LEFT", (&models.InvitationLetter{}).Alias("l"),
"o.buyer_id=l.user_id and l.rehearsal_id=? and l.arch_id=?", activity.RehearsalId, activity.ArchId).

Loading…
Cancel
Save