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; }
public ResultObject getCustomerList(String name, String realname) { CustomerBeanDao customerDao = new CustomerBeanDao(); List<CustomerBean> list = customerDao.getCustomerList(name, realname); return new ResultObject(ResultObject.SUCCESS, list); }