diff --git a/controllers/client/order_entry.go b/controllers/client/order_entry.go index 9f36899..a75f7f3 100644 --- a/controllers/client/order_entry.go +++ b/controllers/client/order_entry.go @@ -478,7 +478,7 @@ func (t *OrderEntryCtl) EntryOrders() { "o.goods_id=g.id and o.activity_id=g.activity_id and g.is_delete=0"). Join("LEFT", new(models.InvitationLetter).Alias("l"), "l.user_id = o.buyer_id and o.activity_id=l.activity_id and o.arch_id=l.arch_id and l.is_delete=0"). - Where("o.activity_id=? and o.order_entry_person_id=? and o.rehearsal_id=? and arch_id=? and o.is_delete=0", + Where("o.activity_id=? and o.order_entry_person_id=? and o.rehearsal_id=? and o.arch_id=? and o.is_delete=0", activityId, uid, activity.RehearsalId, activity.ArchId).Desc("o.created_at").Find(&list) t.CheckErr(err)