|
@@ -92,7 +92,7 @@ public class ProjectController extends BaseController {
|
|
tmEstate.setCreateByName(tokenMap.getNickName());
|
|
tmEstate.setCreateByName(tokenMap.getNickName());
|
|
}
|
|
}
|
|
if (tmEstateService.insertNew(tmEstate)) {
|
|
if (tmEstateService.insertNew(tmEstate)) {
|
|
- int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "创建楼盘/" + dbEstate.getEstateName());
|
|
|
|
|
|
+ int ins = tmOperationService.addNewWithTypeAndContent(getContextUserInfo() , "VR楼盘项目" , "创建楼盘/" + tmEstate.getEstateName());
|
|
if(ins != 1){
|
|
if(ins != 1){
|
|
log.info("插入操作记录失败");
|
|
log.info("插入操作记录失败");
|
|
}
|
|
}
|
|
@@ -154,6 +154,9 @@ public class ProjectController extends BaseController {
|
|
return Result.failure("id不能为空");
|
|
return Result.failure("id不能为空");
|
|
}
|
|
}
|
|
TmEstate dbEstate = tmEstateService.getById(tmEstate.getId());
|
|
TmEstate dbEstate = tmEstateService.getById(tmEstate.getId());
|
|
|
|
+ if(null == dbEstate){
|
|
|
|
+ return Result.failure("楼盘不存在");
|
|
|
|
+ }
|
|
if (tmEstate.getIsDelete().compareTo(1) == 0 && dbEstate.getIsDelete().compareTo(0) == 0) {
|
|
if (tmEstate.getIsDelete().compareTo(1) == 0 && dbEstate.getIsDelete().compareTo(0) == 0) {
|
|
//删除楼盘操作,需要检查楼盘下面是否还有有效房源
|
|
//删除楼盘操作,需要检查楼盘下面是否还有有效房源
|
|
|
|
|