|
@@ -167,8 +167,8 @@ public class HouseManagerController {
|
|
|
if(StringUtils.isBlank(tmHouse.getSceneNum())){
|
|
|
return Result.failure("改房源未生成场景码");
|
|
|
}
|
|
|
- String totalVrUrl = innerSceneVrHost + sceneVrLink + tmHouse.getId()
|
|
|
- + "&s=" + tmHouse.getSceneNum() + "&h=" + tmHouse.getFcbHouseId();
|
|
|
+ String totalVrUrl = innerSceneVrHost + tmHouse.getSceneNum() + "&prodId=" + tmHouse.getFcbHouseId()
|
|
|
+ + "&houseId=" + tmHouse.getId();
|
|
|
String localPath = imageLocalPath + "logo.png";
|
|
|
String outPutImageName = System.currentTimeMillis() + ".jpg";
|
|
|
String outPutImageResultPath = imageLocalPath + outPutImageName;
|
|
@@ -204,7 +204,7 @@ public class HouseManagerController {
|
|
|
return Result.failure("房源不存在");
|
|
|
}
|
|
|
if(StringUtils.isBlank(tmHouse.getSceneNum())){
|
|
|
- return Result.failure("改房源未生成场景码");
|
|
|
+ return Result.failure("该房源未生成场景码");
|
|
|
}
|
|
|
int index = file.getOriginalFilename().indexOf(".");
|
|
|
String newFileName = System.currentTimeMillis() + "";
|
|
@@ -217,8 +217,8 @@ public class HouseManagerController {
|
|
|
String downLoanVideoPath = FileUtils.parseFile(file, imageLocalPath , newFileName);
|
|
|
log.info("照片文件已经下载到本地:{}", downLoanVideoPath);
|
|
|
|
|
|
- String totalVrUrl = outerSceneVrHost + sceneVrLink + tmHouse.getId() + "&s="
|
|
|
- + tmHouse.getSceneNum() + "&h=" + tmHouse.getFcbHouseId();
|
|
|
+ String totalVrUrl = outerSceneVrHost + tmHouse.getSceneNum() + "&prodId=" + tmHouse.getFcbHouseId()
|
|
|
+ + "&houseId=" + tmHouse.getId();
|
|
|
String outPutImageName = System.currentTimeMillis() + ".jpg";
|
|
|
String outPutImageResultPath = imageLocalPath + outPutImageName;
|
|
|
try {
|
|
@@ -390,10 +390,10 @@ public class HouseManagerController {
|
|
|
if(StringUtils.isBlank(tmHouse.getFcbHouseId())){
|
|
|
return Result.failure("更新场景码必须上送房车宝的房源ID");
|
|
|
}
|
|
|
- String innerHostVrLink = innerSceneVrHost + sceneVrLink
|
|
|
- + dbHouse.getId() + "&s=" + tmHouse.getSceneNum() + "&h=" + tmHouse.getFcbHouseId();
|
|
|
- String outerHostVrLink = outerSceneVrHost + sceneVrLink
|
|
|
- + dbHouse.getId() + "&s=" + tmHouse.getSceneNum() + "&h=" + tmHouse.getFcbHouseId();
|
|
|
+ String innerHostVrLink = innerSceneVrHost + tmHouse.getSceneNum() + "&prodId=" + tmHouse.getFcbHouseId()
|
|
|
+ + "&houseId=" + tmHouse.getId();
|
|
|
+ String outerHostVrLink = outerSceneVrHost + tmHouse.getSceneNum() + "&prodId=" + tmHouse.getFcbHouseId()
|
|
|
+ + "&houseId=" + tmHouse.getId();
|
|
|
tmHouse.setVrLink(outerHostVrLink);
|
|
|
tmHouse.setInnerVrLink(innerHostVrLink);
|
|
|
}
|
|
@@ -492,7 +492,7 @@ public class HouseManagerController {
|
|
|
if(HouseStatus.WAITING_AUDIT.getCode().compareTo(dbHouse.getStatus()) != 0){
|
|
|
return Result.failure("房源状态非待审核");
|
|
|
}
|
|
|
-// dbHouse = null;
|
|
|
+ dbHouse = null;
|
|
|
//抢房源的锁,去掉原来审核的
|
|
|
dbHouse = tmHouseService.selectForUpdate(houseId);
|
|
|
if(null == dbHouse){
|
|
@@ -503,7 +503,7 @@ public class HouseManagerController {
|
|
|
if(null == tmAudit){
|
|
|
return Result.failure("该房源未提交审核");
|
|
|
}
|
|
|
- if(null != tmAudit.getAuditStatus()){
|
|
|
+ if(null != tmAudit.getAuditStatus() && AuditStatus.AUDITED.getCode().compareTo(tmAudit.getAuditStatus()) == 0){
|
|
|
return Result.failure("该房源已经审核过,无法撤回");
|
|
|
}
|
|
|
//开启事务,抢审批记录的锁
|