Пример #1
0
 public ResultObject getCustomerList() {
   ResultObject rso = new ResultObject();
   CustomerBeanDao customerDao = new CustomerBeanDao();
   List<CustomerBean> customerList = customerDao.getCustomerList();
   if (customerList != null) {
     rso.setState(ResultObject.SUCCESS);
     rso.setData(customerList);
   }
   return rso;
 }
Пример #2
0
 public ResultObject getCustomerList(String name, String realname) {
   CustomerBeanDao customerDao = new CustomerBeanDao();
   List<CustomerBean> list = customerDao.getCustomerList(name, realname);
   return new ResultObject(ResultObject.SUCCESS, list);
 }