|
|
@@ -692,10 +692,10 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
1, UserLockReleaseStatus.LOCKED.getCode());
|
|
|
if (businessLockedList.size() > 0) {
|
|
|
for (LockingReleaseBo bo : businessLockedList) {
|
|
|
- if (bo.getAid().equals(TokenManager.getAdminId()))
|
|
|
+ if (!bo.getAid().equals(TokenManager.getAdminId()))
|
|
|
isBusinessOwner = true;
|
|
|
}
|
|
|
- if (!isBusinessOwner)
|
|
|
+ if (isBusinessOwner)
|
|
|
throw new BusinessException(
|
|
|
new Error(ErrorConstants.BUSINESS_ALREADY_LOCKED, businessName, ""));
|
|
|
} else {
|