Commit 7c4bd149 by chamberone

fix: add logs

2 parents f75e7a86 a562eec2
...@@ -158,11 +158,15 @@ public class UserService { ...@@ -158,11 +158,15 @@ public class UserService {
} }
return orgs; return orgs;
}).flatMap(a -> a.stream()).collect(Collectors.toList()); }).flatMap(a -> a.stream()).collect(Collectors.toList());
log.info("allOrgs1: {}", CollectionUtils.isNotEmpty(allOrgs));
if (CollectionUtils.isNotEmpty(allOrgs)) { if (CollectionUtils.isNotEmpty(allOrgs)) {
log.info("allOrgs2: {}", allOrgs.size()); log.info("allOrgs2: {}", allOrgs.size());
//log.info("allOrgs3: {}", allOrgs.get(0).getIsActive()); try {
//allOrgs.get(0).setIsActive(true); log.info("allOrgs3: {}", allOrgs.get(0).getIsActive());
allOrgs.get(0).setIsActive(true);
} catch (Throwable e) {
e.printStackTrace();
log.error("allOrgs3: {} {}", e.getMessage(), e);
}
} }
userDTO.setAuths(allOrgs); userDTO.setAuths(allOrgs);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!