| 12345678910111213141516171819202122232425 |
- package com.ruoyi.system.service;
-
- import com.ruoyi.system.domain.entity.baseinfo.Country;
- import com.ruoyi.system.mapper.baseinfo.CountryDAO;
- import com.ruoyi.system.mapper.baseinfo.CountryMapper;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
-
- import java.util.List;
-
- @Service
- public class TestMapperService {
- @Autowired
- CountryMapper countryMapper;
- @Autowired
- CountryDAO countryDAO;
- public Object queryCountry() {
- List<Country> countries = countryMapper.selectAll();
- return countries;
- }
- public Object queryCountryById(Integer countryId) {
- List<Country> countries = countryDAO.selectCountryInfoById(countryId);
- return countries;
- }
- }
|