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
770ed728
Commit
770ed728
authored
Jan 10, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
systemctl jar升级
parent
ee0fe21e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
10 deletions
+62
-10
TaskModelDto.java
...com/yeejoin/amos/boot/module/jg/api/dto/TaskModelDto.java
+49
-4
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+2
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+11
-6
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 @
770ed728
...
...
@@ -7,26 +7,71 @@ import java.util.Date;
@Data
public
class
TaskModelDto
{
/**
* 工作流创建时间
* */
private
Date
flowCreateDate
;
/**
* 工作流返回节点名称
* */
private
String
taskName
;
/**
* 任务编号 可以使用申请单编号
* */
private
String
taskCode
;
private
String
taskContent
;
private
String
taskDesc
;
/**
* 任务类型 例如 安全告知
* **/
private
String
taskType
;
/**
* 任务类型名称 汉字
* **/
private
String
taskTypeLabel
;
/***
* 关联id 传工作流实例id
* */
private
String
relationId
;
/**
* 执行人id 从工作流中获取
* **/
private
String
executeUserIds
;
/**
* 任务状态 统一定义的枚举code 例如 6612 待受理
* */
private
Integer
taskStatus
;
/**
* 任务状态 统一定义的枚举code 例如 6612 待受理
* */
private
String
taskStatusLabel
;
/**
* 任务发起人 不变 第一次提交的人
* 从业务表中 created_uesr_id
* */
private
String
startUserId
;
/**
* 任务发起人 不变
* 名字
* */
private
String
startUser
;
/**
* 任务发起人所在单位
*
* */
private
String
startUserCompanyName
;
/**
* 任务发起人发起时间
*
* */
private
Date
startDate
;
private
Date
createDate
;
/**
* 跳转路径
* */
private
String
routePath
;
/*
** 对象实体
*/
/*
*
* 当前业务实体对象
*
*
/
private
Object
model
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/CommonController.java
View file @
770ed728
...
...
@@ -201,4 +201,6 @@ public class CommonController extends BaseController {
}
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 @
770ed728
...
...
@@ -609,7 +609,7 @@ public class CommonServiceImpl implements ICommonService {
}
/*
/*
*
* 待办新增接口
**/
public
void
buildTaskModel
(
TaskModelDto
obj
){
...
...
@@ -636,10 +636,12 @@ public class CommonServiceImpl implements ICommonService {
}
/*
/*
*
* 待办编辑接口
*
*
*参数
*taskStatus 任务状态枚举code
*taskStatusLabel 任务状态枚举name
*流程实例id instanceId
**/
public
TaskV2Model
updateTaskModel
(
Map
<
String
,
Object
>
params
){
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
...
...
@@ -667,10 +669,13 @@ public class CommonServiceImpl implements ICommonService {
return
model
;
}
/**
* 待办 撤回
* id 工作流实例id
**/
public
void
rollbackTask
(
String
id
){
List
<
TaskV2Model
>
result
=
Systemctl
.
taskV2Client
.
selectListByRelationId
(
id
).
getResult
();
List
<
TaskV2Model
>
list
=
result
.
stream
().
sorted
((
r1
,
r2
)
->
r2
.
get
CreateDate
().
compareTo
(
r1
.
getCreateDate
())).
collect
(
Collectors
.
toList
());
List
<
TaskV2Model
>
list
=
result
.
stream
().
sorted
((
r1
,
r2
)
->
r2
.
get
SequenceNbr
().
compareTo
(
r1
.
getSequenceNbr
())).
collect
(
Collectors
.
toList
());
TaskV2Model
model
=
list
.
get
(
0
);
Systemctl
.
taskV2Client
.
delete
(
String
.
valueOf
(
model
.
getSequenceNbr
()));
TaskV2Model
lastTaskModel
=
list
.
get
(
1
);
...
...
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