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

Update mapping files with if checks for limitBefore and limitAfter

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