|
@@ -447,13 +447,16 @@ public class UserCorpwxTimeController {
|
|
|
List<LocalDate> workDateList = WorkDayCalculateUtils.getWorkDaysListInRange(startDate, endDate, 0);
|
|
|
if (functionList.size() > 0) {
|
|
|
//查看全部人员的
|
|
|
- list = userCorpwxTimeMapper.getUserDataRatioList(user.getCompanyId(), workDateList, ymonth, null);
|
|
|
+ list = userCorpwxTimeMapper.getUserDataRatioList(user.getCompanyId(), workDateList, ymonth, null, null);
|
|
|
} else {
|
|
|
if (manageDeptId != null && manageDeptId != 0) {
|
|
|
//一个人可能担任多个部门负责人
|
|
|
List<Department> allDeptList = departmentMapper.selectList(new QueryWrapper<Department>().eq("company_id", user.getCompanyId()));
|
|
|
List<Integer> allManagedDeptIdList = departmentService.getAllManagedDeptIdList(user, allDeptList);
|
|
|
- list = userCorpwxTimeMapper.getUserDataRatioList(user.getCompanyId(), workDateList, ymonth, allManagedDeptIdList);
|
|
|
+ list = userCorpwxTimeMapper.getUserDataRatioList(user.getCompanyId(), workDateList, ymonth, allManagedDeptIdList, null);
|
|
|
+ } else {
|
|
|
+ //个人的,可以看自己的
|
|
|
+ list = userCorpwxTimeMapper.getUserDataRatioList(user.getCompanyId(), workDateList, ymonth, null, user.getId());
|
|
|
}
|
|
|
}
|
|
|
|