|
@@ -376,6 +376,7 @@ public class HouseController extends BaseController {
|
|
if(houseAuditDto.getResult().compareTo(1) != 0 && houseAuditDto.getResult().compareTo(0) != 0){
|
|
if(houseAuditDto.getResult().compareTo(1) != 0 && houseAuditDto.getResult().compareTo(0) != 0){
|
|
throw new CommonBaseException(ResultCodeEnum.D101 , "审批结果格式不正确");
|
|
throw new CommonBaseException(ResultCodeEnum.D101 , "审批结果格式不正确");
|
|
}
|
|
}
|
|
|
|
+
|
|
houseEntity.setAuditResult(houseAuditDto.getResult());
|
|
houseEntity.setAuditResult(houseAuditDto.getResult());
|
|
houseEntity.setAuditDesc(houseAuditDto.getDesc());
|
|
houseEntity.setAuditDesc(houseAuditDto.getDesc());
|
|
houseEntity.setUpdateTime(new Date());
|
|
houseEntity.setUpdateTime(new Date());
|
|
@@ -554,7 +555,18 @@ public class HouseController extends BaseController {
|
|
houseEntity.setHandler(userId);
|
|
houseEntity.setHandler(userId);
|
|
houseEntity.setUpdateTime(new Date());
|
|
houseEntity.setUpdateTime(new Date());
|
|
|
|
|
|
- houseService2.update(houseEntity);
|
|
|
|
|
|
+ if(null != houseEntity.getAuditResult() && houseEntity.getAuditResult().compareTo(0) == 0){
|
|
|
|
+ //重新分配制作人,前面不通过的审批,需要擦除,TODO:需要添加一个上一状态,用于追踪
|
|
|
|
+ houseEntity.setAuditResult(null);
|
|
|
|
+ houseEntity.setAuditDesc(null);
|
|
|
|
+ houseEntity.setCanNotEdit(1);
|
|
|
|
+ houseEntity.setCanNotEditDesc(null);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ int update = houseService2.updateAll(houseEntity);
|
|
|
|
+ if(update != 1){
|
|
|
|
+ throw new CommonBaseException(ResultCodeEnum.D101 , "更新房源数据失败");
|
|
|
|
+ }
|
|
return new R(MsgCode.SUCCESS_CODE, MsgCode.msg_SUCCESS);
|
|
return new R(MsgCode.SUCCESS_CODE, MsgCode.msg_SUCCESS);
|
|
}
|
|
}
|
|
|
|
|