Commit a562eec2 by chamberone

fix: add logs

1 parent 5313c619
......@@ -9,13 +9,13 @@ import java.util.stream.Collectors;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Predicate;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.nacos.common.utils.CollectionUtils;
import com.dituhui.pea.common.Result;
import com.dituhui.pea.common.ResultEnum;
import com.dituhui.pea.enums.RedisKeyGroup;
......@@ -158,10 +158,11 @@ public class UserService {
}
return orgs;
}).flatMap(a -> a.stream()).collect(Collectors.toList());
// if (CollectionUtils.isNotEmpty(allOrgs)) {
// log.info("allOrgs {}", allOrgs.get(0));
// allOrgs.get(0).setIsActive(true);
// }
log.info("allOrgs1: {}", CollectionUtils.isNotEmpty(allOrgs));
if (CollectionUtils.isNotEmpty(allOrgs)) {
log.info("allOrgs2: {}", allOrgs.get(0).getIsActive());
allOrgs.get(0).setIsActive(true);
}
userDTO.setAuths(allOrgs);
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!