|
@@ -529,8 +529,7 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
private void uploadFloorCad(String path, String num, Map<String, String> uploadFiles){
|
|
|
|
|
|
//户型图上传
|
|
|
- String userEditPath = UploadFilePath.USER_EDIT_PATH + "floor-cad-%s.%s";
|
|
|
- String userViewPath = UploadFilePath.USER_VIEW_PATH + "floor-cad-%s.%s";
|
|
|
+ String dataViewPath = UploadFilePath.DATA_VIEW_PATH + "floor-cad-%s.%s";
|
|
|
String floorCadPath = path + "/results/floorplan_cad";
|
|
|
List<String> floorCadList = FileUtils.getFileList(floorCadPath);
|
|
|
if(CollUtil.isNotEmpty(floorCadList)){
|
|
@@ -538,10 +537,7 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
String substring = str.substring(str.lastIndexOf(File.separator) + 1);
|
|
|
String[] arr = substring.split("floor");
|
|
|
String[] arr2 = arr[1].split("\\.");
|
|
|
- //上传到用户编辑目录
|
|
|
- uploadFiles.put(str, String.format(userEditPath, num, arr2[0], arr2[1]));
|
|
|
- //上传到用户查看目录
|
|
|
- uploadFiles.put(str, String.format(userViewPath, num, arr2[0], arr2[1]));
|
|
|
+ uploadFiles.put(str, String.format(dataViewPath, num, arr2[0], arr2[1]));
|
|
|
});
|
|
|
}
|
|
|
|