|
@@ -731,7 +731,9 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
//优先取个人的非项目审核人
|
|
//优先取个人的非项目审核人
|
|
String superiorId = user.getSuperiorId();
|
|
String superiorId = user.getSuperiorId();
|
|
//其次取员工的部门主要负责人
|
|
//其次取员工的部门主要负责人
|
|
|
|
+ boolean isDirectSuperior = true;
|
|
if (superiorId == null) {
|
|
if (superiorId == null) {
|
|
|
|
+ isDirectSuperior = false;
|
|
Integer departmentId = user.getDepartmentId();
|
|
Integer departmentId = user.getDepartmentId();
|
|
Department department = departmentMapper.selectById(departmentId);
|
|
Department department = departmentMapper.selectById(departmentId);
|
|
if (department != null) {
|
|
if (department != null) {
|
|
@@ -745,6 +747,11 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
ProjectAuditor auditor = new ProjectAuditor();
|
|
ProjectAuditor auditor = new ProjectAuditor();
|
|
auditor.setAuditorId(superiorId);
|
|
auditor.setAuditorId(superiorId);
|
|
auditor.setAuditorName(superior.getName());
|
|
auditor.setAuditorName(superior.getName());
|
|
|
|
+ if (isDirectSuperior) {
|
|
|
|
+ Integer deptId = user.getDepartmentId();
|
|
|
|
+ Department department = departmentMapper.selectById(deptId);
|
|
|
|
+ auditor.setAuditorDeptName(department != null? department.getDepartmentName(): null);
|
|
|
|
+ }
|
|
auditorList1.add(auditor);
|
|
auditorList1.add(auditor);
|
|
r.setAuditUserList(auditorList1);
|
|
r.setAuditUserList(auditorList1);
|
|
}
|
|
}
|
|
@@ -10301,18 +10308,19 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
List<Map<String, Object>> resultList = new ArrayList<>();
|
|
List<Map<String, Object>> resultList = new ArrayList<>();
|
|
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
for (UserCorpwxTime corpwxTime : userCorpwxTimeList) {
|
|
for (UserCorpwxTime corpwxTime : userCorpwxTimeList) {
|
|
- boolean isFull = false;
|
|
|
|
|
|
+ boolean isMatch = true;
|
|
double reportTime = 0;
|
|
double reportTime = 0;
|
|
for (Report report : reportList) {
|
|
for (Report report : reportList) {
|
|
if (corpwxTime.getCreateDate().isEqual(report.getCreateDate())) {
|
|
if (corpwxTime.getCreateDate().isEqual(report.getCreateDate())) {
|
|
reportTime = report.getWorkingTime();
|
|
reportTime = report.getWorkingTime();
|
|
- if (corpwxTime.getWorkHours() <= report.getWorkingTime()) {
|
|
|
|
- isFull = true;
|
|
|
|
|
|
+ //不一致
|
|
|
|
+ if (Math.abs(corpwxTime.getWorkHours() - report.getWorkingTime()) > 0.01) {
|
|
|
|
+ isMatch = false;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (!isFull) {
|
|
|
|
|
|
+ if (!isMatch) {
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
map.put("name", corpwxTime.getName()==null?corpwxTime.getCorpwxUserid():corpwxTime.getName());
|
|
map.put("name", corpwxTime.getName()==null?corpwxTime.getCorpwxUserid():corpwxTime.getName());
|
|
map.put("createDate", dateTimeFormatter.format(corpwxTime.getCreateDate()));
|
|
map.put("createDate", dateTimeFormatter.format(corpwxTime.getCreateDate()));
|