StatisticsService.java 2.43 KB
Newer Older
nie'hong's avatar
nie'hong committed
1 2
package cn.wisenergy.service;

nie'hong's avatar
nie'hong committed
3
import cn.wisenergy.model.dto.GetMonthlyCollectParam;
4
import cn.wisenergy.model.dto.ProjectStatisticsByMonth;
nie'hong's avatar
nie'hong committed
5
import cn.wisenergy.model.dto.UserWorkTimeStatisticsByProject;
nie'hong's avatar
nie'hong committed
6
import cn.wisenergy.model.dto.WorkTimeAndCostCollect;
nie'hong's avatar
nie'hong committed
7
import com.github.pagehelper.PageInfo;
nie'hong's avatar
nie'hong committed
8
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
nie'hong's avatar
nie'hong committed
9

cq990612's avatar
cq990612 committed
10
import java.util.Date;
nie'hong's avatar
nie'hong committed
11
import java.util.List;
12
import java.util.Map;
nie'hong's avatar
nie'hong committed
13

nie'hong's avatar
nie'hong committed
14 15 16 17
public interface StatisticsService {

    /**
     * 获取部门所有员工每天工时
18
     *
nie'hong's avatar
nie'hong committed
19
     * @param param 参数对象
nie'hong's avatar
nie'hong committed
20 21
     * @return
     */
nie'hong's avatar
nie'hong committed
22
    PageInfo getDayWorkTimeOfMonth(GetMonthlyCollectParam param);
nie'hong's avatar
nie'hong committed
23 24 25

    /**
     * 获取用户本月填报和审批情况,权限为填报时只有填报情况
26
     *
nie'hong's avatar
nie'hong committed
27 28 29
     * @param userId
     * @return
     */
30
    Map<String,Object> getMonthlyStatistics(Integer userId);
nie'hong's avatar
nie'hong committed
31 32

    /**
33
     * 获取负责项目的工时汇总:花费工时,工时成本
34
     *
nie'hong's avatar
nie'hong committed
35 36
     * @param userId
     */
nie'hong's avatar
nie'hong committed
37
    List<WorkTimeAndCostCollect> getCurrentMonthWorkTimeCollect(Integer userId, String startTime);
nie'hong's avatar
nie'hong committed
38 39 40 41


    /**
     * 导出一个部门下员工一个月中每天的工时
42
     *
nie'hong's avatar
nie'hong committed
43 44 45 46
     * @param param
     * @return
     */
    HSSFWorkbook exportWorkTimeExcel(GetMonthlyCollectParam param);
nie'hong's avatar
nie'hong committed
47 48

    /**
49
     * 获取用户管理项目人员工时统计
50
     *
nie'hong's avatar
nie'hong committed
51 52
     * @param startDate
     * @param endDate
nie'hong's avatar
nie'hong committed
53
     * @param isConclusion
nie'hong's avatar
nie'hong committed
54 55
     * @return
     */
nie'hong's avatar
nie'hong committed
56
    List<UserWorkTimeStatisticsByProject> getUserWorkTimeStatisticsReport(Integer userId, Integer deptId, String startDate, String endDate);
57 58 59 60 61 62

    /**
     * 获取项目统计
     *
     * @param userId
     * @param deptId
63 64
     * @param year
     * @param projectId
65 66 67
     * @return
     */
    List<ProjectStatisticsByMonth> getProjectStatistics(Integer userId, Integer deptId, Integer year, Integer projectId);
cq990612's avatar
cq990612 committed
68

nie'hong's avatar
nie'hong committed
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
    /**
     * 导出人员工时统计
     * @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, List<Integer> projectIds);

cq990612's avatar
cq990612 committed
88 89 90 91 92 93 94
    /**
     * 获取某月需要填报的日期
     * @param date
     * @param toToday
     * @return
     */
    List<Date> currentMonthWorkDays(Date date, boolean toToday);
nie'hong's avatar
nie'hong committed
95
}