新增TKmapper自动生成部分代码功能组件
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user