新增 toOrderSql() 和 toGroupSql() 方法,当为空的时候不输出 ORDER BY 和 GROUP BY 关键字

This commit is contained in:
thinkgem
2025-09-29 11:37:35 +08:00
parent 95d2a62443
commit 62f45c5f45

View File

@@ -22,7 +22,8 @@
AND u.user_code = #{userCode}
</if>
</where>
ORDER BY ${sqlMap.order.toSql()}
${sqlMap.group.toGroupSql()}
${sqlMap.order.toOrderSql()}
</select>
<!-- 重写 Dao 中的 insert 查询方法 v5.11.1