Skip to content

Commit 1d0fc95

Browse files
authored
Merge pull request #120 from codingapi/dev
fix #119
2 parents 8624a28 + 4aa2a14 commit 1d0fc95

File tree

28 files changed

+109
-49
lines changed

28 files changed

+109
-49
lines changed

example/example-app/example-app-cmd-domain/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.codingapi.springboot</groupId>
88
<artifactId>example-app</artifactId>
9-
<version>3.4.6</version>
9+
<version>3.4.7</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

example/example-app/example-app-cmd-meta/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.codingapi.springboot</groupId>
88
<artifactId>example-app</artifactId>
9-
<version>3.4.6</version>
9+
<version>3.4.7</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

example/example-app/example-app-cmd-meta/src/main/java/com/codingapi/example/app/cmd/meta/pojo/FlowCmd.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public String getUserName() {
3232
@Getter
3333
public static class FlowStep{
3434
private String workCode;
35+
private long recordId;
3536
private JSONObject formData;
3637

3738
@SneakyThrows
@@ -43,6 +44,10 @@ public IBindData getBindData() {
4344
public String getUserName() {
4445
return TokenContext.current().getUsername();
4546
}
47+
48+
public boolean hasRecordId() {
49+
return recordId > 0;
50+
}
4651
}
4752

4853
@Setter

example/example-app/example-app-cmd-meta/src/main/java/com/codingapi/example/app/cmd/meta/service/FlowRecordRouter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ public FlowResult startFlow(FlowCmd.StartFlow request) {
2626

2727
public FlowStepResult getFlowStep(FlowCmd.FlowStep request) {
2828
IFlowOperator current = flowUserRepository.getUserByUsername(request.getUserName());
29-
return flowService.getFlowStep(request.getWorkCode(), request.getBindData(), current);
29+
if(request.hasRecordId()) {
30+
return flowService.getFlowStep(request.getRecordId(), request.getBindData(), current);
31+
}else {
32+
return flowService.getFlowStep(request.getWorkCode(), request.getBindData(), current);
33+
}
3034
}
3135

3236

example/example-app/example-app-query/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.codingapi.springboot</groupId>
88
<artifactId>example-app</artifactId>
9-
<version>3.4.6</version>
9+
<version>3.4.7</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

example/example-app/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.codingapi.springboot</groupId>
88
<artifactId>springboot-example</artifactId>
9-
<version>3.4.6</version>
9+
<version>3.4.7</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<packaging>pom</packaging>

example/example-domain/example-domain-leave/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.codingapi.springboot</groupId>
88
<artifactId>example-domain</artifactId>
9-
<version>3.4.6</version>
9+
<version>3.4.7</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

example/example-domain/example-domain-user/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.codingapi.springboot</groupId>
88
<artifactId>example-domain</artifactId>
9-
<version>3.4.6</version>
9+
<version>3.4.7</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

example/example-domain/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.codingapi.springboot</groupId>
77
<artifactId>springboot-example</artifactId>
8-
<version>3.4.6</version>
8+
<version>3.4.7</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

example/example-infra/example-infra-flow/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.codingapi.springboot</groupId>
77
<artifactId>example-infra</artifactId>
8-
<version>3.4.6</version>
8+
<version>3.4.7</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

0 commit comments

Comments
 (0)