Commit 96628ce7 by 高晓磊

翻转一下调用方式,避免空指针

parent de2d9ce7
...@@ -33,7 +33,7 @@ public class XystDinasCommonAllScene extends FollowerQueryScene { ...@@ -33,7 +33,7 @@ public class XystDinasCommonAllScene extends FollowerQueryScene {
Predicate p0 = builder.equal(context.getRoot().get("regionalCompany").get("id"), currentRegionalCompany.getUuid("id")); Predicate p0 = builder.equal(context.getRoot().get("regionalCompany").get("id"), currentRegionalCompany.getUuid("id"));
if(currentRegionalCompany.getString("type").equals(OrganizationTypeEnum.REGIONAL_COMPANY.name())) { if(OrganizationTypeEnum.REGIONAL_COMPANY.name().equals(currentRegionalCompany.getString("type"))) {
context.getCriteriaQuery().and(p0); context.getCriteriaQuery().and(p0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment