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

This commit is contained in:
thinkgem
2025-09-29 11:37:56 +08:00
parent b7c69ae981
commit 0d9980e4ca

View File

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