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