Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
919c1fea
提交
919c1fea
authored
6月 08, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[业务模块]新增了查询task接口
上级
5f50346f
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
18 行增加
和
4 行删除
+18
-4
DeviceLogDto.java
...com/tykj/dev/device/library/subject/Dto/DeviceLogDto.java
+1
-0
TaskController.java
...a/com/tykj/dev/device/task/controller/TaskController.java
+8
-0
TaskService.java
...in/java/com/tykj/dev/device/task/service/TaskService.java
+2
-0
TaskServiceImpl.java
...om/tykj/dev/device/task/service/impl/TaskServiceImpl.java
+7
-3
TaskBto.java
...in/java/com/tykj/dev/device/task/subject/bto/TaskBto.java
+0
-1
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/subject/Dto/DeviceLogDto.java
浏览文件 @
919c1fea
...
@@ -94,6 +94,7 @@ public class DeviceLogDto {
...
@@ -94,6 +94,7 @@ public class DeviceLogDto {
deviceLog
.
setType
(
this
.
type
);
deviceLog
.
setType
(
this
.
type
);
deviceLog
.
setDeviceId
(
this
.
deviceId
);
deviceLog
.
setDeviceId
(
this
.
deviceId
);
deviceLog
.
setRemark
(
this
.
remark
);
deviceLog
.
setRemark
(
this
.
remark
);
deviceLog
.
setTaskId
(
this
.
taskId
);
if
(
this
.
createUserId
!=
null
){
if
(
this
.
createUserId
!=
null
){
deviceLog
.
setCreateUserId
(
createUserId
);
deviceLog
.
setCreateUserId
(
createUserId
);
}
}
...
...
dev-task/src/main/java/com/tykj/dev/device/task/controller/TaskController.java
浏览文件 @
919c1fea
...
@@ -60,6 +60,7 @@ public class TaskController {
...
@@ -60,6 +60,7 @@ public class TaskController {
@Autowired
@Autowired
private
UserRecordDao
userRecordDao
;
private
UserRecordDao
userRecordDao
;
@ApiOperation
(
value
=
"业务分页查询"
,
notes
=
"可以通过这个接口分页查询业务"
)
@ApiOperation
(
value
=
"业务分页查询"
,
notes
=
"可以通过这个接口分页查询业务"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/manage/summary"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/manage/summary"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ResponseEntity
getTaskPage
(
@RequestBody
TaskSelectVo
taskSelectVo
)
{
public
ResponseEntity
getTaskPage
(
@RequestBody
TaskSelectVo
taskSelectVo
)
{
...
@@ -291,4 +292,11 @@ public class TaskController {
...
@@ -291,4 +292,11 @@ public class TaskController {
public
ResponseEntity
selectAllLogs
(
@RequestBody
TaskLogSelectVo
taskLogSelectVo
){
public
ResponseEntity
selectAllLogs
(
@RequestBody
TaskLogSelectVo
taskLogSelectVo
){
return
ResponseEntity
.
ok
(
PageUtil
.
getPerPage
(
taskLogSelectVo
.
getPage
(),
taskLogSelectVo
.
getSize
(),
taskLogService
.
getAllByTime
(
taskLogSelectVo
),
taskLogSelectVo
.
getPageable
()));
return
ResponseEntity
.
ok
(
PageUtil
.
getPerPage
(
taskLogSelectVo
.
getPage
(),
taskLogSelectVo
.
getSize
(),
taskLogService
.
getAllByTime
(
taskLogSelectVo
),
taskLogSelectVo
.
getPageable
()));
}
}
@ApiOperation
(
value
=
"任务对象"
,
notes
=
"根据任务id查询任务对象"
)
@GetMapping
(
"/task/id"
)
public
ResponseEntity
getTask
(
Integer
taskId
){
return
ResponseEntity
.
ok
(
taskService
.
findByTaskId
(
taskId
).
toVo
());
}
}
}
dev-task/src/main/java/com/tykj/dev/device/task/service/TaskService.java
浏览文件 @
919c1fea
...
@@ -208,5 +208,7 @@ public interface TaskService {
...
@@ -208,5 +208,7 @@ public interface TaskService {
*/
*/
TaskBto
findBillTypeAndFatherId
(
Integer
billType
,
Integer
fatherId
);
TaskBto
findBillTypeAndFatherId
(
Integer
billType
,
Integer
fatherId
);
TaskBto
findByTaskId
(
Integer
taskId
);
}
}
dev-task/src/main/java/com/tykj/dev/device/task/service/impl/TaskServiceImpl.java
浏览文件 @
919c1fea
...
@@ -585,9 +585,8 @@ public class TaskServiceImpl implements TaskService {
...
@@ -585,9 +585,8 @@ public class TaskServiceImpl implements TaskService {
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
}
}
taskUserVos
=
taskUserVos
.
stream
()
taskUserVos
=
taskUserVos
.
stream
()
.
filter
(
taskUserVo
->
businesses
.
contains
(
taskUserVo
.
getBusinessType
()))
.
filter
(
taskUserVo
->
!
businesses
.
contains
(
taskUserVo
.
getBusinessType
())
||
(
taskUserVo
.
getParentTaskId
()
==
null
||
taskUserVo
.
getParentTaskId
()
==
0
)).
collect
(
Collectors
.
toList
());
.
filter
(
taskUserVo
->
taskUserVo
.
getParentTaskId
()
==
null
||
taskUserVo
.
getParentTaskId
()
==
0
).
collect
(
Collectors
.
toList
());
//如果存在集合中
//如果存在集合中
// if (businesses.contains(taskUserVo.getBusinessType())){
// if (businesses.contains(taskUserVo.getBusinessType())){
// if (taskUserVo.getParentTaskId() != null && taskUserVo.getParentTaskId() !=0 ){
// if (taskUserVo.getParentTaskId() != null && taskUserVo.getParentTaskId() !=0 ){
// return false;
// return false;
...
@@ -865,6 +864,11 @@ public class TaskServiceImpl implements TaskService {
...
@@ -865,6 +864,11 @@ public class TaskServiceImpl implements TaskService {
return
taskDao
.
findByParentTaskIdAndBusinessType
(
fatherId
,
billType
).
parse2Bto
();
return
taskDao
.
findByParentTaskIdAndBusinessType
(
fatherId
,
billType
).
parse2Bto
();
}
}
@Override
public
TaskBto
findByTaskId
(
Integer
taskId
)
{
return
taskDao
.
findById
(
taskId
).
get
().
parse2Bto
();
}
@Override
@Override
public
void
moveAllSonNodeToEnd
(
Integer
taaskId
)
{
public
void
moveAllSonNodeToEnd
(
Integer
taaskId
)
{
List
<
Task
>
tasks
=
taskDao
.
findAllByParentTaskId
(
taaskId
);
List
<
Task
>
tasks
=
taskDao
.
findAllByParentTaskId
(
taaskId
);
...
...
dev-task/src/main/java/com/tykj/dev/device/task/subject/bto/TaskBto.java
浏览文件 @
919c1fea
...
@@ -51,7 +51,6 @@ public class TaskBto {
...
@@ -51,7 +51,6 @@ public class TaskBto {
@ApiModelProperty
(
value
=
"所属单位"
)
@ApiModelProperty
(
value
=
"所属单位"
)
private
Integer
ownUnit
;
private
Integer
ownUnit
;
@ApiModelProperty
(
value
=
"数字类型,用于代表指针目前的下标"
)
@ApiModelProperty
(
value
=
"数字类型,用于代表指针目前的下标"
)
private
Integer
currentPoint
;
private
Integer
currentPoint
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论