|
@@ -86,9 +86,10 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
LocalDate nowDate = LocalDate.now();
|
|
|
|
|
|
List<Organization> allOrgans = organizationDao.findAllOrgans();
|
|
|
- Set<Integer> organIds = allOrgans.stream().map(Organization::getId).collect(Collectors.toSet());
|
|
|
- this.organIds.get().clear();
|
|
|
- this.organIds.get().addAll(organIds);
|
|
|
+ if(CollectionUtils.isEmpty(this.organIds.get())){
|
|
|
+ this.organIds.get().clear();
|
|
|
+ this.organIds.get().addAll(allOrgans.stream().map(Organization::getId).collect(Collectors.toSet()));
|
|
|
+ }
|
|
|
|
|
|
startMonth = df.format(nowDate);
|
|
|
|