|
@@ -2328,6 +2328,24 @@ public class PerformanceServiceImpl2 extends ServiceImpl<PerformanceMapper, Perf
|
|
|
//根据userid,appType,年度,季度查询有效视频列表
|
|
|
public List<MaterialInfo> getEffiWeekVideoList(Integer appType, String startDate, String endDate, String userId){
|
|
|
List<MaterialInfo> materialInfoList = userEfficientVideoMapMapper.getEffiWeekVideoList(appType, startDate, endDate, userId);
|
|
|
+ BigDecimal cost = null;
|
|
|
+ if(appType == 2){
|
|
|
+ for(MaterialInfo materialInfo:materialInfoList){
|
|
|
+ cost = userEfficientVideoMapMapper.videoTotalCostInDates(materialInfo.getCode(),startDate, endDate);
|
|
|
+ if(cost == null){
|
|
|
+ cost = BigDecimal.ZERO;
|
|
|
+ }
|
|
|
+ materialInfo.setCost(cost);
|
|
|
+ }
|
|
|
+ }else if(appType == 1){
|
|
|
+ for(MaterialInfo materialInfo:materialInfoList){
|
|
|
+ cost = userEfficientVideoMapMapper.toutiaoVideoTotalCostInDates(materialInfo.getCode(),startDate, endDate);
|
|
|
+ if(cost == null){
|
|
|
+ cost = BigDecimal.ZERO;
|
|
|
+ }
|
|
|
+ materialInfo.setCost(cost);
|
|
|
+ }
|
|
|
+ }
|
|
|
return materialInfoList;
|
|
|
}
|
|
|
|