|
@@ -266,19 +266,11 @@ public class HouseManagerController extends BaseController{
|
|
|
String outPutImageResultPath = imageLocalPath + outPutImageName;
|
|
|
try {
|
|
|
if(!DataUtils.createQRCode(totalVrUrl , outPutImageResultPath , totalFile)){
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "更新VR项目分享二维码/" + tmHouse.getHouseTitle() + "-失败");
|
|
|
- if(ins != 1){
|
|
|
- log.info("插入操作记录失败");
|
|
|
- }
|
|
|
return Result.failure("生成分享二维码失败");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
log.info("生成分享二维码出现异常");
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "更新VR项目分享二维码/" + tmHouse.getHouseTitle() + "-异常");
|
|
|
- if(ins != 1){
|
|
|
- log.info("插入操作记录失败");
|
|
|
- }
|
|
|
return Result.failure("生成分享二维码出现异常");
|
|
|
}
|
|
|
String resultOssPath = ossPath + outPutImageName;
|
|
@@ -292,7 +284,7 @@ public class HouseManagerController extends BaseController{
|
|
|
}
|
|
|
tmHouseService.updateHouse(tmHouse);
|
|
|
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "更新VR项目分享二维码/" + tmHouse.getHouseTitle() + "-成功");
|
|
|
+ int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "更新VR项目分享二维码/" + tmHouse.getHouseTitle());
|
|
|
if(ins != 1){
|
|
|
log.info("插入操作记录失败");
|
|
|
}
|
|
@@ -433,13 +425,9 @@ public class HouseManagerController extends BaseController{
|
|
|
|
|
|
int delete = tmHouseService.deleteHouseById(houseId);
|
|
|
if(delete != 1){
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "删除VR项目/" + dbHouse.getHouseTitle() + "-失败");
|
|
|
- if(ins != 1){
|
|
|
- log.info("插入操作记录失败");
|
|
|
- }
|
|
|
return Result.failure("删除失败");
|
|
|
}
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "删除VR项目/" + dbHouse.getHouseTitle() + "-成功");
|
|
|
+ int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "删除VR项目/" + dbHouse.getHouseTitle());
|
|
|
if(ins != 1){
|
|
|
log.info("插入操作记录失败");
|
|
|
}
|
|
@@ -497,16 +485,12 @@ public class HouseManagerController extends BaseController{
|
|
|
tmHouse.setInnerVrLink(innerHostVrLink);
|
|
|
}
|
|
|
if(tmHouseService.updateHouse(tmHouse)){
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "更新VR项目/" + dbHouse.getHouseTitle() + "-成功");
|
|
|
+ int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "更新VR项目/" + dbHouse.getHouseTitle());
|
|
|
if(ins != 1){
|
|
|
log.info("插入操作记录失败");
|
|
|
}
|
|
|
return Result.success("修改成功");
|
|
|
}else{
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "更新VR项目/" + dbHouse.getHouseTitle() + "-失败");
|
|
|
- if(ins != 1){
|
|
|
- log.info("插入操作记录失败");
|
|
|
- }
|
|
|
return Result.failure("修改失败");
|
|
|
}
|
|
|
}
|
|
@@ -555,7 +539,7 @@ public class HouseManagerController extends BaseController{
|
|
|
log.info("更新房源的审批id失败");
|
|
|
throw new CommonBaseException(ResultCodeEnum.D101 , "更新房源的审批记录失败");
|
|
|
}
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "审核管理" , "提交审核/" + dbHouse.getHouseTitle() + "-成功");
|
|
|
+ int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "审核管理" , "提交审核/" + dbHouse.getHouseTitle());
|
|
|
if(ins != 1){
|
|
|
log.info("插入操作记录失败");
|
|
|
}
|
|
@@ -564,10 +548,6 @@ public class HouseManagerController extends BaseController{
|
|
|
map.put("auditId" , tmAudit.getId());
|
|
|
return Result.success(map);
|
|
|
}else{
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "审核管理" , "提交审核/" + dbHouse.getHouseTitle() + "-失败");
|
|
|
- if(ins != 1){
|
|
|
- log.info("插入操作记录失败");
|
|
|
- }
|
|
|
return Result.failure("提交失败");
|
|
|
}
|
|
|
}
|
|
@@ -619,10 +599,6 @@ public class HouseManagerController extends BaseController{
|
|
|
dbHouse.setAuditTime(null);
|
|
|
dbHouse.setStatus(HouseStatus.DRAFT.getCode());
|
|
|
if(!tmHouseService.updateHouse(dbHouse)){
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "审核管理" , "撤销审核/" + dbHouse.getHouseTitle() + "-失败");
|
|
|
- if(ins != 1){
|
|
|
- log.info("插入操作记录失败");
|
|
|
- }
|
|
|
throw new CommonBaseException(ResultCodeEnum.D101 , "撤销房源的审批记录失败");
|
|
|
}
|
|
|
|
|
@@ -631,7 +607,7 @@ public class HouseManagerController extends BaseController{
|
|
|
throw new CommonBaseException(ResultCodeEnum.D101 , "删除审批记录失败");
|
|
|
}
|
|
|
|
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "审核管理" , "撤销审核/" + dbHouse.getHouseTitle() + "-成功");
|
|
|
+ int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "审核管理" , "撤销审核/" + dbHouse.getHouseTitle());
|
|
|
if(ins != 1){
|
|
|
log.info("插入操作记录失败");
|
|
|
}
|