Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
0cf30e5e
提交
0cf30e5e
authored
9月 16, 2021
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(业务管理): 修改了业务管理 查询全部以及办结业务的接口 添加了根据unitId以及areaId的条件
修改了业务管理 查询全部以及办结业务的接口 添加了根据unitId以及areaId的条件
上级
baa87141
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
40 行增加
和
1 行删除
+40
-1
TaskServiceImpl.java
...om/tykj/dev/device/task/service/impl/TaskServiceImpl.java
+25
-1
TaskSelectVo.java
...ava/com/tykj/dev/device/task/subject/vo/TaskSelectVo.java
+15
-0
没有找到文件。
dev-task/src/main/java/com/tykj/dev/device/task/service/impl/TaskServiceImpl.java
浏览文件 @
0cf30e5e
...
@@ -19,8 +19,13 @@ import com.tykj.dev.device.task.utils.TaskUtils;
...
@@ -19,8 +19,13 @@ import com.tykj.dev.device.task.utils.TaskUtils;
import
com.tykj.dev.device.user.cache.UserCache
;
import
com.tykj.dev.device.user.cache.UserCache
;
import
com.tykj.dev.device.user.read.service.MessageService
;
import
com.tykj.dev.device.user.read.service.MessageService
;
import
com.tykj.dev.device.user.read.subject.bto.MessageBto
;
import
com.tykj.dev.device.user.read.subject.bto.MessageBto
;
import
com.tykj.dev.device.user.subject.dao.UnitsDao
;
import
com.tykj.dev.device.user.subject.entity.Units
;
import
com.tykj.dev.device.user.subject.entity.User
;
import
com.tykj.dev.device.user.subject.entity.User
;
import
com.tykj.dev.device.user.subject.service.AreaService
;
import
com.tykj.dev.device.user.subject.service.UnitsService
;
import
com.tykj.dev.device.user.subject.service.UserPublicService
;
import
com.tykj.dev.device.user.subject.service.UserPublicService
;
import
com.tykj.dev.device.user.subject.service.UserService
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.device.user.util.UserUtils
;
import
com.tykj.dev.misc.base.BusinessEnum
;
import
com.tykj.dev.misc.base.BusinessEnum
;
import
com.tykj.dev.misc.base.CustomOrder
;
import
com.tykj.dev.misc.base.CustomOrder
;
...
@@ -76,6 +81,15 @@ public class TaskServiceImpl implements TaskService {
...
@@ -76,6 +81,15 @@ public class TaskServiceImpl implements TaskService {
@Autowired
@Autowired
private
MessageService
messageService
;
private
MessageService
messageService
;
@Autowired
AreaService
areaService
;
@Autowired
UserService
userService
;
@Autowired
UnitsDao
unitsDao
;
@Override
@Override
public
Task
deleteById
(
Task
task
)
{
public
Task
deleteById
(
Task
task
)
{
...
@@ -628,6 +642,16 @@ public class TaskServiceImpl implements TaskService {
...
@@ -628,6 +642,16 @@ public class TaskServiceImpl implements TaskService {
.
filter
(
taskUserVo
->
!
Collections
.
disjoint
(
idLists
,
taskUserVo
.
getInvolveUserIdList
())||(
taskUserVo
.
getCreateUserId
()!=
null
&&
idLists
.
contains
(
taskUserVo
.
getCreateUserId
())))
.
filter
(
taskUserVo
->
!
Collections
.
disjoint
(
idLists
,
taskUserVo
.
getInvolveUserIdList
())||(
taskUserVo
.
getCreateUserId
()!=
null
&&
idLists
.
contains
(
taskUserVo
.
getCreateUserId
())))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
}
}
if
(
taskSelectVo
.
getAreaId
()!=
null
){
List
<
Integer
>
ids
=
areaService
.
findIdQuerySubordinateIds
(
taskSelectVo
.
getAreaId
());
List
<
Integer
>
unitIds
=
unitsDao
.
findAllByAreaIdIn
(
ids
).
stream
().
map
(
Units:
:
getUnitId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
userIDs
=
userService
.
findUnitsIdInUsers
(
unitIds
).
stream
().
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
taskUserVos
=
taskUserVos
.
stream
().
filter
(
taskUserVo
->
userIDs
.
contains
(
taskUserVo
.
getCreateUserId
())).
collect
(
Collectors
.
toList
());
}
else
{
List
<
Integer
>
userIDs
=
userService
.
findAllByUnite
(
taskSelectVo
.
getUnitId
()).
stream
().
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
taskUserVos
=
taskUserVos
.
stream
().
filter
(
taskUserVo
->
userIDs
.
contains
(
taskUserVo
.
getCreateUserId
())).
collect
(
Collectors
.
toList
());
}
taskUserVos
=
taskUserVos
.
stream
()
taskUserVos
=
taskUserVos
.
stream
()
.
filter
(
taskUserVo
->
!
businesses
.
contains
(
taskUserVo
.
getBusinessType
())
||
(
taskUserVo
.
getParentTaskId
()
==
null
||
taskUserVo
.
getParentTaskId
()
==
0
))
.
filter
(
taskUserVo
->
!
businesses
.
contains
(
taskUserVo
.
getBusinessType
())
||
(
taskUserVo
.
getParentTaskId
()
==
null
||
taskUserVo
.
getParentTaskId
()
==
0
))
.
filter
(
taskUserVo
->
!
taskUserVo
.
getBillStatus
().
equals
(
StatusEnum
.
REVOKEALLOTTASK
.
id
))
.
filter
(
taskUserVo
->
!
taskUserVo
.
getBillStatus
().
equals
(
StatusEnum
.
REVOKEALLOTTASK
.
id
))
...
@@ -1256,7 +1280,7 @@ public class TaskServiceImpl implements TaskService {
...
@@ -1256,7 +1280,7 @@ public class TaskServiceImpl implements TaskService {
if
(
taskSelectVo
.
getSelectNum
()
==
3
)
{
if
(
taskSelectVo
.
getSelectNum
()
==
3
)
{
//所有涉及人员所在单位包含当前用户所在单位且指针对应UserId不是当前用户
//所有涉及人员所在单位包含当前用户所在单位且指针对应UserId不是当前用户
// List<Integer> status = Arrays.asList(201,333,810,322,722,788,1250,2223,8110,888,140,130,141,111,1002,150);
// List<Integer> status = Arrays.asList(201,333,810,322,722,788,1250,2223,8110,888,140,130,141,111,1002,150);
List
<
Integer
>
status
=
Arrays
.
asList
(
201
,
333
,
810
,
322
,
722
,
788
,
1250
,
2223
,
8110
,
888
,
140
,
130
,
141
,
111
,
1002
,
150
,
101
,
142
,
160
,
161
);
List
<
Integer
>
status
=
Arrays
.
asList
(
201
,
333
,
810
,
322
,
722
,
788
,
1250
,
2223
,
8110
,
888
,
140
,
130
,
141
,
111
,
1002
,
150
,
101
,
142
,
160
,
161
,
1009
);
List
<
TaskBto
>
taskBtoList
=
taskBtos
.
stream
()
List
<
TaskBto
>
taskBtoList
=
taskBtos
.
stream
()
.
filter
(
taskBto
->
{
.
filter
(
taskBto
->
{
// boolean unitExists = getUnitsByUsers(taskBto.getInvolveUserIdList()).contains(unitId);
// boolean unitExists = getUnitsByUsers(taskBto.getInvolveUserIdList()).contains(unitId);
...
...
dev-task/src/main/java/com/tykj/dev/device/task/subject/vo/TaskSelectVo.java
浏览文件 @
0cf30e5e
...
@@ -3,6 +3,7 @@ package com.tykj.dev.device.task.subject.vo;
...
@@ -3,6 +3,7 @@ package com.tykj.dev.device.task.subject.vo;
import
com.tykj.dev.misc.base.CustomPage
;
import
com.tykj.dev.misc.base.CustomPage
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -14,20 +15,28 @@ import java.util.List;
...
@@ -14,20 +15,28 @@ import java.util.List;
@Data
@Data
@ApiModel
(
"待办任务查询类"
)
@ApiModel
(
"待办任务查询类"
)
public
class
TaskSelectVo
extends
CustomPage
{
public
class
TaskSelectVo
extends
CustomPage
{
@ApiModelProperty
(
value
=
"模糊查询关键字"
,
example
=
"测试"
)
@ApiModelProperty
(
value
=
"模糊查询关键字"
,
example
=
"测试"
)
public
String
content
;
public
String
content
;
@ApiModelProperty
(
value
=
"发起时间"
,
example
=
"2020-10-10 01:10:10"
)
@ApiModelProperty
(
value
=
"发起时间"
,
example
=
"2020-10-10 01:10:10"
)
public
Date
startTime
;
public
Date
startTime
;
@ApiModelProperty
(
value
=
"结束时间"
,
example
=
"2020-10-10 01:10:10"
)
@ApiModelProperty
(
value
=
"结束时间"
,
example
=
"2020-10-10 01:10:10"
)
public
Date
endTime
;
public
Date
endTime
;
@ApiModelProperty
(
value
=
"查询方式(0:全部业务,1:我的发起,2:待办业务,3:业务跟踪,4:办结任务,5:封存业务)"
,
example
=
"0"
)
@ApiModelProperty
(
value
=
"查询方式(0:全部业务,1:我的发起,2:待办业务,3:业务跟踪,4:办结任务,5:封存业务)"
,
example
=
"0"
)
private
Integer
selectNum
;
private
Integer
selectNum
;
@ApiModelProperty
(
value
=
"业务类型id"
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"业务类型id"
,
example
=
"1"
)
private
List
<
Integer
>
businessType
;
private
List
<
Integer
>
businessType
;
@ApiModelProperty
(
value
=
"待办类型(1:省内待办,2:省外待办)"
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"待办类型(1:省内待办,2:省外待办)"
,
example
=
"1"
)
private
Integer
type
;
private
Integer
type
;
@ApiModelProperty
(
value
=
"业务状态"
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"业务状态"
,
example
=
"1"
)
private
Integer
billStatus
;
private
Integer
billStatus
;
@ApiModelProperty
(
value
=
"业务备注"
,
example
=
"测试"
)
@ApiModelProperty
(
value
=
"业务备注"
,
example
=
"测试"
)
public
List
<
String
>
remark
;
public
List
<
String
>
remark
;
...
@@ -43,4 +52,10 @@ public class TaskSelectVo extends CustomPage {
...
@@ -43,4 +52,10 @@ public class TaskSelectVo extends CustomPage {
@ApiModelProperty
(
value
=
"待办人模糊查询字段"
)
@ApiModelProperty
(
value
=
"待办人模糊查询字段"
)
private
String
processingUserDim
;
private
String
processingUserDim
;
@ApiModelProperty
(
value
=
"区域id"
)
private
Integer
areaId
;
@ApiModelProperty
(
value
=
"单位id"
)
private
Integer
unitId
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论