0Service
public class CustomerServiceImpl implements * CustomerService (
@AutOwired
CustomerDaOCustomerDaO;
//添加客户信息
publicint saveCustomer(Customer customer){
return CustomerDao.saveCuStomer(Customer)i
H
//获取所有客户信息
public List<Customer>getAl1Customer()一
return customerDao.getA11Customer();
e
1/根据id查询客户信息
public Customer getCustomerById (Integer id) (
return customerDao.getCustomerById (íd);
1/修改客户信息public int updateCustomer(Customer customer){
return customerDao.updateCustomer (customer);
SapoИ
1/删除客户信息
pub1ic int deleteCustomer(Integerid){
returncustomerDao.deleteCustomer(id);