|
@@ -100,12 +100,15 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
if(roleCode.equals(CtopRoleCodeConstant.COMMON_ROLE_CODE_ADMIN)){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupAdmin(startDate, endDate, accountIdsList, signature, cost);
|
|
|
- }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")) {
|
|
|
+ }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")||roleCode.equals("huananyunying")) {
|
|
|
if (accountIdsList != null && !accountIdsList.isEmpty()){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accountIdsList,signature,cost);
|
|
|
}else{
|
|
|
List<Long> accoutnIds= byteDanceVideoReportDailyMapper.getAccountIdsByOperatorIdAndMediaId(userId);
|
|
|
+ if(accoutnIds == null || accoutnIds.isEmpty()){
|
|
|
+ return new PageInfo<>(mList);
|
|
|
+ }
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accoutnIds,signature,cost);
|
|
|
}
|
|
@@ -124,6 +127,21 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
}else if(roleCode.equals("designTeamLeader")){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupdesignTeamLeader(startDate, endDate, companyId, accountIdsList, signature, cost);
|
|
|
+ }else{
|
|
|
+ if (accountIdsList != null && !accountIdsList.isEmpty()) {
|
|
|
+ PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }else{
|
|
|
+ List<Integer> mediaIds = new ArrayList<>();
|
|
|
+ mediaIds.add(1);
|
|
|
+ mediaIds.add(3);
|
|
|
+ accountIdsList = byteDanceVideoReportDailyMapper.getAccountIdsByUserIdAndMediaIds(userId,mediaIds);
|
|
|
+ if(accountIdsList == null || accountIdsList.isEmpty()){
|
|
|
+ return new PageInfo<>(mList);
|
|
|
+ }
|
|
|
+ PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//计算环比
|
|
@@ -169,12 +187,15 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
if(roleCode.equals(CtopRoleCodeConstant.COMMON_ROLE_CODE_ADMIN)){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupAdmin(startDate, endDate, accountIdsList, signature, cost);
|
|
|
- }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")) {
|
|
|
+ }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")||roleCode.equals("huananyunying")) {
|
|
|
if (accountIdsList != null && !accountIdsList.isEmpty()){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accountIdsList,signature,cost);
|
|
|
}else{
|
|
|
List<Long> accoutnIds= byteDanceVideoReportDailyMapper.getAccountIdsByOperatorIdAndMediaId(userId);
|
|
|
+ if(accoutnIds == null || accoutnIds.isEmpty()){
|
|
|
+ return new PageInfo<>(mList);
|
|
|
+ }
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accoutnIds,signature,cost);
|
|
|
}
|
|
@@ -193,6 +214,21 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
}else if(roleCode.equals("designTeamLeader")){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupdesignTeamLeader(startDate, endDate, companyId, accountIdsList, signature, cost);
|
|
|
+ }else {
|
|
|
+ if (accountIdsList != null && !accountIdsList.isEmpty()) {
|
|
|
+ PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }else{
|
|
|
+ List<Integer> mediaIds = new ArrayList<>();
|
|
|
+ mediaIds.add(1);
|
|
|
+ mediaIds.add(3);
|
|
|
+ accountIdsList = byteDanceVideoReportDailyMapper.getAccountIdsByUserIdAndMediaIds(userId,mediaIds);
|
|
|
+ if(accountIdsList == null || accountIdsList.isEmpty()){
|
|
|
+ return new PageInfo<>(mList);
|
|
|
+ }
|
|
|
+ PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//计算环比
|
|
@@ -237,12 +273,15 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
if(roleCode.equals(CtopRoleCodeConstant.COMMON_ROLE_CODE_ADMIN)){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupAdmin(startDate, endDate, accountIdsList, signature, cost);
|
|
|
- }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")) {
|
|
|
+ }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")||roleCode.equals("huananyunying")) {
|
|
|
if (accountIdsList != null && !accountIdsList.isEmpty()){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accountIdsList,signature,cost);
|
|
|
}else{
|
|
|
List<Long> accoutnIds= byteDanceVideoReportDailyMapper.getAccountIdsByOperatorIdAndMediaId(userId);
|
|
|
+ if(accoutnIds == null || accoutnIds.isEmpty()){
|
|
|
+ return new PageInfo<>(mList);
|
|
|
+ }
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accoutnIds,signature,cost);
|
|
|
}
|
|
@@ -261,6 +300,21 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
}else if(roleCode.equals("designTeamLeader")){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupdesignTeamLeader(startDate, endDate, companyId, accountIdsList, signature, cost);
|
|
|
+ }else {
|
|
|
+ if (accountIdsList != null && !accountIdsList.isEmpty()) {
|
|
|
+ PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }else{
|
|
|
+ List<Integer> mediaIds = new ArrayList<>();
|
|
|
+ mediaIds.add(1);
|
|
|
+ mediaIds.add(3);
|
|
|
+ accountIdsList = byteDanceVideoReportDailyMapper.getAccountIdsByUserIdAndMediaIds(userId,mediaIds);
|
|
|
+ if(accountIdsList == null || accountIdsList.isEmpty()){
|
|
|
+ return new PageInfo<>(mList);
|
|
|
+ }
|
|
|
+ PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//计算环比
|
|
@@ -308,12 +362,15 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
if(roleCode.equals(CtopRoleCodeConstant.COMMON_ROLE_CODE_ADMIN)){
|
|
|
PageHelper.orderBy(sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupAdmin(startDate, endDate, accountIdsList, signature, cost);
|
|
|
- }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")) {
|
|
|
+ }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")||roleCode.equals("huananyunying")) {
|
|
|
if (accountIdsList != null && !accountIdsList.isEmpty()){
|
|
|
PageHelper.orderBy(sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accountIdsList,signature,cost);
|
|
|
}else{
|
|
|
List<Long> accoutnIds= byteDanceVideoReportDailyMapper.getAccountIdsByOperatorIdAndMediaId(userId);
|
|
|
+ if(accoutnIds == null || accoutnIds.isEmpty()){
|
|
|
+ return mList;
|
|
|
+ }
|
|
|
PageHelper.orderBy(sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accoutnIds,signature,cost);
|
|
|
}
|
|
@@ -332,6 +389,20 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
}else if(roleCode.equals("designTeamLeader")){
|
|
|
PageHelper.orderBy(sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupdesignTeamLeader(startDate, endDate, companyId, accountIdsList, signature, cost);
|
|
|
+ }else {
|
|
|
+ if (accountIdsList != null && !accountIdsList.isEmpty()) {
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }else{
|
|
|
+ List<Integer> mediaIds = new ArrayList<>();
|
|
|
+ mediaIds.add(1);
|
|
|
+ mediaIds.add(3);
|
|
|
+ accountIdsList = byteDanceVideoReportDailyMapper.getAccountIdsByUserIdAndMediaIds(userId,mediaIds);
|
|
|
+ if(accountIdsList == null || accountIdsList.isEmpty()){
|
|
|
+ return mList;
|
|
|
+ }
|
|
|
+
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }
|
|
|
}
|
|
|
return mList;
|
|
|
}
|
|
@@ -359,12 +430,15 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
if(roleCode.equals(CtopRoleCodeConstant.COMMON_ROLE_CODE_ADMIN)){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupAdmin(startDate, endDate, accountIdsList, signature, cost);
|
|
|
- }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")) {
|
|
|
+ }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")||roleCode.equals("huananyunying")) {
|
|
|
if (accountIdsList != null && !accountIdsList.isEmpty()){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accountIdsList,signature,cost);
|
|
|
}else{
|
|
|
List<Long> accoutnIds= byteDanceVideoReportDailyMapper.getAccountIdsByOperatorIdAndMediaId(userId);
|
|
|
+ if(accoutnIds == null || accoutnIds.isEmpty()){
|
|
|
+ return new PageInfo<>(mList);
|
|
|
+ }
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOperator(startDate,endDate,accoutnIds,signature,cost);
|
|
|
}
|
|
@@ -383,6 +457,21 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
}else if(roleCode.equals("designTeamLeader")){
|
|
|
PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListGroupdesignTeamLeader(startDate, endDate, companyId, accountIdsList, signature, cost);
|
|
|
+ }else{
|
|
|
+ if (accountIdsList != null && !accountIdsList.isEmpty()) {
|
|
|
+ PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }else{
|
|
|
+ List<Integer> mediaIds = new ArrayList<>();
|
|
|
+ mediaIds.add(1);
|
|
|
+ mediaIds.add(3);
|
|
|
+ accountIdsList = byteDanceVideoReportDailyMapper.getAccountIdsByUserIdAndMediaIds(userId,mediaIds);
|
|
|
+ if(accountIdsList == null || accountIdsList.isEmpty()){
|
|
|
+ return new PageInfo<>(mList);
|
|
|
+ }
|
|
|
+ PageHelper.startPage(pageNo,pageSize,sort);
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListGroupOtherRoles(startDate,endDate,accountIdsList,signature,cost);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//计算环比
|
|
@@ -420,7 +509,7 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
//admin能看所有视频
|
|
|
if(roleCode.equals(CtopRoleCodeConstant.COMMON_ROLE_CODE_ADMIN)){
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListDetail(companyId, startDate, endDate, signature, accountIdsList);
|
|
|
- }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")) {
|
|
|
+ }else if(roleCode.equals("touTiaoOperationManager") || roleCode.equals("operator") || roleCode.equals("operationAssistant")||roleCode.equals("huananyunying")) {
|
|
|
if (accountIdsList != null && !accountIdsList.isEmpty()){
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListDetailOperator(companyId, startDate,endDate,signature, accountIdsList);
|
|
|
}else{
|
|
@@ -432,6 +521,19 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
}else if(roleCode.equals("designTeamLeader")){
|
|
|
accountIdsList = byteDanceVideoReportDailyMapper.getAccountIds(companyId, signature);
|
|
|
mList = byteDanceVideoReportDailyMapper.videoInfoListDetailDesign(companyId, startDate,endDate,signature, accountIdsList);
|
|
|
+ }else {
|
|
|
+ if (accountIdsList != null && !accountIdsList.isEmpty()) {
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListDetailOtherRoles(companyId, startDate, endDate, signature, accountIdsList);
|
|
|
+ }else{
|
|
|
+ List<Integer> mediaIds = new ArrayList<>();
|
|
|
+ mediaIds.add(1);
|
|
|
+ mediaIds.add(3);
|
|
|
+ accountIdsList = byteDanceVideoReportDailyMapper.getAccountIdsByUserIdAndMediaIds(userId,mediaIds);
|
|
|
+ if(accountIdsList == null || accountIdsList.isEmpty()){
|
|
|
+ return mList;
|
|
|
+ }
|
|
|
+ mList = byteDanceVideoReportDailyMapper.videoInfoListDetailOtherRoles(companyId, startDate, endDate, signature, accountIdsList);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//计算环比
|