Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
3e4df50f
Commit
3e4df50f
authored
Oct 14, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还款管理
parent
ac340a09
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
CommonServiceImpl.java
.../boot/module/hygf/biz/service/impl/CommonServiceImpl.java
+13
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/CommonServiceImpl.java
View file @
3e4df50f
...
...
@@ -135,18 +135,23 @@ public class CommonServiceImpl {
}
public
void
deleteTaskModel
(
String
id
)
{
try
{
List
<
TaskV2Model
>
result
=
taskV2FeignService
.
selectListByRelationId
(
id
).
getResult
();
if
(!
result
.
isEmpty
())
{
List
<
Long
>
idList
=
result
.
stream
().
map
(
TaskV2Model:
:
getSequenceNbr
).
collect
(
Collectors
.
toList
());
String
ids
=
idList
.
stream
().
map
(
Object:
:
toString
).
collect
(
Collectors
.
joining
(
","
));
taskV2FeignService
.
delete
(
ids
);
}
}
catch
(
Exception
e
){
log
.
error
(
e
.
getMessage
(),
e
);
}
}
/**
* 待办新增接口
**/
public
void
buildTaskModel
(
List
<
TaskModelDto
>
list
)
{
try
{
//执行人为空使用系统机器人账号
if
(
StrUtil
.
isEmpty
(
RequestContext
.
getExeUserId
()))
{
RequestContext
.
setExeUserId
(
amosRequestContext
.
getUserId
());
...
...
@@ -220,6 +225,9 @@ public class CommonServiceImpl {
}
else
{
taskV2FeignService
.
batchAdd
(
taskV2Models
);
}
}
catch
(
Exception
e
){
log
.
error
(
e
.
getMessage
(),
e
);
}
}
private
void
dealStartUser
(
TaskModelDto
obj
)
{
...
...
@@ -397,6 +405,7 @@ public class CommonServiceImpl {
* @param businessTypeEnum
*/
public
void
updateTaskModelAndAddTask
(
Object
object
,
WorkflowResultDto
workflowResultDto
,
BusinessTypeEnum
businessTypeEnum
)
{
try
{
Map
<
String
,
Object
>
updateTaskParam
=
new
HashMap
<>();
updateTaskParam
.
put
(
"flowStatus"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
());
updateTaskParam
.
put
(
"flowStatusLabel"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
...
...
@@ -406,6 +415,10 @@ public class CommonServiceImpl {
updateTaskParam
.
put
(
"relationId"
,
workflowResultDto
.
getInstanceId
());
updateTaskModel
(
updateTaskParam
);
buildTaskModel
((
buildTaskModelDto
(
object
,
workflowResultDto
,
businessTypeEnum
)));
}
catch
(
Exception
e
){
log
.
error
(
e
.
getMessage
(),
e
);
}
}
public
JSONArray
getRegionName
()
{
...
...
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