Esempio n. 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;
 }
Esempio n. 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);
 }