|
@@ -3228,12 +3228,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
Optional<User> first;
|
|
|
Integer exception=null;
|
|
|
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();
|
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
|
exception=0;
|
|
|
}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();
|
|
|
exception=1;
|
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -3243,7 +3243,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
project.setInchargerName(first.get().getName());
|
|
|
} else {
|
|
|
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]+"]姓名与工号不匹配");
|
|
|
}
|
|
|
}
|
|
@@ -3324,12 +3324,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
Optional<User> first;
|
|
|
Integer exception=null;
|
|
|
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();
|
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
|
exception=0;
|
|
|
}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();
|
|
|
exception=1;
|
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -3341,7 +3341,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
participationList.add(p);
|
|
|
} else {
|
|
|
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]+"]姓名与工号不匹配");
|
|
|
}
|
|
|
}
|
|
@@ -3364,12 +3364,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
Optional<User> first;
|
|
|
Integer exception=null;
|
|
|
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();
|
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
|
exception=0;
|
|
|
}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();
|
|
|
exception=1;
|
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -3384,7 +3384,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
} else {
|
|
|
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]+"]姓名与工号不匹配");
|
|
|
}
|
|
|
}
|
|
@@ -3739,12 +3739,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
Optional<User> first;
|
|
|
Integer exception=null;
|
|
|
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();
|
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
|
exception=0;
|
|
|
}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();
|
|
|
exception=1;
|
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -3754,7 +3754,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
project.setInchargerName(first.get().getName());
|
|
|
} else {
|
|
|
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]+"]姓名与工号不匹配");
|
|
|
}
|
|
|
}
|
|
@@ -4315,12 +4315,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
Optional<User> first;
|
|
|
Integer exception=null;
|
|
|
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();
|
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
|
exception=0;
|
|
|
}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();
|
|
|
exception=1;
|
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -4332,7 +4332,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
participationList.add(p);
|
|
|
} else {
|
|
|
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]+"]姓名与工号不匹配");
|
|
|
}
|
|
|
}
|
|
@@ -4354,12 +4354,12 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
Optional<User> first;
|
|
|
Integer exception=null;
|
|
|
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();
|
|
|
}else {first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[0]))).findFirst();}
|
|
|
exception=0;
|
|
|
}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();
|
|
|
exception=1;
|
|
|
}else first= userList.stream().filter(u ->(u.getJobNumber()!=null&&u.getJobNumber().equals(split[1]))).findFirst();
|
|
@@ -4375,7 +4375,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
} else {
|
|
|
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]+"]姓名与工号不匹配");
|
|
|
}
|
|
|
}
|