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
8f53b208
Commit
8f53b208
authored
Jan 10, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改待办
parent
5c1999f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
23 deletions
+25
-23
TaskModelDto.java
...com/yeejoin/amos/boot/module/jg/api/dto/TaskModelDto.java
+3
-3
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+22
-20
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/TaskModelDto.java
View file @
8f53b208
...
@@ -23,13 +23,13 @@ public class TaskModelDto {
...
@@ -23,13 +23,13 @@ public class TaskModelDto {
* */
* */
private
String
taskCode
;
private
String
taskCode
;
/**
/**
*
备注-非必输
*
摘要-来源
*/
*/
private
String
taskContent
;
private
String
taskContent
;
/**
/**
*
摘要-来源
*
描述-非必输
*/
*/
private
String
taskDesc
;
private
String
taskDesc
;
/**
/**
...
...
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 @
8f53b208
...
@@ -612,27 +612,29 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -612,27 +612,29 @@ public class CommonServiceImpl implements ICommonService {
/**
/**
* 待办新增接口
* 待办新增接口
**/
**/
public
void
buildTaskModel
(
TaskModelDto
obj
){
public
void
buildTaskModel
(
List
<
TaskModelDto
>
list
){
list
.
forEach
(
obj
->{
TaskV2Model
model
=
new
TaskV2Model
();
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
urlParams
=
""
;
try
{
urlParams
=
"&"
+
toQueryParams
(
obj
.
getModel
());
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
}
model
.
setRoutePath
(
obj
.
getRoutePath
()+
urlParams
);
BeanUtil
.
copyProperties
(
model
,
obj
);
model
.
setFlowStatus
(
0
);
model
.
setFlowInstanceId
(
model
.
getRelationId
());
model
.
setTaskTitle
(
obj
.
getStartUser
()+
"发起了"
+
obj
.
getTaskName
());
model
.
setTaskSource
(
"workFlow"
);
model
.
setExtras
(
JSON
.
toJSONString
(
obj
.
getModel
()));
// model.setTerminal(params.getOrDefault("terminal","WEB").toString());
model
.
setCreateDate
(
new
Date
());
model
.
setRecUserId
(
reginParams
.
getUserModel
().
getUserId
());
Systemctl
.
taskV2Client
.
create
(
model
);
});
TaskV2Model
model
=
new
TaskV2Model
();
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
urlParams
=
""
;
try
{
urlParams
=
"&"
+
toQueryParams
(
obj
.
getModel
());
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
}
model
.
setRoutePath
(
obj
.
getRoutePath
()+
urlParams
);
BeanUtil
.
copyProperties
(
model
,
obj
);
model
.
setFlowStatus
(
0
);
model
.
setFlowInstanceId
(
model
.
getRelationId
());
model
.
setTaskTitle
(
obj
.
getStartUser
()+
"发起了"
+
obj
.
getTaskName
());
model
.
setTaskSource
(
"workFlow"
);
model
.
setExtras
(
JSON
.
toJSONString
(
obj
.
getModel
()));
// model.setTerminal(params.getOrDefault("terminal","WEB").toString());
model
.
setCreateDate
(
new
Date
());
model
.
setRecUserId
(
reginParams
.
getUserModel
().
getUserId
());
Systemctl
.
taskV2Client
.
create
(
model
);
}
}
...
...
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