### 使用了临时表.又分组又连表的感觉好难写,使用拉 ravel 但是现在越来也相信,没解决一个新的难题,自己又进步了一点点 ### 原生的sql: select user_code, realname,sum(points) sum_points, user_id,source_type, t.is_verify, count(source_type) counts from (select * from point_logs where source_type in ('layer', '…