Skip to content

Commit cdd6060

Browse files
committed
add springboot-parent
1 parent 06df1b2 commit cdd6060

File tree

7 files changed

+22
-5
lines changed

7 files changed

+22
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>com.codingapi.springboot</groupId>
1414
<artifactId>springboot-parent</artifactId>
15-
<version>2.9.9</version>
15+
<version>2.9.10</version>
1616

1717
<url>https://github.com/codingapi/springboot-framewrok</url>
1818
<name>springboot-parent</name>

springboot-starter-data-fast/pom.xml

Lines changed: 1 addition & 1 deletion
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.9</version>
8+
<version>2.9.10</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

springboot-starter-flow/pom.xml

Lines changed: 1 addition & 1 deletion
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.9</version>
9+
<version>2.9.10</version>
1010
</parent>
1111

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

springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/content/FlowSession.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,19 @@ public Object getBean(String beanName) {
6565
return provider.getBean(beanName);
6666
}
6767

68+
69+
70+
/**
71+
* 获取审批意见
72+
*/
73+
public String getAdvice() {
74+
if (opinion != null) {
75+
return opinion.getAdvice();
76+
} else {
77+
return null;
78+
}
79+
}
80+
6881
/**
6982
* 创建节点结果
7083
*

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,14 @@ public FlowDetail(FlowWork flowWork,
103103
public final class FlowOpinion {
104104
private final long recordId;
105105
private final Opinion opinion;
106+
private final String nodeCode;
107+
private final String nodeName;
106108
private final IFlowOperator operator;
107109
private final long createTime;
108110

109111
public FlowOpinion(FlowRecord flowRecord) {
112+
this.nodeCode = flowRecord.getNodeCode();
113+
this.nodeName = flowWork.getNodeByCode(nodeCode).getName();
110114
this.recordId = flowRecord.getId();
111115
this.opinion = flowRecord.getOpinion();
112116
this.operator = flowRecord.getCurrentOperator();

springboot-starter-security/pom.xml

Lines changed: 1 addition & 1 deletion
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.9</version>
9+
<version>2.9.10</version>
1010
</parent>
1111

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

springboot-starter/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-parent</artifactId>
8-
<version>2.9.9</version>
8+
<version>2.9.10</version>
99
</parent>
1010
<artifactId>springboot-starter</artifactId>
1111

0 commit comments

Comments
 (0)