后台-用户信息查询-换取-判断国家地区取反

This commit is contained in:
khalil
2025-06-04 22:08:01 +08:00
parent 8c83a07abe
commit 95ee218811

View File

@@ -297,7 +297,7 @@ public class UserCheckAdminService {
users.setPartitionId(partitionId);
if (regionId != null) {
RegionInfo regionInfo = regionInfoService.getById(regionId);
if (regionInfo != null && PartitionUtil.inPartition(regionInfo.getPartitionFlag(), users.getPartitionId())) {
if (regionInfo != null && !PartitionUtil.inPartition(regionInfo.getPartitionFlag(), users.getPartitionId())) {
throw new AdminServiceException("国家与地区不一致");
}
}