Commit b68e38ca authored by nie'hong's avatar nie'hong

完善工时统计

parent 979412bf
...@@ -547,6 +547,9 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -547,6 +547,9 @@ public class StatisticsServiceImpl implements StatisticsService {
// 所有项目的统计 // 所有项目的统计
map.put("isAll", false); map.put("isAll", false);
userProjectWorkTimeStatistics = workTimeOrderMapper.getUserProjectWorkTimeStatistics(map); userProjectWorkTimeStatistics = workTimeOrderMapper.getUserProjectWorkTimeStatistics(map);
if (CollectionUtil.isEmpty(userProjectWorkTimeStatistics)) {
return null;
}
UserWorkTimeStatisticsByProject userWorkTimeStatisticsByProject = new UserWorkTimeStatisticsByProject(); UserWorkTimeStatisticsByProject userWorkTimeStatisticsByProject = new UserWorkTimeStatisticsByProject();
// 拷贝属性 // 拷贝属性
BeanUtils.copyProperties(userWorkTimeStatisticsByProject, userProjectWorkTimeStatistics.get(0)); BeanUtils.copyProperties(userWorkTimeStatisticsByProject, userProjectWorkTimeStatistics.get(0));
...@@ -728,6 +731,9 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -728,6 +731,9 @@ public class StatisticsServiceImpl implements StatisticsService {
public HSSFWorkbook exportUserStatistics(Integer userId, Integer deptId, String startDate, String endDate) { public HSSFWorkbook exportUserStatistics(Integer userId, Integer deptId, String startDate, String endDate) {
log.info("StatisticsServiceImpl[]exportUserStatistics[]param{}" + userId + deptId + startDate + endDate); log.info("StatisticsServiceImpl[]exportUserStatistics[]param{}" + userId + deptId + startDate + endDate);
List<UserWorkTimeStatisticsByProject> userWorkTimeStatisticsReport = this.getUserWorkTimeStatisticsReport(userId, deptId, startDate, endDate); List<UserWorkTimeStatisticsByProject> userWorkTimeStatisticsReport = this.getUserWorkTimeStatisticsReport(userId, deptId, startDate, endDate);
if (CollectionUtil.isEmpty(userWorkTimeStatisticsReport)) {
return new HSSFWorkbook();
}
// 部门信息 // 部门信息
WorkDept dept = workDeptMapper.getById(deptId); WorkDept dept = workDeptMapper.getById(deptId);
String statisticsStart = this.simpleDateToYearMonthDay(startDate); String statisticsStart = this.simpleDateToYearMonthDay(startDate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment