|
@@ -6002,14 +6002,14 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (cnt > 0 || auditorPids != null) {
|
|
if (cnt > 0 || auditorPids != null) {
|
|
- if (timeType.getShowFillauditTime() == 1) {
|
|
|
|
|
|
+ if (exportType == 0 && timeType.getShowFillauditTime() == 1) {
|
|
reportsFromProjects = reportMapper.getProjectMembReportByDateWithReportLog(startDate, null, user.getId(), endDate, projectId,stateKey,branchDepartment, auditorPids);
|
|
reportsFromProjects = reportMapper.getProjectMembReportByDateWithReportLog(startDate, null, user.getId(), endDate, projectId,stateKey,branchDepartment, auditorPids);
|
|
} else{
|
|
} else{
|
|
reportsFromProjects = reportMapper.getProjectMembReportByDate(startDate, null, user.getId(), endDate, projectId,stateKey,branchDepartment, auditorPids);
|
|
reportsFromProjects = reportMapper.getProjectMembReportByDate(startDate, null, user.getId(), endDate, projectId,stateKey,branchDepartment, auditorPids);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
//普通员工只能看自己的
|
|
//普通员工只能看自己的
|
|
- if (timeType.getShowFillauditTime() == 1) {
|
|
|
|
|
|
+ if (exportType == 0 && timeType.getShowFillauditTime() == 1) {
|
|
reportsFromProjects = reportMapper.getAllReportByDateWithReportLog(startDate, null, user.getId(), endDate, projectId,stateKey,branchDepartment);
|
|
reportsFromProjects = reportMapper.getAllReportByDateWithReportLog(startDate, null, user.getId(), endDate, projectId,stateKey,branchDepartment);
|
|
} else {
|
|
} else {
|
|
reportsFromProjects = reportMapper.getAllReportByDate(startDate, null, user.getId(), endDate, projectId,stateKey,branchDepartment);
|
|
reportsFromProjects = reportMapper.getAllReportByDate(startDate, null, user.getId(), endDate, projectId,stateKey,branchDepartment);
|
|
@@ -6032,7 +6032,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
else {
|
|
else {
|
|
//看公司所有人的
|
|
//看公司所有人的
|
|
long t1 = System.currentTimeMillis();
|
|
long t1 = System.currentTimeMillis();
|
|
- if (timeType.getShowFillauditTime() == 1) {
|
|
|
|
|
|
+ if (exportType == 0 && timeType.getShowFillauditTime() == 1) {
|
|
allReportByDate = reportMapper.getAllReportByDateWithReportLog(startDate, user.getCompanyId(), null, endDate, projectId,stateKey,branchDepartment);
|
|
allReportByDate = reportMapper.getAllReportByDateWithReportLog(startDate, user.getCompanyId(), null, endDate, projectId,stateKey,branchDepartment);
|
|
} else {
|
|
} else {
|
|
allReportByDate = reportMapper.getAllReportByDate(startDate, user.getCompanyId(), null, endDate, projectId,stateKey,branchDepartment);
|
|
allReportByDate = reportMapper.getAllReportByDate(startDate, user.getCompanyId(), null, endDate, projectId,stateKey,branchDepartment);
|