Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
edefe1b2
Commit
edefe1b2
authored
Mar 08, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(JG):撤回添加状态校验
parent
d62e38b5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+6
-0
JgMaintainNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
+5
-0
JgReformNoticeServiceImpl.java
...module/jg/biz/service/impl/JgReformNoticeServiceImpl.java
+5
-0
JgTransferNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgTransferNoticeServiceImpl.java
+7
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
View file @
edefe1b2
...
...
@@ -776,6 +776,12 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
@Transactional
public
void
cancel
(
JgInstallationNoticeDto
noticeDto
)
{
JgInstallationNotice
jgInstallationNotice
=
this
.
baseMapper
.
selectById
(
noticeDto
.
getSequenceNbr
());
String
expectedStatus
=
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
());
// 检查实际状态是否不等于期望状态
if
(!
expectedStatus
.
equals
(
jgInstallationNotice
.
getNoticeStatus
()))
{
throw
new
BadRequest
(
"当前业务状态不是待处理状态,请刷新页面后重试操作!"
);
}
ProcessTaskDTO
processTaskDTO
=
iCmWorkflowService
.
rollBack
(
jgInstallationNotice
.
getInstanceId
());
// 提取节点等信息
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
View file @
edefe1b2
...
...
@@ -721,6 +721,11 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
public
void
cancel
(
JgMaintainNoticeDto
noticeDto
)
{
JgMaintainNotice
jgMaintainNotice
=
this
.
baseMapper
.
selectById
(
noticeDto
.
getSequenceNbr
());
String
expectedStatus
=
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
());
// 检查实际状态是否不等于期望状态
if
(!
expectedStatus
.
equals
(
jgMaintainNotice
.
getNoticeStatus
()))
{
throw
new
BadRequest
(
"当前业务状态不是待处理状态,请刷新页面后重试操作!"
);
}
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
rollBack
(
jgMaintainNotice
.
getInstanceId
());
// 提取节点等信息
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgReformNoticeServiceImpl.java
View file @
edefe1b2
...
...
@@ -689,6 +689,11 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
JgReformNotice
notice
=
baseMapper
.
selectById
(
noticeDto
.
getSequenceNbr
());
if
(
notice
!=
null
)
{
String
expectedStatus
=
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
());
// 检查实际状态是否不等于期望状态
if
(!
expectedStatus
.
equals
(
notice
.
getNoticeStatus
()))
{
throw
new
BadRequest
(
"当前业务状态不是待处理状态,请刷新页面后重试操作!"
);
}
// 回滚工作流
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
rollBack
(
noticeDto
.
getInstanceId
());
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgTransferNoticeServiceImpl.java
View file @
edefe1b2
...
...
@@ -47,8 +47,8 @@ import org.springframework.util.StringUtils;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.text.ParseException
;
import
java.util.*
;
import
java.util.function.Function
;
...
...
@@ -664,6 +664,12 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
@Transactional
public
void
cancel
(
JgTransferNoticeDto
noticeDto
)
{
JgTransferNotice
jgInstallationNotice
=
this
.
baseMapper
.
selectById
(
noticeDto
.
getSequenceNbr
());
String
expectedStatus
=
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
());
// 检查实际状态是否不等于期望状态
if
(!
expectedStatus
.
equals
(
jgInstallationNotice
.
getNoticeStatus
()))
{
throw
new
BadRequest
(
"当前业务状态不是待处理状态,请刷新页面后重试操作!"
);
}
ProcessTaskDTO
processTaskDTO
=
iCmWorkflowService
.
rollBack
(
jgInstallationNotice
.
getInstanceId
());
// 提取节点等信息
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment