SELECT sonComment.*, user.nickname AS `commentUserName`, user.avatar AS `comment_user_avatar`, aa.nickname AS `comment_reply_name`, aa.avatar AS `comment_reply_avatar` FROM `sonComment` LEFTJOIN `user` ON user.user_id = sonComment.son_comment_user_id LEFTJOIN ( SELECT a.son_comment_id, b.avatar, b.nickname, b.`user_id` FROM sonComment a INNERJOINuser b ON b.user_id = a.son_comment_reply_user_id ) aa ON aa.`user_id` = sonComment.`son_comment_reply_user_id`
2023-01-10 18:22:23.359 DEBUG 4480 --- [nio-8081-exec-1] c.y.w.m.S.listJoinInfoPages : ==> Preparing: SELECT sonComment.*, user.nickname AS `comment_user_name`, user.avatar AS `comment_user_avatar`, aa.nickname AS `comment_reply_name`, aa. avatar AS `comment_reply_avatar` FROM `sonComment` LEFT JOIN `user` ON user.user_id = sonComment.son_comment_user_id LEFT JOIN ( SELECT a.son_comment_id, b.avatar, b.nickname, b.`user_id` FROM sonComment a INNER JOIN user b ON b.user_id = a. son_comment_reply_user_id ) aa ON aa.`user_id` = sonComment.`son_comment_reply_user_id` WHERE (son_comment_parent_id = ?) ORDER BY son_comment_created_time ASC LIMIT ? 2023-01-10 18:22:23.360 DEBUG 4480 --- [nio-8081-exec-1] c.y.w.m.S.listJoinInfoPages : ==> Parameters: 29(Integer), 10(Long) 2023-01-10 18:22:23.405 DEBUG 4480 --- [nio-8081-exec-1] c.y.w.m.S.listJoinInfoPages : <== Total: 1