fix:修复查询为null的问题

This commit is contained in:
2025-07-23 19:33:55 +08:00
parent e34a2ccae7
commit 9dd7b4e146

View File

@@ -35,7 +35,7 @@
<select id="queryMomentComment" resultMap="commentResultMap"> <select id="queryMomentComment" resultMap="commentResultMap">
SELECT a.id AS id, SELECT a.id AS id,
b.username AS username, b.username AS username,
b.avatar AS avatar, COALESCE(b.avatar, '') AS avatar,
a.content AS content, a.content AS content,
a.create_time AS date a.create_time AS date
FROM comment_record AS a FROM comment_record AS a
@@ -48,7 +48,7 @@
SELECT a.id AS id, SELECT a.id AS id,
b.id AS userId, b.id AS userId,
b.username AS username, b.username AS username,
b.avatar AS avatar, COALESCE(b.avatar, '') AS avatar,
a.content AS content, a.content AS content,
a.create_time AS date a.create_time AS date
FROM moment AS a FROM moment AS a
@@ -60,7 +60,7 @@
SELECT a.id AS id, SELECT a.id AS id,
b.id AS userId, b.id AS userId,
b.username AS username, b.username AS username,
b.avatar AS avatar, COALESCE(b.avatar, '') AS avatar,
a.content AS content, a.content AS content,
a.create_time AS date a.create_time AS date
FROM moment AS a FROM moment AS a