diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/TmTaskServiceImpl.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/TmTaskServiceImpl.java index b610cf50..19cff259 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/TmTaskServiceImpl.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/TmTaskServiceImpl.java @@ -477,7 +477,7 @@ public class TmTaskServiceImpl implements TmTaskService { int result = 0; int taskId = 0; int num = 0; - Integer companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId().intValue(); + Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId(); if (StringUtils.isNotNull(record)) { // 先审核任务表 result += tmTaskMapper.updateTmTaskAuditStatus(record); @@ -486,7 +486,7 @@ public class TmTaskServiceImpl implements TmTaskService { // 再审核领料任务信息表 List leaseApplyInfoList = record.getLeaseApplyInfoList(); if (CollUtil.isNotEmpty(leaseApplyInfoList)) { - List applyInfoList = leaseApplyInfoList.stream().filter(t -> t.getCompanyId().equals(companyId)).collect(Collectors.toList()); + List applyInfoList = leaseApplyInfoList.stream().filter(t -> t.getCompanyId().equals(companyId.intValue())).collect(Collectors.toList()); if (CollUtil.isNotEmpty(applyInfoList)) { for (LeaseApplyInfo leaseApplyInfo : applyInfoList) { taskId = leaseApplyInfo.getTaskId(); @@ -514,7 +514,7 @@ public class TmTaskServiceImpl implements TmTaskService { // 再审核领料任务详情表 List leaseApplyDetails = record.getLeaseApplyDetails(); if (CollUtil.isNotEmpty(leaseApplyDetails)) { - List collect = leaseApplyDetails.stream().filter(d -> d.getCompanyId().equals(companyId)).collect(Collectors.toList()); + List collect = leaseApplyDetails.stream().filter(d -> d.getCompanyId().equals(companyId.intValue())).collect(Collectors.toList()); if (CollUtil.isNotEmpty(collect)) { for (LeaseApplyDetails details : collect) { if (StringUtils.isNotNull(details)) { @@ -527,7 +527,7 @@ public class TmTaskServiceImpl implements TmTaskService { // 再审核领料任务信息表 List leaseApplyInfoList = record.getLeaseApplyInfoList(); if (CollUtil.isNotEmpty(leaseApplyInfoList)) { - List applyInfoList = leaseApplyInfoList.stream().filter(t -> t.getCompanyId().equals(companyId)).collect(Collectors.toList()); + List applyInfoList = leaseApplyInfoList.stream().filter(t -> t.getCompanyId().equals(companyId.intValue())).collect(Collectors.toList()); if (CollUtil.isNotEmpty(applyInfoList)) { for (LeaseApplyInfo leaseApplyInfo : applyInfoList) { taskId = leaseApplyInfo.getTaskId(); @@ -555,7 +555,7 @@ public class TmTaskServiceImpl implements TmTaskService { // 再审核领料任务详情表 List leaseApplyDetails = record.getLeaseApplyDetails(); if (CollUtil.isNotEmpty(leaseApplyDetails)) { - List collect = leaseApplyDetails.stream().filter(d -> d.getCompanyId().equals(companyId)).collect(Collectors.toList()); + List collect = leaseApplyDetails.stream().filter(d -> d.getCompanyId().equals(companyId.intValue())).collect(Collectors.toList()); if (CollUtil.isNotEmpty(collect)) { for (LeaseApplyDetails details : collect) { if (StringUtils.isNotNull(details)) {