XcglRptDao_activitiStatsUserUnFinishedData.sql 229 B

1234567891011
  1. select
  2. bu.realname as name
  3. ,count(*) as noFinishTaskTotal
  4. from
  5. ACT_HI_TASKINST hi
  6. inner join t_s_base_user bu on hi.ASSIGNEE_=bu.username
  7. where hi.END_TIME_ is null
  8. group by bu.ID
  9. order by noFinishTaskTotal desc
  10. limit :rows