fix(数据源): 删除驱动报错

This commit is contained in:
taojinlong 2022-08-26 16:07:36 +08:00
parent a298dd9ee9
commit 6914d1e9f1

View File

@ -109,7 +109,7 @@ public class DriverService {
if(deDriver == null){ if(deDriver == null){
throw new Exception(Translator.get("I18N_DRIVER_NOT_FOUND")); throw new Exception(Translator.get("I18N_DRIVER_NOT_FOUND"));
} }
if(deDriverDetails.getIsTransName()){ if(deDriverDetails.getIsTransName() == null || !deDriverDetails.getIsTransName()){
DeFileUtils.deleteFile(DRIVER_PATH + deDriverDetails.getDeDriverId() + "/" + deDriverDetails.getFileName()); DeFileUtils.deleteFile(DRIVER_PATH + deDriverDetails.getDeDriverId() + "/" + deDriverDetails.getFileName());
}else { }else {
DeFileUtils.deleteFile(DRIVER_PATH + deDriverDetails.getDeDriverId() + "/" + deDriverDetails.getTransName()); DeFileUtils.deleteFile(DRIVER_PATH + deDriverDetails.getDeDriverId() + "/" + deDriverDetails.getTransName());