qq_39078783
CoCo痴
2019-01-23 16:12

用纯mybatis的resultmap 来实现这个语句 不使用链表 怎么做

  • spring
  • mysql
SELECT sum(a.name) FROM
 (
        SELECT 
        (pi.total_invest * max( ps.completed_investment )/100) as name
        FROM project_info pi
        INNER JOIN project_scheduling ps ON pi.rid = ps.project_father_id 
        GROUP BY pi.rid
    ) a
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换