Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -88,6 +88,7 @@ class System extends Common | @@ -88,6 +88,7 @@ class System extends Common | ||
| 88 | LEFT JOIN `xt-member-two-LINE`.xt_dc_dz_seller_type_rel AS rel ON a.sid = rel.sid | 88 | LEFT JOIN `xt-member-two-LINE`.xt_dc_dz_seller_type_rel AS rel ON a.sid = rel.sid |
| 89 | WHERE | 89 | WHERE |
| 90 | $where | 90 | $where |
| 91 | + GROUP BY a.id | ||
| 91 | order by | 92 | order by |
| 92 | a.cdate desc | 93 | a.cdate desc |
| 93 | LIMIT ".$page.",".$limit.""); | 94 | LIMIT ".$page.",".$limit.""); |
| @@ -98,7 +99,8 @@ class System extends Common | @@ -98,7 +99,8 @@ class System extends Common | ||
| 98 | LEFT JOIN `xt-member-two-LINE`.xt_dc_dz_log_history AS h ON a.id = h.aid | 99 | LEFT JOIN `xt-member-two-LINE`.xt_dc_dz_log_history AS h ON a.id = h.aid |
| 99 | LEFT JOIN `xt-member-two-LINE`.xt_dc_dz_seller_type_rel AS rel ON a.sid = rel.sid | 100 | LEFT JOIN `xt-member-two-LINE`.xt_dc_dz_seller_type_rel AS rel ON a.sid = rel.sid |
| 100 | WHERE | 101 | WHERE |
| 101 | - $where"); | 102 | + $where |
| 103 | + GROUP BY a.id"); | ||
| 102 | foreach ($log_info as $key => $value) { | 104 | foreach ($log_info as $key => $value) { |
| 103 | switch ($value['device']) { | 105 | switch ($value['device']) { |
| 104 | case '1': | 106 | case '1': |
-
Please register or login to post a comment