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
92e01101
Commit
92e01101
authored
Dec 28, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
5c512812
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
JgTransferNoticeByWorkFlowController.java
.../biz/controller/JgTransferNoticeByWorkFlowController.java
+2
-1
JgTransferNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgTransferNoticeServiceImpl.java
+7
-5
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/controller/JgTransferNoticeByWorkFlowController.java
View file @
92e01101
...
...
@@ -78,8 +78,9 @@ public class JgTransferNoticeByWorkFlowController {
// TODO 受理移装告知流程
LinkedHashMap
model1
=
(
LinkedHashMap
)
model
.
get
(
"model"
);
LinkedHashMap
installationInfo
=
(
LinkedHashMap
)
model1
.
get
(
"transferNoticeInfo"
);
String
opinion
=
model
.
get
(
"opinion"
).
toString
();
JgTransferNoticeDto
JgTransferNoticeDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
installationInfo
),
JgTransferNoticeDto
.
class
);
jgTransferNoticeService
.
accept
(
JgTransferNoticeDto
,
op
);
jgTransferNoticeService
.
accept
(
JgTransferNoticeDto
,
op
,
opinion
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
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 @
92e01101
...
...
@@ -273,7 +273,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
JgTransferNotice
notice
=
new
JgTransferNotice
();
BeanUtils
.
copyProperties
(
noticeDto
,
notice
);
boolean
submit
=
submit
(
notice
,
op
);
boolean
submit
=
submit
(
notice
,
op
,
null
);
if
(
submit
)
{
// 查询下节点任务
...
...
@@ -537,7 +537,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
return
urls
;
}
public
boolean
submit
(
JgTransferNotice
notice
,
String
op
)
{
public
boolean
submit
(
JgTransferNotice
notice
,
String
op
,
String
opinion
)
{
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
notice
.
getInstanceId
());
JSONObject
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
...
...
@@ -546,7 +546,9 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
TaskResultDTO
dto
=
new
TaskResultDTO
();
dto
.
setResultCode
(
"approvalStatus"
);
dto
.
setTaskId
(
taskId
);
dto
.
setComment
(
"提交流程"
);
if
(!
StringUtils
.
isEmpty
(
opinion
))
{
dto
.
setComment
(
opinion
);
}
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
notice
.
getNoticeStatus
().
equals
(
"6614"
)
||
notice
.
getNoticeStatus
().
equals
(
"6615"
)
)
{
map
.
put
(
"approvalStatus"
,
"提交"
);
...
...
@@ -586,7 +588,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
}
@Transactional
public
void
accept
(
JgTransferNoticeDto
dto
,
String
op
)
{
public
void
accept
(
JgTransferNoticeDto
dto
,
String
op
,
String
opinion
)
{
String
[]
taskName
=
new
String
[]{
"流程结束"
};
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
JgTransferNotice
jgTransferNotice
=
this
.
jgTransferNoticeMapper
.
selectById
(
dto
.
getSequenceNbr
());
...
...
@@ -600,7 +602,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
}
ArrayList
<
String
>
roleList
=
new
ArrayList
<>();
boolean
submit
=
submit
(
jgTransferNotice
,
op
);
boolean
submit
=
submit
(
jgTransferNotice
,
op
,
opinion
);
if
(
submit
)
{
getNext
(
roleList
,
dto
.
getInstanceId
(),
taskName
);
jgTransferNotice
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
...
...
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