代码优化!
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ public class UserServiceImpl implements UserService {
|
||||
preList.add(in);
|
||||
}
|
||||
// 1 为财务帮平台超级账号
|
||||
if (AdminConst.ADMIN_PLATFORM_ID != user.getBssPlatform().getId()) {
|
||||
if (AdminConst.ADMIN_PLATFORM_ID.equals(user.getBssPlatform().getId())) {
|
||||
BssPlatform bssPlatform = user.getBssPlatform();
|
||||
Join<User, BssPlatform> join = root.join("bssPlatform", JoinType.INNER);
|
||||
Predicate eq = cb.equal(join.get("id").as(Long.class),bssPlatform.getId());
|
||||
|
||||
Reference in New Issue
Block a user