Commit a8e93415 authored by neo's avatar neo

[bugfix] fix manual formual sql limit to rownum

parent 9dbb14aa
...@@ -106,13 +106,13 @@ ...@@ -106,13 +106,13 @@
FROM FROM
PERIOD_CELL_TEMPLATE CT PERIOD_CELL_TEMPLATE CT
JOIN JOIN
REPORT R PERIOD_REPORT R
ON ON
CT.REPORT_TEMPLATE_ID = R.TEMPLATE_ID CT.REPORT_TEMPLATE_ID = R.TEMPLATE_ID
AND CT.PERIOD = R.PERIOD AND CT.PERIOD = R.PERIOD
WHERE WHERE
CT.CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=BIGINT} CT.CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=BIGINT}
AND R.ID = #{reportId,jdbcType=BIGINT} LIMIT 1 AND R.ID = #{reportId,jdbcType=BIGINT} ROWNUM = 1
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment