|
@@ -3219,12 +3219,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
Optional<User> first;
|
|
Optional<User> first;
|
|
Integer exception=null;
|
|
Integer exception=null;
|
|
if(split.length==1){
|
|
if(split.length==1){
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
exception=0;
|
|
exception=0;
|
|
}else {
|
|
}else {
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
exception=1;
|
|
exception=1;
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -3234,7 +3234,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
project.setInchargerName(first.get().getName());
|
|
project.setInchargerName(first.get().getName());
|
|
} else {
|
|
} else {
|
|
switch (exception){
|
|
switch (exception){
|
|
- case 0:throw new Exception(wxCorpInfo.getSaasSyncContact()==1?"项目负责人工号为["+split[0]+"]的人员不存在":"项目负责人姓名/工号为["+split[0]+"]的人员不存在");
|
|
|
|
|
|
+ case 0:throw new Exception(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()==1?"项目负责人工号为["+split[0]+"]的人员不存在":"项目负责人姓名/工号为["+split[0]+"]的人员不存在");
|
|
case 1:throw new Exception("项目负责人["+split[0]+"]姓名与工号不匹配");
|
|
case 1:throw new Exception("项目负责人["+split[0]+"]姓名与工号不匹配");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -3315,12 +3315,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
Optional<User> first;
|
|
Optional<User> first;
|
|
Integer exception=null;
|
|
Integer exception=null;
|
|
if(split.length==1){
|
|
if(split.length==1){
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
exception=0;
|
|
exception=0;
|
|
}else {
|
|
}else {
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
exception=1;
|
|
exception=1;
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -3332,7 +3332,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
participationList.add(p);
|
|
participationList.add(p);
|
|
} else {
|
|
} else {
|
|
switch (exception){
|
|
switch (exception){
|
|
- case 0:throw new Exception(wxCorpInfo.getSaasSyncContact()==1?"参与人工号为["+split[0]+"]的人员不存在":"参与人姓名/工号为["+split[0]+"]的人员不存在");
|
|
|
|
|
|
+ case 0:throw new Exception(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()==1?"参与人工号为["+split[0]+"]的人员不存在":"参与人姓名/工号为["+split[0]+"]的人员不存在");
|
|
case 1:throw new Exception("参与人["+split[0]+"]姓名与工号不匹配");
|
|
case 1:throw new Exception("参与人["+split[0]+"]姓名与工号不匹配");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -3355,12 +3355,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
Optional<User> first;
|
|
Optional<User> first;
|
|
Integer exception=null;
|
|
Integer exception=null;
|
|
if(split.length==1){
|
|
if(split.length==1){
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
exception=0;
|
|
exception=0;
|
|
}else {
|
|
}else {
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
exception=1;
|
|
exception=1;
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -3375,7 +3375,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
switch (exception){
|
|
switch (exception){
|
|
- case 0:throw new Exception(wxCorpInfo.getSaasSyncContact()==1?"参与人工号为["+split[0]+"]的人员不存在":"参与人姓名/工号为["+split[0]+"]的人员不存在");
|
|
|
|
|
|
+ case 0:throw new Exception(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()==1?"参与人工号为["+split[0]+"]的人员不存在":"参与人姓名/工号为["+split[0]+"]的人员不存在");
|
|
case 1:throw new Exception("参与人["+split[0]+"]姓名与工号不匹配");
|
|
case 1:throw new Exception("参与人["+split[0]+"]姓名与工号不匹配");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -3730,12 +3730,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
Optional<User> first;
|
|
Optional<User> first;
|
|
Integer exception=null;
|
|
Integer exception=null;
|
|
if(split.length==1){
|
|
if(split.length==1){
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
exception=0;
|
|
exception=0;
|
|
}else {
|
|
}else {
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
exception=1;
|
|
exception=1;
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -3745,7 +3745,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
project.setInchargerName(first.get().getName());
|
|
project.setInchargerName(first.get().getName());
|
|
} else {
|
|
} else {
|
|
switch (exception){
|
|
switch (exception){
|
|
- case 0:throw new Exception(wxCorpInfo.getSaasSyncContact()==1?"项目负责人工号为["+split[0]+"]的人员不存在":"项目负责人姓名/工号为["+split[0]+"]的人员不存在");
|
|
|
|
|
|
+ case 0:throw new Exception(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()==1?"项目负责人工号为["+split[0]+"]的人员不存在":"项目负责人姓名/工号为["+split[0]+"]的人员不存在");
|
|
case 1:throw new Exception("项目负责人["+split[0]+"]姓名与工号不匹配");
|
|
case 1:throw new Exception("项目负责人["+split[0]+"]姓名与工号不匹配");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -4306,12 +4306,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
Optional<User> first;
|
|
Optional<User> first;
|
|
Integer exception=null;
|
|
Integer exception=null;
|
|
if(split.length==1){
|
|
if(split.length==1){
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
exception=0;
|
|
exception=0;
|
|
}else {
|
|
}else {
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
exception=1;
|
|
exception=1;
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -4323,7 +4323,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
participationList.add(p);
|
|
participationList.add(p);
|
|
} else {
|
|
} else {
|
|
switch (exception){
|
|
switch (exception){
|
|
- case 0:throw new Exception(wxCorpInfo.getSaasSyncContact()==1?"参与人工号为["+split[0]+"]的人员不存在":"参与人姓名/工号为["+split[0]+"]的人员不存在");
|
|
|
|
|
|
+ case 0:throw new Exception(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()==1?"参与人工号为["+split[0]+"]的人员不存在":"参与人姓名/工号为["+split[0]+"]的人员不存在");
|
|
case 1:throw new Exception("参与人["+split[0]+"]姓名与工号不匹配");
|
|
case 1:throw new Exception("参与人["+split[0]+"]姓名与工号不匹配");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -4345,12 +4345,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
Optional<User> first;
|
|
Optional<User> first;
|
|
Integer exception=null;
|
|
Integer exception=null;
|
|
if(split.length==1){
|
|
if(split.length==1){
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])||(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
exception=0;
|
|
exception=0;
|
|
}else {
|
|
}else {
|
|
- if(wxCorpInfo.getSaasSyncContact()!=1){
|
|
|
|
|
|
+ if(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()!=1){
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
first= userList.stream().filter(u -> u.getName().equals(split[0])&&(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
exception=1;
|
|
exception=1;
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -4366,7 +4366,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
switch (exception){
|
|
switch (exception){
|
|
- case 0:throw new Exception(wxCorpInfo.getSaasSyncContact()==1?"参与人工号为["+split[0]+"]的人员不存在":"参与人姓名/工号为["+split[0]+"]的人员不存在");
|
|
|
|
|
|
+ case 0:throw new Exception(wxCorpInfo!=null&&wxCorpInfo.getSaasSyncContact()==1?"参与人工号为["+split[0]+"]的人员不存在":"参与人姓名/工号为["+split[0]+"]的人员不存在");
|
|
case 1:throw new Exception("参与人["+split[0]+"]姓名与工号不匹配");
|
|
case 1:throw new Exception("参与人["+split[0]+"]姓名与工号不匹配");
|
|
}
|
|
}
|
|
}
|
|
}
|