提交 f1d408d7 编写于 作者: T Tijs Rademakers

Update mapping files with if checks for limitBefore and limitAfter

上级 69090f5d
......@@ -131,11 +131,11 @@
</select>
<select id="selectCaseInstancesByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.runtime.CaseInstanceQueryImpl" resultMap="caseInstanceResultMap">
${limitBefore}
select RES.* ${limitBetween}
<if test="firstResult != null and firstResult &gt;= 0">${limitBefore}</if>
select RES.* <if test="firstResult != null and firstResult &gt;= 0">${limitBetween}</if>
<include refid="selectCaseInstancesByQueryCriteriaSql" />
${orderBy}
${limitAfter}
<if test="firstResult != null and firstResult &gt;= 0">${limitAfter}</if>
</select>
<select id="selectCaseInstanceCountByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.runtime.CaseInstanceQueryImpl" resultType="long">
......
......@@ -135,13 +135,12 @@
select * from ${prefix}ACT_CMMN_HI_CASE_INST where ID_ = #{id, jdbcType=VARCHAR}
</select>
<select id="selectHistoricCaseInstancesByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.history.HistoricCaseInstanceQueryImpl"
resultMap="historicCaseInstanceResultMap">
${limitBefore}
select RES.* ${limitBetween}
<select id="selectHistoricCaseInstancesByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.history.HistoricCaseInstanceQueryImpl" resultMap="historicCaseInstanceResultMap">
<if test="firstResult != null and firstResult &gt;= 0">${limitBefore}</if>
select RES.* <if test="firstResult != null and firstResult &gt;= 0">${limitBetween}</if>
<include refid="selectHistoricCaseInstancesByQueryCriteriaSql" />
${orderBy}
${limitAfter}
<if test="firstResult != null and firstResult &gt;= 0">${limitAfter}</if>
</select>
<select id="selectHistoricCaseInstanceCountByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.history.HistoricCaseInstanceQueryImpl"
......
......@@ -80,11 +80,11 @@
</select>
<select id="selectHistoricMilestoneInstancesByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.history.HistoricMilestoneInstanceQueryImpl" resultMap="historicMileStoneInstanceResultMap">
${limitBefore}
select RES.* ${limitBetween}
<if test="firstResult != null and firstResult &gt;= 0">${limitBefore}</if>
select RES.* <if test="firstResult != null and firstResult &gt;= 0">${limitBetween}</if>
<include refid="selectHistoricMilestoneInstancesByQueryCriteriaSql"/>
${orderBy}
${limitAfter}
<if test="firstResult != null and firstResult &gt;= 0">${limitAfter}</if>
</select>
<select id="selectHistoricMilestoneInstanceCountByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.history.HistoricMilestoneInstanceQueryImpl" resultType="long">
......
......@@ -77,11 +77,11 @@
</select>
<select id="selectMilestoneInstancesByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.runtime.MilestoneInstanceQueryImpl" resultMap="mileStoneInstanceResultMap">
${limitBefore}
select RES.* ${limitBetween}
<if test="firstResult != null and firstResult &gt;= 0">${limitBefore}</if>
select RES.* <if test="firstResult != null and firstResult &gt;= 0">${limitBetween}</if>
<include refid="selectMilestoneInstancesByQueryCriteriaSql" />
${orderBy}
${limitAfter}
<if test="firstResult != null and firstResult &gt;= 0">${limitAfter}</if>
</select>
<select id="selectMilestoneInstanceCountByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.runtime.MilestoneInstanceQueryImpl" resultType="long">
......
......@@ -156,11 +156,11 @@
</select>
<select id="selectPlanItemInstancesByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.runtime.PlanItemInstanceQueryImpl" resultMap="planItemInstanceResultMap">
${limitBefore}
select RES.* ${limitBetween}
<if test="firstResult != null and firstResult &gt;= 0">${limitBefore}</if>
select RES.* <if test="firstResult != null and firstResult &gt;= 0">${limitBetween}</if>
<include refid="selectPlanItemInstancesByQueryCriteriaSql"/>
${orderBy}
${limitAfter}
<if test="firstResult != null and firstResult &gt;= 0">${limitAfter}</if>
</select>
<select id="selectPlanItemInstanceCountByQueryCriteria" parameterType="org.flowable.cmmn.engine.impl.runtime.PlanItemInstanceQueryImpl" resultType="long">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册