|
@@ -8,9 +8,12 @@ import com.fdkankan.common.util.JwtUtil;
|
|
import com.fdkankan.ucenter.common.BaseController;
|
|
import com.fdkankan.ucenter.common.BaseController;
|
|
import com.fdkankan.ucenter.common.DownloadStatusEnum;
|
|
import com.fdkankan.ucenter.common.DownloadStatusEnum;
|
|
import com.fdkankan.ucenter.common.Result;
|
|
import com.fdkankan.ucenter.common.Result;
|
|
|
|
+import com.fdkankan.ucenter.common.constants.ResultCode;
|
|
import com.fdkankan.ucenter.constant.LoginConstant;
|
|
import com.fdkankan.ucenter.constant.LoginConstant;
|
|
|
|
+import com.fdkankan.ucenter.entity.ScenePlus;
|
|
import com.fdkankan.ucenter.entity.User;
|
|
import com.fdkankan.ucenter.entity.User;
|
|
import com.fdkankan.ucenter.service.*;
|
|
import com.fdkankan.ucenter.service.*;
|
|
|
|
+import com.fdkankan.ucenter.service.impl.TakeLookService;
|
|
import com.fdkankan.ucenter.vo.request.RequestScene;
|
|
import com.fdkankan.ucenter.vo.request.RequestScene;
|
|
import com.fdkankan.ucenter.vo.request.SceneParam;
|
|
import com.fdkankan.ucenter.vo.request.SceneParam;
|
|
import com.fdkankan.ucenter.vo.response.DownloadProcessVo;
|
|
import com.fdkankan.ucenter.vo.response.DownloadProcessVo;
|
|
@@ -46,6 +49,8 @@ public class SceneController extends BaseController {
|
|
ISceneService sceneService;
|
|
ISceneService sceneService;
|
|
@Autowired
|
|
@Autowired
|
|
IScenePlusService scenePlusService;
|
|
IScenePlusService scenePlusService;
|
|
|
|
+ @Autowired
|
|
|
|
+ TakeLookService takeLookService;
|
|
|
|
|
|
@PostMapping("/findSceneNumber")
|
|
@PostMapping("/findSceneNumber")
|
|
public Result findSceneNumber(){
|
|
public Result findSceneNumber(){
|
|
@@ -178,6 +183,20 @@ public class SceneController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 发起带看获取带看房间号
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/getTakeLookRoomId")
|
|
|
|
+ public Result getTakeLookRoomId(@RequestParam(value = "num") String num){
|
|
|
|
+ ScenePlus scenePlus = scenePlusService.getByNum(num);
|
|
|
|
+ if(scenePlus == null){
|
|
|
|
+ throw new BusinessException(ResultCode.FAILURE_CODE_400002,ResultCode.FAILURE_MSG_400002);
|
|
|
|
+ }
|
|
|
|
+ if(scenePlus.getSceneStatus() != -2){
|
|
|
|
+ throw new BusinessException(ResultCode.FAILURE_CODE_400009,ResultCode.FAILURE_MSG_400009);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ return Result.success(takeLookService.getRoomIdByNum(num,scenePlus.getTitle(),getToken()));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|