소스 검색

fix empty list issue

albertshaw 8 년 전
부모
커밋
962b6ffbb9
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/main/java/com/goafanti/report/service/SalesReportServiceImpl.java

+ 3 - 0
src/main/java/com/goafanti/report/service/SalesReportServiceImpl.java

@@ -121,6 +121,9 @@ public class SalesReportServiceImpl extends BaseMybatisDao<DailySalesReportMappe
 		if (list.isEmpty()) {
 			list = salesReportMapper.selectPersonalByPage(pageNo, pageSize, depName, name, position);
 		}
+		if (list.isEmpty()) {
+			return list;
+		}
 
 		Map<String, PersonalSalesReportBO> map = new HashMap<>();
 		List<String> ids = list.stream().map(item -> {