|
@@ -1895,7 +1895,7 @@ public class PerformanceServiceImpl2 extends ServiceImpl<PerformanceMapper, Perf
|
|
|
String endTime = timeMap.get("endDate");
|
|
|
|
|
|
//1 获取快手下所有人
|
|
|
- List<UserDto2> userDto2List = userEfficientVideoMapMapper.getKuaishouDepartUserInfo();
|
|
|
+ List<UserDto2> userDto2List = userEfficientVideoMapMapper.getKuaishouDepartAllUserInfo();
|
|
|
//2 循环所有人,并查询出每个人的有效视频数、总视频数、总消耗
|
|
|
for (UserDto2 userDto : userDto2List) {
|
|
|
//String roleCode = userDto.getRoleCode();
|
|
@@ -1910,7 +1910,9 @@ public class PerformanceServiceImpl2 extends ServiceImpl<PerformanceMapper, Perf
|
|
|
}
|
|
|
//2.4 当季度绩效
|
|
|
BigDecimal performance = userEfficientVideoMapMapper.getQuarterPerformance(userDto.getUserId(), year, quarter, 2);
|
|
|
-
|
|
|
+ if(performance==null){
|
|
|
+ performance=BigDecimal.ZERO;
|
|
|
+ }
|
|
|
userDto.setEffiRate(performance);
|
|
|
userDto.setCost(cost);
|
|
|
userDto.setVideoCount(videoCount);
|
|
@@ -1928,7 +1930,7 @@ public class PerformanceServiceImpl2 extends ServiceImpl<PerformanceMapper, Perf
|
|
|
String endTime = timeMap.get("endDate");
|
|
|
|
|
|
//1 获取头条下所有人
|
|
|
- List<UserDto2> userDto2List = userEfficientVideoMapMapper.getToutiaoDepartUserInfo();
|
|
|
+ List<UserDto2> userDto2List = userEfficientVideoMapMapper.getToutiaoDepartAllUserInfo();
|
|
|
//2 循环所有人,并查询出每个人的有效视频数、总视频数、总消耗
|
|
|
for (UserDto2 userDto : userDto2List) {
|
|
|
//String roleCode = userDto.getRoleCode();
|
|
@@ -1943,7 +1945,9 @@ public class PerformanceServiceImpl2 extends ServiceImpl<PerformanceMapper, Perf
|
|
|
}
|
|
|
//2.4 当季度绩效
|
|
|
BigDecimal performance = userEfficientVideoMapMapper.getQuarterPerformance(userDto.getUserId(), year, quarter, 1);
|
|
|
-
|
|
|
+ if(performance==null){
|
|
|
+ performance=BigDecimal.ZERO;
|
|
|
+ }
|
|
|
userDto.setEffiRate(performance);
|
|
|
userDto.setCost(cost);
|
|
|
userDto.setVideoCount(videoCount);
|
|
@@ -1969,10 +1973,8 @@ public class PerformanceServiceImpl2 extends ServiceImpl<PerformanceMapper, Perf
|
|
|
return materialInfoList;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
//快手优化季度绩效报表
|
|
|
- //@Override
|
|
|
+ @Override
|
|
|
public List<UserDto2> kuaishouYouhuaQuarterReport(Integer year, Integer quarter) {
|
|
|
//1 获取快手下所有人
|
|
|
List<UserDto2> userDto2List = userEfficientVideoMapMapper.getKuaishouYunyingDepartUserInfo();
|
|
@@ -1985,6 +1987,9 @@ public class PerformanceServiceImpl2 extends ServiceImpl<PerformanceMapper, Perf
|
|
|
}
|
|
|
//当季度绩效
|
|
|
BigDecimal performance = userEfficientVideoMapMapper.getQuarterPerformance(userDto.getUserId(), year, quarter, 2);
|
|
|
+ if(performance==null){
|
|
|
+ performance=BigDecimal.ZERO;
|
|
|
+ }
|
|
|
userDto.setEffiRate(performance);
|
|
|
userDto.setCost(cost);
|
|
|
userDto.setYear(year);
|
|
@@ -2008,6 +2013,9 @@ public class PerformanceServiceImpl2 extends ServiceImpl<PerformanceMapper, Perf
|
|
|
}
|
|
|
//当季度绩效
|
|
|
BigDecimal performance = userEfficientVideoMapMapper.getQuarterPerformance(userDto.getUserId(), year, quarter, 1);
|
|
|
+ if(performance==null){
|
|
|
+ performance=BigDecimal.ZERO;
|
|
|
+ }
|
|
|
userDto.setEffiRate(performance);
|
|
|
userDto.setCost(cost);
|
|
|
userDto.setYear(year);
|