feat: 到期提醒和项目进展统计接口
This commit is contained in:
@@ -24,5 +24,36 @@
|
||||
c.update_time DESC
|
||||
</select>
|
||||
|
||||
<select id="getLatestCommentList" resultType="org.agt.module.license.controller.admin.comment.vo.CommentTreeRespVO">
|
||||
SELECT
|
||||
c.*,
|
||||
u.nickname author,
|
||||
u.avatar,
|
||||
p.`name` project_name
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
c.project_id,
|
||||
max( c.update_time ) max_update_time
|
||||
FROM
|
||||
crm_comment c
|
||||
LEFT JOIN system_users u ON c.user_id = u.id
|
||||
AND u.deleted = 0
|
||||
WHERE
|
||||
c.deleted = 0
|
||||
GROUP BY
|
||||
c.project_id
|
||||
) g
|
||||
LEFT JOIN crm_comment c ON g.project_id = c.project_id
|
||||
AND g.max_update_time = c.update_time
|
||||
AND c.deleted = 0
|
||||
LEFT JOIN system_users u ON c.user_id = u.id
|
||||
AND u.deleted = 0
|
||||
LEFT JOIN crm_project p ON c.project_id = p.id
|
||||
AND p.deleted = 0
|
||||
ORDER BY
|
||||
c.update_time DESC
|
||||
LIMIT 10
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user