处理MySQL的group_bay
parent
9a602b3df3
commit
4280429f66
|
|
@ -85,7 +85,7 @@ public class CustomerSupermarketProductService extends BaseService {
|
|||
|
||||
String selectsql = " select a.customer_id, c.name customer_name ";
|
||||
String fromsql = " from (\n" +
|
||||
" select t.*\n" +
|
||||
" select t.t.customer_id \n" +
|
||||
" from customer_supermarket_product t\n" +
|
||||
" group by t.customer_id\n" +
|
||||
" ) a\n" +
|
||||
|
|
|
|||
Loading…
Reference in New Issue