/**
  * 跳转到修改页面
  *
  * @param id
  * @return
  */
 @RequiresPermissions("receive:update")
 @RequestMapping("updatePage")
 public String upadatePage(String id, ModelMap map) {
   BiGoodsreceiving bv = igoodsreceivingService.get(BiGoodsreceiving.class, id);
   if (bv == null) {
     return NODATA;
   }
   BiBasicinformation bi =
       igoodsreceivingService.get(BiBasicinformation.class, bv.getUsingnameid());
   if (bi != null) {
     map.addAttribute("bi", bi);
   }
   map.addAttribute("bv", bv);
   return "administration/officemanagement/goodsreceiving/update";
 }
 /**
  * 修改物品领用
  *
  * @param bv
  * @param errors
  * @param num
  * @return
  */
 @RequiresPermissions("receive:update")
 @RequestMapping("update")
 public ModelAndView update(@Valid BiGoodsreceiving bv, Errors errors) {
   if (errors.hasErrors()) {
     ModelAndView mav = getValidationMessage(errors);
     if (mav != null) return mav;
   }
   return ajaxDone(igoodsreceivingService.updatereceving(bv));
 }
  /**
   * 分页查询物品领用信息
   *
   * @return
   */
  @RequiresPermissions("receive:read")
  @RequestMapping("loadall")
  public ModelAndView loadall(BiGoodsreceiving bv, PageParam param, Date startDate, Date endDate) {

    return ajaxJsonEscape(igoodsreceivingService.load(bv, param, startDate, endDate));
  }
 /**
  * 批量删除
  *
  * @param ids
  * @return
  */
 @RequiresPermissions("receive:delete")
 @RequestMapping("deletes")
 public ModelAndView deletes(String[] ids) {
   return ajaxDone(igoodsreceivingService.deletes(ids));
 }