,请稍候再试");     return result;    }    if(isSatisfy == null){     result.setError(ResultCode.CODE_STATE_0000, "获取不到确认的结果");     return result;    }    //参数正确,处理数据    DesignSearch designSearch = new DesignSearch();    designSearch.setAppointId(appointId);    List<DesignVo> designList = this.designDao.select(designSearch);    AppointmentVo appointmentVo = new AppointmentVo();    appointmentVo.setId(appointId);    if(designList != null && designList.size() > 0){     for(DesignVo designVo:designList){      if(isSatisfy){//如果满意报价       designVo.setState(DesignState.CONFIRM_ORDER);       appointmentVo.setState(AppointmentState.CONFIRM_ORDER);      }else{//如果不满意报价       designVo.setState(DesignState.NOTSATISFY_QUOTE);       appointmentVo.setState(AppointmentState.NOTSATISFY_QUOTE);      }     }    }else{     result.setError(ResultCode.CODE_STATE_0000, "找不到对应的设计信息");     return result;    }    //处理完毕,更新数据    Boolean flag = this.appointmentService.edit(appointmentVo);    if(flag){     flag = this.designDao.batchUpdate(designList);     if(!flag){      result.setError(ResultCode.CODE_STATE_0000, "更新报价状态信息失败");      throw new ServiceException("更新报价状态信息失败");     }    }else{     result.setError(ResultCode.CODE_STATE_0000, "更新预约状态信息失败");     return result;    }    //满意报价,添加订单    if(isSatisfy){     AppointmentVo appointVo = this.appointmentService.getById(appointId);