|
@@ -54,7 +54,11 @@ public class VillageServiceImpl extends ServiceImpl<VillageMapper, VillageEntity
|
|
|
SysUserEntity entity = userService.cacheById(userId);
|
|
|
|
|
|
String projectIds = entity.getProjectIds();
|
|
|
- wrapper.inSql(StrUtil.isNotBlank(projectIds), VillageEntity::getId, projectIds);
|
|
|
+ // 直接返回空
|
|
|
+ if (StrUtil.isBlank(projectIds)){
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+ wrapper.inSql(VillageEntity::getId, projectIds);
|
|
|
}
|
|
|
|
|
|
list = this.list(wrapper);
|