|
@@ -88,6 +88,9 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
@Value("${env:gn}")
|
|
@Value("${env:gn}")
|
|
private String env;
|
|
private String env;
|
|
|
|
|
|
|
|
+ @Value("#{'${build.scene.post.not-delete-nas-nums:}'.split(',')}")
|
|
|
|
+ private List<String> notDeleteNasNumList;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private RabbitMqProducer mqProducer;
|
|
private RabbitMqProducer mqProducer;
|
|
|
|
|
|
@@ -346,7 +349,9 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
scenePlusService.updateById(scenePlus);
|
|
scenePlusService.updateById(scenePlus);
|
|
|
|
|
|
//删除计算目录
|
|
//删除计算目录
|
|
- CreateObjUtil.deleteFile(path.replace(ConstantFilePath.BUILD_MODEL_PATH, "/"));
|
|
|
|
|
|
+ if(CollUtil.isEmpty(notDeleteNasNumList) || !notDeleteNasNumList.contains(sceneCode)){
|
|
|
|
+ CreateObjUtil.deleteFile(path.replace(ConstantFilePath.BUILD_MODEL_PATH, "/"));
|
|
|
|
+ }
|
|
|
|
|
|
//国际环境需要发邮件通知
|
|
//国际环境需要发邮件通知
|
|
if("eur".equals(env)){
|
|
if("eur".equals(env)){
|