|
@@ -81,6 +81,7 @@ public class SceneController extends BaseController {
|
|
@ApiOperation(value = "场景排序")
|
|
@ApiOperation(value = "场景排序")
|
|
@PostMapping(value = "setSort")
|
|
@PostMapping(value = "setSort")
|
|
public Result setSort(@RequestBody Map<String, String> param) {
|
|
public Result setSort(@RequestBody Map<String, String> param) {
|
|
|
|
+ log.info("场景排序");
|
|
return sceneService.setSort(param);
|
|
return sceneService.setSort(param);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -98,12 +99,19 @@ public class SceneController extends BaseController {
|
|
return sceneService.editHouse(param);
|
|
return sceneService.editHouse(param);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 提供恒大管理后台使用
|
|
|
|
+ * 更新数据状态
|
|
|
|
+ * @param houseId
|
|
|
|
+ * @param status
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
@WebControllerLog(description = "场景管理-VR项目审核通过/下线")
|
|
@WebControllerLog(description = "场景管理-VR项目审核通过/下线")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "houseId", value = "房源id", dataType = "String", required = true),
|
|
@ApiImplicitParam(name = "houseId", value = "房源id", dataType = "String", required = true),
|
|
@ApiImplicitParam(name = "status", value = "状态, 审核通过/上线:4, 下线:3", dataType = "String"),
|
|
@ApiImplicitParam(name = "status", value = "状态, 审核通过/上线:4, 下线:3", dataType = "String"),
|
|
})
|
|
})
|
|
- @ApiOperation(value = "VR项目审核通过/下线/上线", position = 3)
|
|
|
|
|
|
+ @ApiOperation(value = "VR项目审核通过/下线", position = 3)
|
|
@GetMapping("house/audit/{houseId}/{status}")
|
|
@GetMapping("house/audit/{houseId}/{status}")
|
|
public Result houseAudit(@PathVariable String houseId, @PathVariable String status) {
|
|
public Result houseAudit(@PathVariable String houseId, @PathVariable String status) {
|
|
return sceneService.houseAudit(houseId, status);
|
|
return sceneService.houseAudit(houseId, status);
|
|
@@ -113,6 +121,7 @@ public class SceneController extends BaseController {
|
|
@ApiOperation(value = "VR项目删除", position = 3)
|
|
@ApiOperation(value = "VR项目删除", position = 3)
|
|
@GetMapping("house/remove/{houseId}")
|
|
@GetMapping("house/remove/{houseId}")
|
|
public Result houseRemove(@PathVariable String houseId) {
|
|
public Result houseRemove(@PathVariable String houseId) {
|
|
|
|
+ log.info("VR项目删除: " + houseId);
|
|
return sceneService.houseRemove(houseId);
|
|
return sceneService.houseRemove(houseId);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -136,6 +145,14 @@ public class SceneController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 提供恒大管理后台使用
|
|
|
|
+ * 传status=3 ,需要把状态3、4 的数据都返回
|
|
|
|
+ * @param houseId
|
|
|
|
+ * @param status
|
|
|
|
+ * @param type
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "houseId", value = "房源id", dataType = "String", required = true),
|
|
@ApiImplicitParam(name = "houseId", value = "房源id", dataType = "String", required = true),
|
|
@ApiImplicitParam(name = "type", value = "场景类型, 楼盘:building, 园林:garden, 户型:house", dataType = "String", required = true),
|
|
@ApiImplicitParam(name = "type", value = "场景类型, 楼盘:building, 园林:garden, 户型:house", dataType = "String", required = true),
|
|
@@ -144,6 +161,7 @@ public class SceneController extends BaseController {
|
|
@ApiOperation(value = "获取场景码列表", position = 3)
|
|
@ApiOperation(value = "获取场景码列表", position = 3)
|
|
@GetMapping("getVrSceneCode/{houseId}/{status}/{type}")
|
|
@GetMapping("getVrSceneCode/{houseId}/{status}/{type}")
|
|
public Result getVrSceneCode(@PathVariable String houseId, @PathVariable String status, @PathVariable String type) {
|
|
public Result getVrSceneCode(@PathVariable String houseId, @PathVariable String status, @PathVariable String type) {
|
|
|
|
+ log.info("获取场景码列表");
|
|
return sceneService.getVrSceneCode(houseId, status, type);
|
|
return sceneService.getVrSceneCode(houseId, status, type);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -151,24 +169,48 @@ public class SceneController extends BaseController {
|
|
@ApiOperation(value = "房源详情", position = 3)
|
|
@ApiOperation(value = "房源详情", position = 3)
|
|
@GetMapping("house/detail/{houseId}")
|
|
@GetMapping("house/detail/{houseId}")
|
|
public Result houseDetail(@PathVariable String houseId) {
|
|
public Result houseDetail(@PathVariable String houseId) {
|
|
|
|
+ log.info("房源详情");
|
|
return houseFeign.findByHouseId(houseId);
|
|
return houseFeign.findByHouseId(houseId);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 提供恒大管理后台使用
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "房源首页批量获取", position = 3)
|
|
|
|
+ @PostMapping("house/findAllHouseId")
|
|
|
|
+ public Result findAllHouseId(@RequestBody HouseIndexPageDto param) {
|
|
|
|
+ log.info("房源首页批量获取");
|
|
|
|
+ return sceneService.findAllHouseIdIndex(param);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 调用四维看看接口
|
|
|
|
+ * @param param
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
@ApiOperation(value = "VR模型查找", position = 3)
|
|
@ApiOperation(value = "VR模型查找", position = 3)
|
|
@PostMapping("findVrModel")
|
|
@PostMapping("findVrModel")
|
|
public Result findVrModel(@Valid @RequestBody SceneRroPageDto param) {
|
|
public Result findVrModel(@Valid @RequestBody SceneRroPageDto param) {
|
|
|
|
+ log.info("VR模型查找");
|
|
return sceneService.findVrModel(param);
|
|
return sceneService.findVrModel(param);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 提供四维看看使用
|
|
|
|
+ * @param sceneCode
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
@ApiOperation(value = "VR模模型-根据场景码查询")
|
|
@ApiOperation(value = "VR模模型-根据场景码查询")
|
|
@GetMapping(value = "fdkk/findBySceneCode")
|
|
@GetMapping(value = "fdkk/findBySceneCode")
|
|
public Result vrFindBySceneCode(String sceneCode) {
|
|
public Result vrFindBySceneCode(String sceneCode) {
|
|
|
|
+ log.info("VR模模型-根据场景码查询: " + sceneCode);
|
|
SceneEntity entity = sceneService.findBySceneCode(sceneCode);
|
|
SceneEntity entity = sceneService.findBySceneCode(sceneCode);
|
|
boolean flag = true;
|
|
boolean flag = true;
|
|
if (entity == null) {
|
|
if (entity == null) {
|
|
flag = false;
|
|
flag = false;
|
|
}
|
|
}
|
|
|
|
+ log.info("查询结果: " + flag);
|
|
return Result.success(flag);
|
|
return Result.success(flag);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -221,11 +263,11 @@ public class SceneController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- @WebControllerLog(description = "场景管理-删除场景")
|
|
|
|
- @ApiOperation("删除")
|
|
|
|
|
|
+ @WebControllerLog(description = "场景管理-场景删除")
|
|
|
|
+ @ApiOperation("场景删除")
|
|
@GetMapping("removes/{id}")
|
|
@GetMapping("removes/{id}")
|
|
public Result remove(@PathVariable String id) {
|
|
public Result remove(@PathVariable String id) {
|
|
-
|
|
|
|
|
|
+ log.info("场景删除");
|
|
SceneEntity entity = sceneService.findById(id);
|
|
SceneEntity entity = sceneService.findById(id);
|
|
if (entity.getStatus() == 1) {
|
|
if (entity.getStatus() == 1) {
|
|
return Result.failure(7004, "执行中的任务不能删除");
|
|
return Result.failure(7004, "执行中的任务不能删除");
|
|
@@ -283,56 +325,6 @@ public class SceneController extends BaseController {
|
|
return Result.success();
|
|
return Result.success();
|
|
}
|
|
}
|
|
|
|
|
|
-// @WebControllerLog(description = "场景管理-删除场景")
|
|
|
|
-// @ApiOperation("删除")
|
|
|
|
-// @GetMapping("removes/{ids}")
|
|
|
|
-// public Result removes(@PathVariable String ids) {
|
|
|
|
-// String[] split = ids.split(",");
|
|
|
|
-// SceneEntity entity = null;
|
|
|
|
-//
|
|
|
|
-// for (String id: split) {
|
|
|
|
-// entity = sceneService.findById(id);
|
|
|
|
-// if (entity.getStatus() == 1) {
|
|
|
|
-// return Result.failure(7004, "执行中的任务不能删除");
|
|
|
|
-//
|
|
|
|
-// }
|
|
|
|
-// entity.setIsDelete(1);
|
|
|
|
-// // 设置场景为0
|
|
|
|
-// entity.setIsIndex(0);
|
|
|
|
-// entity.setUpdateTime(new Date());
|
|
|
|
-// String houseId = entity.getHouseId();
|
|
|
|
-// sceneService.update(entity);
|
|
|
|
-//
|
|
|
|
-// // 更新首页
|
|
|
|
-// List<SceneEntity> entityList = sceneMapper.findByHouseId(houseId);
|
|
|
|
-// if (entityList.size() > 0) {
|
|
|
|
-// SceneEntity sceneEntity = entityList.get(0);
|
|
|
|
-// if (sceneEntity != null) {
|
|
|
|
-// sceneEntity.setIsIndex(1);
|
|
|
|
-// sceneService.update(sceneEntity);
|
|
|
|
-// // 更新首页场景到VR项目
|
|
|
|
-// HouseSceneIndexDto indexDto = new HouseSceneIndexDto();
|
|
|
|
-// indexDto.setId(sceneEntity.getHouseId());
|
|
|
|
-// indexDto.setSceneNum(entity.getSceneCode());
|
|
|
|
-// indexDto.setUpdateTime(LocalDateTime.now());
|
|
|
|
-// indexDto.setFcbHouseId(sceneEntity.getHengdaId());
|
|
|
|
-// Result result = houseFeign.updateHouseSceneIndex(indexDto);
|
|
|
|
-// if (result.getCode() == 0) {
|
|
|
|
-// log.info("更新了初始场景到VR项目完成");
|
|
|
|
-// } else {
|
|
|
|
-// log.error("更新了初始场景到VR项目异常");
|
|
|
|
-// return Result.failure(result.getMsg());
|
|
|
|
-// }
|
|
|
|
-// log.info("result: "+ result);
|
|
|
|
-// log.info("更新了初始场景到VR项目");
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-//
|
|
|
|
-//
|
|
|
|
-// return Result.success();
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
|
|
|
|
private SceneEntity setInitIndex(List<SceneEntity> entityList) {
|
|
private SceneEntity setInitIndex(List<SceneEntity> entityList) {
|
|
|
|
|