src/main/java/com/linghu/controller/PlatformController.java
@@ -85,7 +85,7 @@ @ApiOperation(value = "删除平台") public ResponseResult<Void> delete(@PathVariable Integer platformId) { //平台被引用了没 Integer count = referenceMapper.selectCount(new LambdaQueryWrapper<Reference>().eq(Reference::getPlatform_id, platformId)); Integer count = Math.toIntExact(referenceMapper.selectCount(new LambdaQueryWrapper<Reference>().eq(Reference::getPlatform_id, platformId))); if (count > 0) { return ResponseResult.error("该平台被引用中,不能删除"); }