Exemple #1
0
 private List<Seller> selectSellerList() throws Exception {
   // TODO Auto-generated method stub
   e.setOrderBy(1); // 设置排序规则
   super.selectList(); // 分页搜索数据库中的商品
   List<Seller> result = pager.getList();
   return result;
 }
Exemple #2
0
 @Override
 public void prepare() throws Exception {
   logger.error("SellerAction.prepare...");
   if (this.e == null) {
     this.e = new Seller();
   } else {
     e.clear();
   }
   if (sellerList != null && sellerList.size() > 0) {
     for (Seller seller : sellerList) {
       seller.clear();
       seller = null;
     }
   }
   sellerList = null;
   super.setSelectMenu(FrontContainer.not_select_menu); // 设置主菜单为不选中
 }