File tree Expand file tree Collapse file tree 9 files changed +102
-6
lines changed
example-app/example-app-cmd-meta/src/main/java/com/codingapi/example/app/cmd/meta
example-interface/src/main/java/com/codingapi/example/api/meta Expand file tree Collapse file tree 9 files changed +102
-6
lines changed Original file line number Diff line number Diff line change 6
6
"@ant-design/icons" : " ^5.4.0" ,
7
7
"@ant-design/pro-components" : " ^2.8.7" ,
8
8
"@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 " ,
12
12
"@dnd-kit/core" : " ^6.2.0" ,
13
13
"@dnd-kit/sortable" : " ^9.0.0" ,
14
14
"@handsontable/react-wrapper" : " ^15.0.0" ,
Original file line number Diff line number Diff line change @@ -87,6 +87,14 @@ export async function urge(body:any) {
87
87
return httpClient . post ( '/api/cmd/flowRecord/urge' , body ) ;
88
88
}
89
89
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
+
90
98
91
99
// 待办中心控制
92
100
Original file line number Diff line number Diff line change @@ -60,6 +60,22 @@ class DefaultFlowApiImpl implements FlowApi{
60
60
return flowApi . detail ( null , workCode ) ;
61
61
}
62
62
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
+
63
79
}
64
80
65
81
FlowApiContent . getInstance ( ) . registerFlowApi ( new DefaultFlowApiImpl ( ) ) ;
Original file line number Diff line number Diff line change @@ -213,6 +213,29 @@ public String getUserName() {
213
213
}
214
214
215
215
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
+
216
239
@ Setter
217
240
@ Getter
218
241
public static class PostponedFlow {
Original file line number Diff line number Diff line change @@ -93,4 +93,14 @@ public void remove(FlowCmd.RemoveFlow request) {
93
93
IFlowOperator current = flowUserRepository .getUserByUsername (request .getUserName ());
94
94
flowService .remove (request .getRecordId (), current );
95
95
}
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
+ }
96
106
}
Original file line number Diff line number Diff line change @@ -84,4 +84,17 @@ public Response remove(@RequestBody FlowCmd.RemoveFlow request) {
84
84
return Response .buildSuccess ();
85
85
}
86
86
87
+
88
+ @ PostMapping ("/back" )
89
+ public Response back (@ RequestBody FlowCmd .BackFlow request ) {
90
+ flowRecordRouter .back (request );
91
+ return Response .buildSuccess ();
92
+ }
93
+
94
+
95
+ @ PostMapping ("/voided" )
96
+ public Response voided (@ RequestBody FlowCmd .VoidedFlow request ) {
97
+ flowRecordRouter .voided (request );
98
+ return Response .buildSuccess ();
99
+ }
87
100
}
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"@babel/standalone" : " ^7.25.6" ,
7
- "@codingapi/flow-mobile" : " ^0.0.41 " ,
8
- "@codingapi/form-mobile" : " ^0.0.41 " ,
9
- "@codingapi/ui-framework" : " ^0.0.41 " ,
7
+ "@codingapi/flow-mobile" : " ^0.0.42 " ,
8
+ "@codingapi/form-mobile" : " ^0.0.42 " ,
9
+ "@codingapi/ui-framework" : " ^0.0.42 " ,
10
10
"@logicflow/core" : " ^2.0.10" ,
11
11
"@logicflow/extension" : " ^2.0.14" ,
12
12
"@reduxjs/toolkit" : " ^2.2.7" ,
Original file line number Diff line number Diff line change @@ -94,6 +94,16 @@ export async function urge(body:any) {
94
94
}
95
95
96
96
97
+ export async function back ( body :any ) {
98
+ return httpClient . post ( '/api/cmd/flowRecord/back' , body ) ;
99
+ }
100
+
101
+ export async function voided ( body :any ) {
102
+ return httpClient . post ( '/api/cmd/flowRecord/voided' , body ) ;
103
+ }
104
+
105
+
106
+
97
107
// 待办中心控制
98
108
99
109
export async function findAllByOperatorId ( lastId ?: string ,
Original file line number Diff line number Diff line change @@ -61,6 +61,22 @@ class DefaultFlowApiImpl implements FlowApi{
61
61
return flowApi . detail ( null , workCode ) ;
62
62
}
63
63
64
+ backFlow ( body : any ) : Promise < any > {
65
+ return flowApi . back ( body ) ;
66
+ }
67
+
68
+ voidedFlow ( body : any ) : Promise < any > {
69
+ return flowApi . voided ( body ) ;
70
+ }
71
+
72
+ getFlowStep ( recordId ?: number , workCode ?: string ) : Promise < any > {
73
+ const body = {
74
+ recordId,
75
+ workCode
76
+ }
77
+ return flowApi . getFlowStep ( body ) ;
78
+ }
79
+
64
80
}
65
81
66
82
FlowApiContent . getInstance ( ) . registerFlowApi ( new DefaultFlowApiImpl ( ) ) ;
You can’t perform that action at this time.
0 commit comments