Skip to content

Commit 7d0b79e

Browse files
committed
update 2.9.24
1 parent c9524ce commit 7d0b79e

File tree

10 files changed

+19
-9
lines changed

10 files changed

+19
-9
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<groupId>com.codingapi.springboot</groupId>
1717
<artifactId>springboot-parent</artifactId>
18-
<version>2.9.23</version>
18+
<version>2.9.24</version>
1919

2020
<url>https://github.com/codingapi/springboot-framewrok</url>
2121
<name>springboot-parent</name>

springboot-starter-data-authorization/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>2.9.23</version>
9+
<version>2.9.24</version>
1010
</parent>
1111

1212
<artifactId>springboot-starter-data-authorization</artifactId>

springboot-starter-data-fast/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-parent</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>2.9.23</version>
8+
<version>2.9.24</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

springboot-starter-flow/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>2.9.23</version>
9+
<version>2.9.24</version>
1010
</parent>
1111

1212
<name>springboot-starter-flow</name>

springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/pojo/FlowResult.java

+6
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,10 @@ public FlowResult(FlowWork flowWork,FlowRecord flowRecord) {
3535
public List<FlowRecord> matchRecordByOperator(IFlowOperator operator){
3636
return records.stream().filter(record -> record.isOperator(operator)).collect(Collectors.toList());
3737
}
38+
39+
40+
public boolean isOver() {
41+
return records.stream().allMatch(FlowRecord::isOverNode);
42+
}
43+
3844
}

springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/record/FlowRecord.java

+4
Original file line numberDiff line numberDiff line change
@@ -432,4 +432,8 @@ public boolean isPostponed() {
432432
public boolean isStartRecord() {
433433
return this.preId == 0;
434434
}
435+
436+
public boolean isOverNode() {
437+
return this.nodeCode.equals(FlowNode.CODE_OVER);
438+
}
435439
}

springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/service/impl/FlowSubmitService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ private void pushEvent(FlowRecord flowRecord, int eventState) {
231231
*/
232232
public FlowResult submitFlow() {
233233
FlowResult flowResult = this.submitCurrentFlow();
234-
if (this.isSkipIfSameApprover()) {
234+
if (this.isSkipIfSameApprover() && !flowResult.isOver()) {
235235
List<FlowRecord> flowRecords = flowResult.matchRecordByOperator(currentOperator);
236236
FlowResult result = flowResult;
237237
if (!flowRecords.isEmpty()) {
238238
for (FlowRecord flowRecord : flowRecords) {
239239
FlowSubmitService flowSubmitService = new FlowSubmitService(flowRecord.getId(), currentOperator, bindData, opinion, flowServiceRepositoryHolder);
240-
result = flowSubmitService.submitCurrentFlow();
240+
result = flowSubmitService.submitFlow();
241241
}
242242
}
243243
return result;

springboot-starter-security/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>2.9.23</version>
9+
<version>2.9.24</version>
1010
</parent>
1111

1212
<artifactId>springboot-starter-security</artifactId>

springboot-starter/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.codingapi.springboot</groupId>
77
<artifactId>springboot-parent</artifactId>
8-
<version>2.9.23</version>
8+
<version>2.9.24</version>
99
</parent>
1010
<artifactId>springboot-starter</artifactId>
1111

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
------------------------------------------------------
2-
CodingApi SpringBoot-Starter 2.9.23
2+
CodingApi SpringBoot-Starter 2.9.24
33
springboot version (${spring-boot.version})
44
------------------------------------------------------

0 commit comments

Comments
 (0)