예제 #1
0
 public List<Areas> queruAreasByids(int[] ids, String aIscheck) {
   List<Areas> areaList = new ArrayList<Areas>();
   Areas area;
   for (int i = 0; i < ids.length; i++) {
     area = areasDao.queryAreasById(ids[i], null);
     areaList.add(area);
   }
   return areaList;
 }
예제 #2
0
 public int updateAreasList(List<Areas> areaList) {
   for (Areas areas : areaList) {
     if (areasDao.updateAreas(areas) <= 0) return 0;
   }
   return 1;
 }
예제 #3
0
 public List<Areas> queryAllAreasByPage(DoPage page, String isCheck) {
   return areasDao.selectAllAreasByPage(page, isCheck);
 }
예제 #4
0
 public int deleteAreasByIds(int[] ids) {
   for (int i = 0; i < ids.length; i++) {
     if (areasDao.deleteAreas(ids[i]) <= 0) return 0;
   }
   return 1;
 }
예제 #5
0
 public int updateAreas(Areas area) {
   return areasDao.updateAreas(area);
 }
예제 #6
0
 public List<Areas> queryAllAreas(String a_ischeck) {
   return areasDao.queryAllAreas(a_ischeck);
 }
예제 #7
0
  public Areas queruAreasByid(int id, String a_ischeck) {

    return areasDao.queryAreasById(id, a_ischeck);
  }
예제 #8
0
 public boolean insertAreas(Areas area) {
   int result = areasDao.insertAreas(area);
   if (result > 0) return true;
   else return false;
 }
예제 #9
0
 public int deleteAreas(int id) {
   return areasDao.deleteAreas(id);
 }