调解系统后端服务

TestMapperService.java 762B

12345678910111213141516171819202122232425
  1. package com.ruoyi.system.service;
  2. import com.ruoyi.system.domain.entity.baseinfo.Country;
  3. import com.ruoyi.system.mapper.baseinfo.CountryDAO;
  4. import com.ruoyi.system.mapper.baseinfo.CountryMapper;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Service;
  7. import java.util.List;
  8. @Service
  9. public class TestMapperService {
  10. @Autowired
  11. CountryMapper countryMapper;
  12. @Autowired
  13. CountryDAO countryDAO;
  14. public Object queryCountry() {
  15. List<Country> countries = countryMapper.selectAll();
  16. return countries;
  17. }
  18. public Object queryCountryById(Integer countryId) {
  19. List<Country> countries = countryDAO.selectCountryInfoById(countryId);
  20. return countries;
  21. }
  22. }