|
@@ -625,10 +625,9 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
r.setWorktimeList(list);
|
|
r.setWorktimeList(list);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ Project project = allProjectList.stream().filter(p -> p.getId().equals(r.getProjectId())).findFirst().get();
|
|
//处理维度列表数据
|
|
//处理维度列表数据
|
|
if (timeTypeMapper.selectById(companyId).getCustomDegreeActive() == 1) {
|
|
if (timeTypeMapper.selectById(companyId).getCustomDegreeActive() == 1) {
|
|
- Project project = allProjectList.stream().filter(p -> p.getId().equals(r.getProjectId())).findFirst().get();
|
|
|
|
String associateDegrees = project.getAssociateDegrees();
|
|
String associateDegrees = project.getAssociateDegrees();
|
|
List<HashMap> degreeMapList = new ArrayList<>();
|
|
List<HashMap> degreeMapList = new ArrayList<>();
|
|
if (associateDegrees != null) {
|
|
if (associateDegrees != null) {
|
|
@@ -677,7 +676,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
//项目的审核人
|
|
//项目的审核人
|
|
if (reportAuditType == 0) {
|
|
if (reportAuditType == 0) {
|
|
//对于简单模式的非项目,直接获取部门主管作为审核人
|
|
//对于简单模式的非项目,直接获取部门主管作为审核人
|
|
- if (company.getNonProjectSimple() == 1) {
|
|
|
|
|
|
+ if (company.getNonProjectSimple() == 1 && project.getIsPublic() == 1) {
|
|
User user = userMapper.selectById(r.getCreatorId());
|
|
User user = userMapper.selectById(r.getCreatorId());
|
|
Department department = departmentMapper.selectById(user.getDepartmentId());
|
|
Department department = departmentMapper.selectById(user.getDepartmentId());
|
|
if (department != null) {
|
|
if (department != null) {
|
|
@@ -4745,7 +4744,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
for (UserMonthWork userMonthWork : userMonthWorks) {
|
|
for (UserMonthWork userMonthWork : userMonthWorks) {
|
|
List<Map<String, Object>> worktimeList = userMonthWork.worktimeList;
|
|
List<Map<String, Object>> worktimeList = userMonthWork.worktimeList;
|
|
//获取到该员工请假的数据
|
|
//获取到该员工请假的数据
|
|
- List<UserCorpwxTime> curUserCorpTime = userCorpwxTimeList.stream().filter(s->s.getCorpwxUserid().equals(userMonthWork.corpwxUserId)).collect(Collectors.toList());
|
|
|
|
|
|
+ List<UserCorpwxTime> curUserCorpTime = userCorpwxTimeList.stream().filter(s->s.getCorpwxUserid() != null && s.getCorpwxUserid().equals(userMonthWork.corpwxUserId)).collect(Collectors.toList());
|
|
// for (Map<String, Object> corpWx : userCorpwxTimeMapList) {
|
|
// for (Map<String, Object> corpWx : userCorpwxTimeMapList) {
|
|
// if (((String)corpWx.get("corpwx_userid")).equals(userMonthWork.corpwxUserId)) {
|
|
// if (((String)corpWx.get("corpwx_userid")).equals(userMonthWork.corpwxUserId)) {
|
|
// curUserCorpTime.add(corpWx);
|
|
// curUserCorpTime.add(corpWx);
|