|
@@ -65,7 +65,7 @@ public class MetadataClassificationServiceImpl
|
|
|
}else{
|
|
|
MetadataClassification metadataClassification = baseMapper.selectMetadaOne(obj.getContainerName(), obj.getCode(),
|
|
|
"file_key_" + obj.getCode().toLowerCase(),obj.getId());
|
|
|
- if(metadataClassification == null){
|
|
|
+ if(metadataClassification != null){
|
|
|
return false;
|
|
|
}
|
|
|
String filetype = "varchar";
|
|
@@ -106,6 +106,7 @@ public class MetadataClassificationServiceImpl
|
|
|
try {
|
|
|
MetadataClassification metadataClassification = baseMapper.selectById(ids);
|
|
|
baseMapper.deleteTableField(metadataClassification.getContainerInitTabName(),metadataClassification.getFieldKey());
|
|
|
+ baseMapper.deleteById(ids);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return false;
|