|
@@ -292,7 +292,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
}
|
|
|
|
|
|
log.info("mac:" + mac + "准备上传文件");
|
|
|
- SceneProPO scenePro = sceneProService.getSceneStatusByUnicode("/" + folderName, "A");
|
|
|
+ SceneProPO scenePro = sceneProService.getSceneStatusByUnicode("/" + folderName, TbStatus.VALID.code());
|
|
|
if(scenePro != null && scenePro.getDataSource() != null){
|
|
|
int n = scenePro.getDataSource().split("/").length;
|
|
|
if(n > 1){
|
|
@@ -420,7 +420,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
Object folderNameObject = redisUtil.get(fileId);
|
|
|
String folderName = folderNameObject == null ? null : (String)folderNameObject;
|
|
|
if(StringUtils.isEmpty(folderName)){
|
|
|
- SceneProPO scenePro = sceneProService.getSceneStatusByUnicode("/" + fileId + "/", "A");
|
|
|
+ SceneProPO scenePro = sceneProService.getSceneStatusByUnicode("/" + fileId + "/", TbStatus.VALID.code());
|
|
|
if(scenePro != null){
|
|
|
folderName = scenePro.getDataSource().substring(scenePro.getDataSource().lastIndexOf("/") + 1);
|
|
|
}
|
|
@@ -536,7 +536,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
Object folderNameObject = redisUtil.get(fileId);
|
|
|
String folderName = folderNameObject == null ? null : (String)folderNameObject;
|
|
|
if(StringUtils.isEmpty(folderName)){
|
|
|
- SceneProPO scenePro = sceneProService.getSceneStatusByUnicode("/" + fileId + "/", "A");
|
|
|
+ SceneProPO scenePro = sceneProService.getSceneStatusByUnicode("/" + fileId + "/", TbStatus.VALID.code());
|
|
|
if(scenePro != null){
|
|
|
folderName = scenePro.getDataSource().substring(scenePro.getDataSource().lastIndexOf("/") + 1);
|
|
|
}
|
|
@@ -582,7 +582,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
Object folderNameObject = redisUtil.get(fileId);
|
|
|
String folderName = folderNameObject == null ? null : (String)folderNameObject;
|
|
|
if(StringUtils.isEmpty(folderName)){
|
|
|
- SceneProPO sceneProPO = sceneProService.getSceneStatusByUnicode("/" + fileId + "/", "A");
|
|
|
+ SceneProPO sceneProPO = sceneProService.getSceneStatusByUnicode("/" + fileId + "/", TbStatus.VALID.code());
|
|
|
if(sceneProPO != null){
|
|
|
folderName = sceneProPO.getDataSource().substring(sceneProPO.getDataSource().lastIndexOf("/") + 1);
|
|
|
}
|
|
@@ -638,7 +638,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
Object folderNameObject = redisUtil.get(fileId);
|
|
|
String folderName = folderNameObject == null ? null : (String)folderNameObject;
|
|
|
if(StringUtils.isEmpty(folderName)){
|
|
|
- SceneProPO sceneProPO = sceneProService.getSceneStatusByUnicode("/" + fileId + "/", "A");
|
|
|
+ SceneProPO sceneProPO = sceneProService.getSceneStatusByUnicode("/" + fileId + "/", TbStatus.VALID.code());
|
|
|
if(sceneProPO != null){
|
|
|
folderName = sceneProPO.getDataSource().substring(sceneProPO.getDataSource().lastIndexOf("/") + 1);
|
|
|
}
|