Skip to content

Instantly share code, notes, and snippets.

@theopendle
Created February 10, 2019 15:00
Show Gist options
  • Save theopendle/0c625d2f2226452a66c01dc5afc7337a to your computer and use it in GitHub Desktop.
Save theopendle/0c625d2f2226452a66c01dc5afc7337a to your computer and use it in GitHub Desktop.
@Service
public class ClientServiceImpl implements ClientService {
@Autowired
private ClientMapper clientMapper;
@Override
public Client getClient(final Long id) {
return clientMapper.selectOne(id);
}
@Override
public List<Client> getClients() {
return clientMapper.findAll();
}
@Override
public void createClient(final Client client) {
clientMapper.insertClient(client);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment