Skip to content

Commit 8242295

Browse files
authored
Merge pull request #124 from codingapi/dev
Dev
2 parents 1d0fc95 + ff6620f commit 8242295

File tree

51 files changed

+953
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+953
-95
lines changed

admin-ui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"@ant-design/icons": "^5.4.0",
77
"@ant-design/pro-components": "^2.8.7",
88
"@babel/standalone": "^7.25.6",
9-
"@codingapi/flow-pc": "^0.0.41",
10-
"@codingapi/form-pc": "^0.0.41",
11-
"@codingapi/ui-framework": "^0.0.41",
9+
"@codingapi/flow-pc": "^0.0.42",
10+
"@codingapi/form-pc": "^0.0.42",
11+
"@codingapi/ui-framework": "^0.0.42",
1212
"@dnd-kit/core": "^6.2.0",
1313
"@dnd-kit/sortable": "^9.0.0",
1414
"@handsontable/react-wrapper": "^15.0.0",

admin-ui/src/api/flow.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ export async function urge(body:any) {
8787
return httpClient.post('/api/cmd/flowRecord/urge', body);
8888
}
8989

90+
export async function back(body:any) {
91+
return httpClient.post('/api/cmd/flowRecord/back', body);
92+
}
93+
94+
export async function voided(body:any) {
95+
return httpClient.post('/api/cmd/flowRecord/voided', body);
96+
}
97+
9098

9199
// 待办中心控制
92100

admin-ui/src/components/flow/register.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,22 @@ class DefaultFlowApiImpl implements FlowApi{
6060
return flowApi.detail(null,workCode);
6161
}
6262

63+
backFlow(body: any): Promise<any> {
64+
return flowApi.back(body);
65+
}
66+
67+
voidedFlow(body: any): Promise<any> {
68+
return flowApi.voided(body);
69+
}
70+
71+
getFlowStep(recordId?: number, workCode?: string): Promise<any> {
72+
const body = {
73+
recordId,
74+
workCode
75+
}
76+
return flowApi.getFlowStep(body);
77+
}
78+
6379
}
6480

6581
FlowApiContent.getInstance().registerFlowApi(new DefaultFlowApiImpl());

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.7</version>
9+
<version>3.4.8</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.7</version>
9+
<version>3.4.8</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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,29 @@ public String getUserName() {
213213
}
214214

215215

216+
@Setter
217+
@Getter
218+
public static class BackFlow {
219+
220+
private String processId;
221+
private String backNodeCode;
222+
223+
public String getUserName() {
224+
return TokenContext.current().getUsername();
225+
}
226+
}
227+
228+
@Setter
229+
@Getter
230+
public static class VoidedFlow {
231+
232+
private String processId;
233+
234+
public String getUserName() {
235+
return TokenContext.current().getUsername();
236+
}
237+
}
238+
216239
@Setter
217240
@Getter
218241
public static class PostponedFlow {

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,14 @@ public void remove(FlowCmd.RemoveFlow request) {
9393
IFlowOperator current = flowUserRepository.getUserByUsername(request.getUserName());
9494
flowService.remove(request.getRecordId(), current);
9595
}
96+
97+
public void back(FlowCmd.BackFlow request) {
98+
IFlowOperator current = flowUserRepository.getUserByUsername(request.getUserName());
99+
flowService.back(request.getProcessId(),request.getBackNodeCode(), current);
100+
}
101+
102+
public void voided(FlowCmd.VoidedFlow request) {
103+
IFlowOperator current = flowUserRepository.getUserByUsername(request.getUserName());
104+
flowService.voided(request.getProcessId(), current);
105+
}
96106
}

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.7</version>
9+
<version>3.4.8</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.7</version>
9+
<version>3.4.8</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.7</version>
9+
<version>3.4.8</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

0 commit comments

Comments
 (0)