feat: 优化删除数据模型也删除模型字段sql条件

This commit is contained in:
l90215
2025-08-05 22:06:05 +08:00
parent ab9ff52200
commit 450ec6db44

View File

@@ -175,8 +175,9 @@ public class SchemaFieldServiceImpl implements SchemaFieldService {
//TODO 做一些业务上的校验,判断是否需要校验
}
// 先根据Schema ID查询字段列表
List<SchemaField> fields = baseMapper.selectList(Wrappers.lambdaQuery(SchemaField.class)
.eq(SchemaField::getSchemaId, schemaIds));
LambdaQueryWrapper<SchemaField> queryWrapper = Wrappers.lambdaQuery(SchemaField.class);
queryWrapper.in(SchemaField::getSchemaId, schemaIds);
List<SchemaField> fields = baseMapper.selectList(queryWrapper);
if (CollUtil.isEmpty(fields)) {
return false;
}