测试问题项修改
This commit is contained in:
parent
88dc90fa49
commit
5740d5841d
|
|
@ -630,10 +630,12 @@ public class TmTaskServiceImpl implements TmTaskService {
|
|||
if (collect.size() > 0) {
|
||||
int deptId1 = tmTaskMapper.getDeptId(collect.get(0).getCreateBy());
|
||||
//机具经理、书记、副经理查看数据
|
||||
if (deptId == 101 && deptId1 == 101) {
|
||||
if (deptId == 101) {
|
||||
List<LeaseApplyInfo> auditListByLeaseInfo = collect.stream().filter(t -> t.getCompanyId() != null).filter(t -> t.getCompanyId() == 101).collect(Collectors.toList());
|
||||
if (deptId1 == 101) {
|
||||
List<LeaseApplyInfo> applyInfoList = collect.stream().filter(t -> t.getCompanyId() != null).filter(t -> t.getCompanyId() == 102).collect(Collectors.toList());
|
||||
auditListByLeaseInfo.addAll(applyInfoList);
|
||||
}
|
||||
|
||||
if (auditListByLeaseInfo != null && !auditListByLeaseInfo.isEmpty()) {
|
||||
// 对领料任务集合查询具体详情
|
||||
|
|
@ -659,10 +661,12 @@ public class TmTaskServiceImpl implements TmTaskService {
|
|||
}
|
||||
}
|
||||
// 调试公司可以看到的数据权限
|
||||
if (deptId == 102 && deptId1 == 102) {
|
||||
if (deptId == 102) {
|
||||
List<LeaseApplyInfo> auditListByLeaseInfo = collect.stream().filter(t -> t.getCompanyId() != null).filter(t -> t.getCompanyId() == 102).collect(Collectors.toList());
|
||||
if (deptId1 == 102){
|
||||
List<LeaseApplyInfo> list2 = collect.stream().filter(t -> t.getCompanyId() != null).filter(t -> t.getCompanyId() == 101).collect(Collectors.toList());
|
||||
auditListByLeaseInfo.addAll(list2);
|
||||
}
|
||||
|
||||
if (auditListByLeaseInfo != null && !auditListByLeaseInfo.isEmpty()) {
|
||||
// 对领料任务集合查询具体详情
|
||||
|
|
|
|||
Loading…
Reference in New Issue