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
8a90f020
Commit
8a90f020
authored
Jan 16, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改待办 防止暂存任务重复生成
parent
db494f44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+9
-2
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/CommonServiceImpl.java
View file @
8a90f020
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.aspose.words.SaveFormat
;
import
com.aspose.words.SaveFormat
;
...
@@ -640,9 +641,15 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -640,9 +641,15 @@ public class CommonServiceImpl implements ICommonService {
**/
**/
public
void
buildTaskModel
(
List
<
TaskModelDto
>
list
)
{
public
void
buildTaskModel
(
List
<
TaskModelDto
>
list
)
{
List
<
TaskV2Model
>
taskV2Models
=
new
ArrayList
<>();
List
<
TaskV2Model
>
taskV2Models
=
new
ArrayList
<>();
list
.
forEach
(
obj
->
{
for
(
TaskModelDto
obj
:
list
)
{
//判断是否是暂存 新增若无下一节点执行人即为暂存
//判断是否是暂存 新增若无下一节点执行人即为暂存
boolean
flag
=
StringUtils
.
isEmpty
(
obj
.
getNextExecuteUser
())?
true
:
false
;
boolean
flag
=
StringUtils
.
isEmpty
(
obj
.
getNextExecuteUser
())?
true
:
false
;
if
(
flag
){
List
<
TaskV2Model
>
result
=
Systemctl
.
taskV2Client
.
selectListByRelationId
(
obj
.
getRelationId
()).
getResult
();
if
(
CollectionUtil
.
isNotEmpty
(
result
)
&&
result
.
size
()
>
0
){
break
;
}
}
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
TaskV2Model
model
=
new
TaskV2Model
();
TaskV2Model
model
=
new
TaskV2Model
();
BeanUtil
.
copyProperties
(
obj
,
model
);
BeanUtil
.
copyProperties
(
obj
,
model
);
...
@@ -703,7 +710,7 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -703,7 +710,7 @@ public class CommonServiceImpl implements ICommonService {
model
.
setAgencyCode
(
RequestContext
.
getAgencyCode
());
model
.
setAgencyCode
(
RequestContext
.
getAgencyCode
());
taskV2Models
.
add
(
model
);
taskV2Models
.
add
(
model
);
}
);
}
Systemctl
.
taskV2Client
.
batchAdd
(
taskV2Models
);
Systemctl
.
taskV2Client
.
batchAdd
(
taskV2Models
);
}
}
...
...
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