From f79f0665763f6d9fce7e7086d8e52f39e0268a11 Mon Sep 17 00:00:00 2001 From: tommy <3405129587@qq.com> Date: Wed, 5 Aug 2020 10:11:14 +0800 Subject: [PATCH] fix:bug --- controllers/client/order_entry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/client/order_entry.go b/controllers/client/order_entry.go index 2d7faca..d45b275 100644 --- a/controllers/client/order_entry.go +++ b/controllers/client/order_entry.go @@ -508,7 +508,7 @@ func (t *OrderEntryCtl) EntryOrders() { " o.receiver as receiver, o.phone as phone, o.address as address, o.buyer_id as user_id, o.order_entry_person_name as entry_name, "+ " o.total_amount as order_money, DATE_FORMAT(o.created_at, '%Y-%m-%d %H:%i:%S') AS order_time"). Where("o.activity_id=? and o.rehearsal_id=? and o.order_entry_person_id=? and o.arch_id=?", - activity.Id, activity.RehearsalId, uid, activity.ArchId).Desc("o.id").Find(&list) + activity.Id, activity.RehearsalId, uid, activity.ArchId).Desc("o.created_at").Find(&list) t.CheckErr(err) orderIds := make([]int, 0) for _, v := range list {