Browse Source

优化获取工单分页列表代码

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
26ccfc1b0c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/workorder/query/QueryWorkOrderPageListService.java

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/workorder/query/QueryWorkOrderPageListService.java View File

@@ -178,7 +178,7 @@ public class QueryWorkOrderPageListService {
}

String assignUsers = workOrderPageListVo.getAssignUser();
if (!StringUtils.isEmpty(assignUsers)) {
if (StringUtils.isNotEmpty(assignUsers) && ObjectUtil.isNotNull(assignUserMap)) {
String[] assignUserArr = assignUsers.split(",");
for (String au : assignUserArr) {
assignUser = assignUserMap.get(au);
@@ -243,7 +243,7 @@ public class QueryWorkOrderPageListService {
}
}
List<User> userList = null;
if (!CollectionUtil.isEmpty(assignUserIdList)) {
if (CollectionUtil.isNotEmpty(assignUserIdList)) {
userList = userMapper.selectList(new LambdaQueryWrapper<User>()
.in(User::getId, assignUserIdList)
.eq(User::getMark, 1));

Loading…
Cancel
Save