File tree Expand file tree Collapse file tree 8 files changed +33
-11
lines changed
springboot-starter-data-authorization
springboot-starter-data-fast
src/main/java/com/codingapi/springboot/flow/content
springboot-starter-security
src/main/resources/META-INF Expand file tree Collapse file tree 8 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 1515
1616 <groupId >com.codingapi.springboot</groupId >
1717 <artifactId >springboot-parent</artifactId >
18- <version >2.9.20 </version >
18+ <version >2.9.21 </version >
1919
2020 <url >https://github.com/codingapi/springboot-framewrok</url >
2121 <name >springboot-parent</name >
Original file line number Diff line number Diff line change 66 <parent >
77 <artifactId >springboot-parent</artifactId >
88 <groupId >com.codingapi.springboot</groupId >
9- <version >2.9.20 </version >
9+ <version >2.9.21 </version >
1010 </parent >
1111
1212 <artifactId >springboot-starter-data-authorization</artifactId >
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >springboot-parent</artifactId >
77 <groupId >com.codingapi.springboot</groupId >
8- <version >2.9.20 </version >
8+ <version >2.9.21 </version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 66 <parent >
77 <artifactId >springboot-parent</artifactId >
88 <groupId >com.codingapi.springboot</groupId >
9- <version >2.9.20 </version >
9+ <version >2.9.21 </version >
1010 </parent >
1111
1212 <name >springboot-starter-flow</name >
Original file line number Diff line number Diff line change @@ -184,11 +184,13 @@ public MessageResult rejectFlow() {
184184 }
185185
186186 /**
187- * 是否为驳回状态
188- *
189- * @return 是否为驳回状态
187+ * 上级节点的状态是驳回状态
188+ * @return 上级节点的状态是驳回状态
190189 */
191- public boolean isRejectState () {
190+ public boolean backStateIsReject () {
191+ if (flowRecord == null ) {
192+ return false ;
193+ }
192194 long preId = flowRecord .getPreId ();
193195 if (preId == 0 ) {
194196 return false ;
@@ -201,6 +203,26 @@ public boolean isRejectState() {
201203 return false ;
202204 }
203205
206+ /**
207+ * 上级节点的状态是驳回状态
208+ *
209+ * @see #backStateIsReject()
210+ */
211+ @ Deprecated
212+ public boolean isRejectState () {
213+ return this .backStateIsReject ();
214+ }
215+
216+ /**
217+ * 当前节点的状态是驳回状态
218+ */
219+ public boolean currentStateIsReject () {
220+ if (flowRecord != null ) {
221+ return flowRecord .getFlowSourceDirection () == FlowSourceDirection .REJECT ;
222+ }
223+ return false ;
224+ }
225+
204226
205227 /**
206228 * 预提交流程
Original file line number Diff line number Diff line change 66 <parent >
77 <artifactId >springboot-parent</artifactId >
88 <groupId >com.codingapi.springboot</groupId >
9- <version >2.9.20 </version >
9+ <version >2.9.21 </version >
1010 </parent >
1111
1212 <artifactId >springboot-starter-security</artifactId >
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >com.codingapi.springboot</groupId >
77 <artifactId >springboot-parent</artifactId >
8- <version >2.9.20 </version >
8+ <version >2.9.21 </version >
99 </parent >
1010 <artifactId >springboot-starter</artifactId >
1111
Original file line number Diff line number Diff line change 11------------------------------------------------------
2- CodingApi SpringBoot-Starter 2.9.20
2+ CodingApi SpringBoot-Starter 2.9.21
33springboot version (${spring-boot.version})
44------------------------------------------------------
You can’t perform that action at this time.
0 commit comments