查询 用户 质量评分 创建时间最新的数据

This commit is contained in:
zhaokaiyao@91isoft.com
2022-01-07 15:13:56 +08:00
parent c8676cdf4a
commit 73a847b02c
@@ -55,7 +55,13 @@
LEFT JOIN ts_user `user` ON quality_evaluation.user_id = `user` .USID
LEFT JOIN evaluation_index AS `index` ON `index`.id = quality_evaluation.evaluation_index
${ew.customSqlSegment}
AND create_time IN (
SELECT
MAX(create_time)
FROM
quality_evaluation
${ew.customSqlSegment}
)
ORDER BY `index`.index_sort
</select>
</mapper>