|
@@ -30,6 +30,7 @@ import org.springframework.stereotype.Service;
|
|
|
import java.io.File;
|
|
|
import java.io.FileOutputStream;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
+import java.util.HashSet;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Service
|
|
@@ -61,7 +62,12 @@ public class CaseDownService {
|
|
|
public static String model = "/model/getInfo?modelId=";
|
|
|
public static String caseImg = "/caseImg/getFfmpegImage?caseId=";
|
|
|
|
|
|
+ public static String inquestInfoUrl = "/caseInquestInfo/info?caseId=";
|
|
|
+ public static String casePathInfoUrl = "/casePath/info?caseId=";
|
|
|
+
|
|
|
public static String laserData = "/laser/dataset/%s/getDataSet";
|
|
|
+ public static String laserDataQuery = "/laser/filter/%s/query?datasetId=%s";
|
|
|
+
|
|
|
|
|
|
@Autowired
|
|
|
ICaseService caseService;
|
|
@@ -103,6 +109,10 @@ public class CaseDownService {
|
|
|
ICaseOfflineService caseOfflineService;
|
|
|
@Autowired
|
|
|
ICaseImgService caseImgService;
|
|
|
+ @Autowired
|
|
|
+ ICaseInquestInfoService caseInquestInfoService;
|
|
|
+ @Autowired
|
|
|
+ ICasePathService casePathService;
|
|
|
|
|
|
@Autowired
|
|
|
RedisUtil redisUtil;
|
|
@@ -127,7 +137,7 @@ public class CaseDownService {
|
|
|
if( redisUtil.hasKey(redisKey)){
|
|
|
String res = redisUtil.get(redisKey);
|
|
|
DownloadProcessVo downloadProcessVo = JSONObject.parseObject(res, DownloadProcessVo.class);
|
|
|
- if(downloadProcessVo.getPercent()== null || downloadProcessVo.getPercent() != 100){
|
|
|
+ if(downloadProcessVo.getStatus() != 1003 && (downloadProcessVo.getPercent()== null || downloadProcessVo.getPercent() != 100)){
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -194,6 +204,7 @@ public class CaseDownService {
|
|
|
param.setCaseId(caseId);
|
|
|
|
|
|
//设置案件信息
|
|
|
+ jsonObject.put(basePath+inquestInfoUrl+caseId, ResultData.ok(caseInquestInfoService.getByCaseId(caseId)));
|
|
|
jsonObject.put(basePath+caseInfo+caseId, ResultData.ok(caseService.getInfo(caseId)));
|
|
|
|
|
|
List<CaseSettings> caseSettings = caseSettingsService.getByCaseId(caseId);
|
|
@@ -221,6 +232,7 @@ public class CaseDownService {
|
|
|
}
|
|
|
if(sceneData.getType() == 2 || sceneData.getType() == 5){
|
|
|
FdkkResponse sceneInfo = laserService.getSceneInfo(sceneData.getNum());
|
|
|
+ HashSet<String> dataSetIds = new HashSet<>();
|
|
|
if(sceneInfo != null){
|
|
|
JSONArray jsonArray = JSONArray.parseArray(JSONArray.toJSONString(sceneInfo.getData()));
|
|
|
JSONArray newJsonArray = new JSONArray();
|
|
@@ -231,9 +243,17 @@ public class CaseDownService {
|
|
|
sceneInfoObj.put("oldWebBin",oldPath);
|
|
|
sceneInfoObj.put("webBin",newPath + oldPath);
|
|
|
newJsonArray.add(sceneInfoObj);
|
|
|
+ dataSetIds.add( sceneInfoObj.getString("id"));
|
|
|
}
|
|
|
sceneInfo.setData(newJsonArray);
|
|
|
jsonObject.put(String.format(laserData,sceneData.getNum()),sceneInfo);
|
|
|
+ if(!dataSetIds.isEmpty()){
|
|
|
+ for (String dataSetId : dataSetIds) {
|
|
|
+ FdkkResponse sceneInfo2 = laserService.getSceneInfoQuery(sceneData.getNum(),dataSetId);
|
|
|
+ jsonObject.put(String.format(laserDataQuery,sceneData.getNum(),dataSetId),sceneInfo2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -288,6 +308,7 @@ public class CaseDownService {
|
|
|
downResource(caseId,tag.getHotIconUrl());
|
|
|
}
|
|
|
|
|
|
+ jsonObject.put(basePath+casePathInfoUrl+caseId, ResultData.ok(casePathService.getByCaseId(caseId)));
|
|
|
List<FusionGuide> fusionGuides = fusionGuideService.getAllList(caseId);
|
|
|
jsonObject.put(basePath+fusionGuide+caseId, ResultData.ok(fusionGuides));
|
|
|
|