|
|
|
@ -194,6 +194,19 @@ public class IcdFileConfigServiceImpl implements IcdFileConfigService {
|
|
|
|
|
configRepository.deleteById(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void deleteSrv(Integer fileId) throws BusinessException {
|
|
|
|
|
Optional<IcdFile> optional = fileRepository.findById(fileId);
|
|
|
|
|
if (!optional.isPresent()) {
|
|
|
|
|
throw new BusinessException("未找到该文件");
|
|
|
|
|
}
|
|
|
|
|
IcdFile icdFile = optional.get();
|
|
|
|
|
if (icdFile.getStart().intValue() == Constants.TRUE) {
|
|
|
|
|
throw new BusinessException("请先去控制台停止该服务端");
|
|
|
|
|
}
|
|
|
|
|
fileRepository.deleteById(fileId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void deleteAtt(Integer attid) {
|
|
|
|
|
attRepository.deleteById(attid);
|
|
|
|
|