1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package cn.wisenergy.service;
import cn.wisenergy.model.dto.GetMonthlyCollectParam;
import cn.wisenergy.model.dto.ProjectStatisticsByMonth;
import cn.wisenergy.model.dto.UserWorkTimeStatisticsByProject;
import cn.wisenergy.model.dto.WorkTimeAndCostCollect;
import com.github.pagehelper.PageInfo;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import java.util.Date;
import java.util.List;
import java.util.Map;
public interface StatisticsService {
/**
* 获取部门所有员工每天工时
*
* @param param 参数对象
* @return
*/
PageInfo getDayWorkTimeOfMonth(GetMonthlyCollectParam param);
/**
* 获取用户本月填报和审批情况,权限为填报时只有填报情况
*
* @param userId
* @return
*/
Map<String,Object> getMonthlyStatistics(Integer userId);
/**
* 获取负责项目的工时汇总:花费工时,工时成本
*
* @param userId
*/
List<WorkTimeAndCostCollect> getCurrentMonthWorkTimeCollect(Integer userId, String startTime);
/**
* 导出一个部门下员工一个月中每天的工时
*
* @param param
* @return
*/
HSSFWorkbook exportWorkTimeExcel(GetMonthlyCollectParam param);
/**
* 获取用户管理项目人员工时统计
*
* @param startDate
* @param endDate
* @param userId
* @param deptId
* @return
*/
List<UserWorkTimeStatisticsByProject> getUserWorkTimeStatisticsReport(Integer userId, Integer deptId, String startDate, String endDate);
/**
* 获取项目统计
*
* @param userId
* @param deptId
* @param year
* @param projectId
* @return
*/
List<ProjectStatisticsByMonth> getProjectStatistics(Integer userId, Integer deptId, Integer year, Integer projectId);
/**
* 导出人员工时统计
* @param userId
* @param deptId
* @param startDate
* @param endDate
* @return
*/
HSSFWorkbook exportUserStatistics(Integer userId, Integer deptId, String startDate, String endDate);
/**
* 导出项目工时统计
* @param userId
* @param year
* @param projectIds
* @return
*/
HSSFWorkbook exportProjectStatistics(Integer userId, Integer year, String projectIds);
/**
* 获取某月需要填报的日期
* @param date
* @param toToday
* @return
*/
List<Date> currentMonthWorkDays(Date date, boolean toToday);
}