WITH tmp AS(
SELECT sum(sessioncount) as visitCount, appid from t_stat_visit where stattype = '1' GROUP BY appid
)
SELECT
t1.*, t2.visitCount
FROM
t_e_oauth_application t1 LEFT JOIN tmp t2 on t1.appid = t2.appid
WHERE
EXISTS (
SELECT
ID
FROM
t_e_app_version
WHERE
t1. ID = t_e_app_version.appid
AND t_e_app_version.status = '6'
)
AND t1.createorid = #{creatorId}
ORDER BY lastmodifytime DESC

 

 

 

 

 

相关文章:

  • 2022-01-06
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2022-02-16
  • 2022-03-13
  • 2021-09-13
  • 2022-12-23
猜你喜欢
  • 2022-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-05-10
  • 2021-06-07
相关资源
相似解决方案