/**
  * 批量删除用户
  *
  * @param ids
  */
 public int deletes(String[] ids) {
   IndexImg e = new IndexImg();
   for (int i = 0; i < ids.length; i++) {
     e.setId(ids[i]);
     delete(e);
   }
   return 0;
 }
示例#2
0
  public String showEdit() {
    Seller seller = (Seller) getSession().getAttribute(FrontContainer.SELLER_INFO);
    if (seller == null || StringUtils.isBlank(seller.getOwner_mobile())) {
      return "toLogin";
    }
    String imgId = getRequest().getParameter("e.id");

    IndexImg indexImg1 = new IndexImg();
    indexImg1.setId(imgId);

    indexImg1.setOwner_id(seller.getId());
    indexImg = indexImgService.selectOne(indexImg1);

    selectLeftMenu = "show";
    e = sellerService.selectById(seller.getId());
    setSelectMenu(FrontContainer.not_select_menu); // 设置主菜单为不选中
    return "showedit";
  }