Skip to content

Commit f039bdd

Browse files
parameter type fix for batch summary query
1 parent f2f9dbe commit f039bdd

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

modules/flowable-app-rest/src/test/java/org/flowable/test/persistence/EntityParameterTypesOverview.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,8 +1550,13 @@ protected static void addBatchPartParams() {
15501550
info.addColumn("BATCH_SEARCH_KEY2_", "batchSearchKey2", PARAMETER_TYPE_NVARCHAR);
15511551

15521552
info.addQueryParameter("tenantIdLike", PARAMETER_TYPE_NVARCHAR);
1553+
1554+
info.addColumn("TOTAL_COUNT_", "totalBatchParts", PARAMETER_TYPE_BIGINT);
1555+
info.addColumn("COMPLETED_COUNT_", "completedBatchParts", PARAMETER_TYPE_BIGINT);
1556+
info.addColumn("SUCCESS_COUNT_", "successBatchParts", PARAMETER_TYPE_BIGINT);
1557+
info.addColumn("FAILED_COUNT_", "failedBatchParts", PARAMETER_TYPE_BIGINT);
15531558
}
1554-
1559+
15551560
protected static void addDeadLetterJobParams() {
15561561
ParameterInfo info = addParameterInfo("deadLetterJob");
15571562
info.addColumn("ID_","id", PARAMETER_TYPE_NVARCHAR);

modules/flowable-batch-service/src/main/resources/org/flowable/batch/service/db/mapping/entity/BatchPart.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@
163163
</sql>
164164

165165
<resultMap id="batchSummaryMap" type="org.flowable.batch.api.BatchSummary">
166-
<result property="totalBatchParts" column="TOTAL_COUNT_"/>
167-
<result property="completedBatchParts" column="COMPLETED_COUNT_"/>
168-
<result property="successBatchParts" column="SUCCESS_COUNT_"/>
169-
<result property="failedBatchParts" column="FAILED_COUNT_"/>
166+
<result property="totalBatchParts" column="TOTAL_COUNT_" jdbcType="BIGINT"/>
167+
<result property="completedBatchParts" column="COMPLETED_COUNT_" jdbcType="BIGINT"/>
168+
<result property="successBatchParts" column="SUCCESS_COUNT_" jdbcType="BIGINT"/>
169+
<result property="failedBatchParts" column="FAILED_COUNT_" jdbcType="BIGINT"/>
170170
</resultMap>
171171

172172
<select id="selectBatchPartCountSummaryByBatchId" parameterType="map" resultMap="batchSummaryMap">

0 commit comments

Comments
 (0)