Ejemplo n.º 1
0
 public List<Defray> findDefarysByShop(int shopId, int state, int pageSize, int startRow) {
   if (shopId != 0) {
     return defaryDao.findByProperty(
         new String[] {DefrayDAO.SHOP_ID, DefrayDAO.STATE},
         new Integer[] {shopId, state},
         pageSize,
         startRow,
         null,
         null);
   } else {
     return defaryDao.findByProperty(
         new String[] {DefrayDAO.STATE}, new Integer[] {state}, pageSize, startRow, null, null);
   }
 }