项目分月统计在项目没有的情况下直接返回

master
xxssyyyyssxx 2021-12-13 18:12:25 +08:00
parent 6dd364d9d5
commit c8244f396e
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,11 @@ public class StatisticsService {
int adminId = InterfaceUtil.getAdminId();
List<Integer> projectIds = projectVisibleRepository.findProjectIdByTypeAndTid(ProjectVisible.TYPE_USER, adminId);
if(CollectionUtil.isEmpty(projectIds)){
return statisticsBean;
}
//收入数据
List<ProjectBudgetIncome> allIncome = projectBudgetIncomeRepository.findAllByProjectIds(projectIds);
if (CollectionUtil.isNotEmpty(allIncome)) {