|
|
@@ -62,11 +62,11 @@ class UserLogic
|
|
|
{
|
|
|
return $productOrder->alias('a')
|
|
|
->join("product_list b", "b.id = a.product_id", "left")
|
|
|
- ->field('a.id as order_id,a.product_id,'.'b.'.$lan.'_name as name,b.thum as img_url,a.price,a.status,a.type_id, count(a.num) as hold_num')
|
|
|
+ ->field('MAX(a.id) as order_id,a.product_id,MAX(a.update_time) as last_update_time,'.'b.'.$lan.'_name as name,b.thum as img_url,a.price,a.status,a.type_id, count(a.num) as hold_num')
|
|
|
->where('a.user_id', $uid)
|
|
|
->group('a.product_id')
|
|
|
->where($where)
|
|
|
- ->order('a.create_time DESC')
|
|
|
+ ->order('last_update_time DESC')
|
|
|
->paginate($pageSize);
|
|
|
}
|
|
|
|