| | |
| | | package com.ruoyi.basic.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import com.ruoyi.basic.mapper.CustomerMapper; |
| | | import com.ruoyi.basic.pojo.Customer; |
| | | import com.ruoyi.basic.service.ICustomerService; |
| | |
| | | */ |
| | | @Override |
| | | public Customer selectCustomerById(Long id) { |
| | | return customerMapper.selectCustomerById(id); |
| | | return customerMapper.selectById(id); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public List<Customer> selectCustomerList(Customer customer) { |
| | | return customerMapper.selectCustomerList(customer); |
| | | return customerMapper.selectList(new LambdaQueryWrapper<>()); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public int insertCustomer(Customer customer) { |
| | | return customerMapper.insertCustomer(customer); |
| | | return customerMapper.insert(customer); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public int updateCustomer(Customer customer) { |
| | | return customerMapper.updateCustomer(customer); |
| | | return customerMapper.updateById(customer); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public int deleteCustomerById(Long id) { |
| | | return customerMapper.deleteCustomerById(id); |
| | | return customerMapper.deleteById(id); |
| | | } |
| | | } |