|
@@ -74,6 +74,8 @@ public class AiController {
|
|
|
ICaseNumService caseNumService;
|
|
|
@Autowired
|
|
|
IScenePlusService scenePlusService;
|
|
|
+ @Autowired
|
|
|
+ IAiContentService aiContentService;
|
|
|
@GetMapping("/getFloor/{caseId}")
|
|
|
public ResultData getFloor(@PathVariable Integer caseId){
|
|
|
String foorPath = "/oss/4dkankan/scene_view_data/%s/user";
|
|
@@ -83,6 +85,8 @@ public class AiController {
|
|
|
List<String> numList = byCaseId.stream().filter(e -> e.getNumType() != 3 && e.getNumType() != 2 && e.getNumType()!=5).map(CaseNumEntity::getNum).collect(Collectors.toList());
|
|
|
List<ScenePlus> scenePluses = scenePlusService.getByNumListAndAi(numList);
|
|
|
|
|
|
+ AiContent aiContent = aiContentService.getById(1);
|
|
|
+
|
|
|
List<FloorPathVo> pathVos = new ArrayList<>();
|
|
|
for (ScenePlus caseNumEntity : scenePluses) {
|
|
|
|
|
@@ -108,7 +112,10 @@ public class AiController {
|
|
|
pathVo.setNum(caseNumEntity.getNum());
|
|
|
pathVo.setTitle(caseNumEntity.getTitle() + floor.getFloorsName());
|
|
|
pathVo.setParams(jsonObject);
|
|
|
- pathVo.setUrl(foorPath.replace("4dkankan/","")+"/cad-style-3-"+floor.getSubgroup()+".jpg");
|
|
|
+ pathVo.setUrl(path.replace("4dkankan/","")+"/cad-style-3-"+floor.getSubgroup()+".jpg");
|
|
|
+ if(aiContent!= null && StringUtils.isNotBlank(aiContent.getContent())){
|
|
|
+ pathVo.setParamContent(aiContent.getContent());
|
|
|
+ }
|
|
|
pathVos.add(pathVo);
|
|
|
}
|
|
|
}catch (Exception e){
|