注解修改

This commit is contained in:
songjinsheng 2022-05-23 14:17:46 +08:00
parent f4caf10bd3
commit 5041f3f92f
21 changed files with 70 additions and 25 deletions

View File

@ -1,5 +1,6 @@
package com.ruoyi; package com.ruoyi;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@ -10,6 +11,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
* @author ruoyi * @author ruoyi
*/ */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@MapperScan("com.ruoyi.system.mapper_yada")
public class RuoYiApplication public class RuoYiApplication
{ {
public static void main(String[] args) public static void main(String[] args)

View File

@ -6,10 +6,12 @@ import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
import com.ruoyi.system.service_yada.IAorestCoverageService; import com.ruoyi.system.service_yada.IAorestCoverageService;
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService; import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
@ -22,7 +24,7 @@ import java.util.List;
@RestController @RestController
@RequestMapping(value = "/business-service/api/Aorest", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Aorest", produces = "application/json;charset=UTF-8")
public class AorestCoverageController { public class AorestCoverageController {
//@Autowired @Resource
private IAorestCoverageService service; private IAorestCoverageService service;
/** /**

View File

@ -4,10 +4,12 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService; import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO; import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
@ -21,7 +23,7 @@ import java.util.List;
@RequestMapping(value = "/business-service/api/Australia", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Australia", produces = "application/json;charset=UTF-8")
public class AustraliaMiddleEastController public class AustraliaMiddleEastController
{ {
//@Autowired @Resource
private IAustraliaMiddleEastService australiaMiddleEastService; private IAustraliaMiddleEastService australiaMiddleEastService;
/** /**

View File

@ -6,10 +6,12 @@ import com.ruoyi.system.domain_yada.GlobalTypeVO;
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService; import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IGlobalTypeService; import com.ruoyi.system.service_yada.IGlobalTypeService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
@ -22,7 +24,7 @@ import java.util.List;
@RestController @RestController
@RequestMapping("/monitor/clobal") @RequestMapping("/monitor/clobal")
public class GlobalTypeController { public class GlobalTypeController {
//@Autowired @Resource
private IGlobalTypeService typeService; private IGlobalTypeService typeService;
/** /**

View File

@ -6,10 +6,12 @@ import com.ruoyi.system.domain_yada.OceanTemperatureVO;
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService; import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IOceanTemperatureService; import com.ruoyi.system.service_yada.IOceanTemperatureService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
@ -22,7 +24,7 @@ import java.util.List;
@RestController @RestController
@RequestMapping(value = "/business-service/api/Ocean", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Ocean", produces = "application/json;charset=UTF-8")
public class OceanTemperatureController { public class OceanTemperatureController {
//@Autowired @Resource
private IOceanTemperatureService temperatureService; private IOceanTemperatureService temperatureService;
/** /**

View File

@ -4,11 +4,13 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service_yada.IRegionVGIService; import com.ruoyi.system.service_yada.IRegionVGIService;
import com.ruoyi.system.domain_yada.RegionVGIVO; import com.ruoyi.system.domain_yada.RegionVGIVO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
@ -22,7 +24,7 @@ import java.util.List;
@RequestMapping(value = "/business-service/api/orderMng", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/orderMng", produces = "application/json;charset=UTF-8")
public class RegionVGIController public class RegionVGIController
{ {
//@Autowired @Resource
private IRegionVGIService regionVGIService; private IRegionVGIService regionVGIService;
/** /**
* 查询方法 * 查询方法

View File

@ -7,10 +7,12 @@ import com.ruoyi.system.domain_yada.RegionalSystemVO;
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService; import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IRegionalSystemService; import com.ruoyi.system.service_yada.IRegionalSystemService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
@ -23,7 +25,7 @@ import java.util.List;
@RestController @RestController
@RequestMapping(value = "/business-service/api/Regional", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Regional", produces = "application/json;charset=UTF-8")
public class RegionalSystemController { public class RegionalSystemController {
//@Autowired @Resource
private IRegionalSystemService systemService; private IRegionalSystemService systemService;
/** /**

View File

@ -6,10 +6,12 @@ import com.ruoyi.system.domain_yada.UrbanVO;
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService; import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IUrbanService; import com.ruoyi.system.service_yada.IUrbanService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
@ -22,7 +24,7 @@ import java.util.List;
@RestController @RestController
@RequestMapping(value = "/business-service/api/Urban", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Urban", produces = "application/json;charset=UTF-8")
public class UrbanController { public class UrbanController {
//@Autowired @Resource
private IUrbanService urbanService; private IUrbanService urbanService;
/** /**

View File

@ -6,10 +6,12 @@ import com.ruoyi.system.domain_yada.VegetationCoverageVO;
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService; import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IVegetationCoverageService; import com.ruoyi.system.service_yada.IVegetationCoverageService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
@ -22,7 +24,7 @@ import java.util.List;
@RestController @RestController
@RequestMapping(value = "/business-service/api/Vegetation", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Vegetation", produces = "application/json;charset=UTF-8")
public class VegetationCoverageController { public class VegetationCoverageController {
//@Autowired @Resource
private IVegetationCoverageService coverageService; private IVegetationCoverageService coverageService;
/** /**

View File

@ -6,7 +6,7 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://192.168.2.9:3306/nuoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://192.168.2.9:3306/nuoyi?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: saas username: saas
password: XKrs123. password: XKrs123.
# 从库数据源 # 从库数据源

View File

@ -97,9 +97,9 @@ token:
# MyBatis配置 # MyBatis配置
mybatis: mybatis:
# 搜索指定包别名 # 搜索指定包别名
typeAliasesPackage: com.ruoyi.**.domain typeAliasesPackage: com.ruoyi.**.domain,com.ruoyi.**.domain_yada
# 配置mapper的扫描找到所有的mapper.xml映射文件 # 配置mapper的扫描找到所有的mapper.xml映射文件
mapperLocations: classpath*:mapper/**/*Mapper.xml mapperLocations: classpath*:mapper/**/*Mapper.xml,classpath*:mapper_yada/*Mapper.xml
# 加载全局的配置文件 # 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml configLocation: classpath:mybatis/mybatis-config.xml
@ -116,6 +116,7 @@ swagger:
# 请求前缀 # 请求前缀
pathMapping: /dev-api pathMapping: /dev-api
# 防止XSS攻击 # 防止XSS攻击
xss: xss:
# 过滤开关 # 过滤开关

View File

@ -85,32 +85,32 @@ public class ThematicMapDomain extends SysBaseEntity {
this.picturePath = picturePath; this.picturePath = picturePath;
} }
@Override
public String getRemarks() { public String getRemarks() {
return remarks; return remarks;
} }
@Override
public void setRemarks(String remarks) { public void setRemarks(String remarks) {
this.remarks = remarks; this.remarks = remarks;
} }
@Override
public String getCreatedBy() { public String getCreatedBy() {
return createdBy; return createdBy;
} }
@Override
public void setCreatedBy(String createdBy) { public void setCreatedBy(String createdBy) {
this.createdBy = createdBy; this.createdBy = createdBy;
} }
@Override
public LocalDateTime getCreatedTime() { public LocalDateTime getCreatedTime() {
return createdTime; return createdTime;
} }
@Override
public void setCreatedTime(LocalDateTime createdTime) { public void setCreatedTime(LocalDateTime createdTime) {
this.createdTime = createdTime; this.createdTime = createdTime;
} }

View File

@ -2,6 +2,7 @@ package com.ruoyi.system.mapper_yada;
import com.ruoyi.system.domain_yada.OceanTemperatureVO; import com.ruoyi.system.domain_yada.OceanTemperatureVO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
@ -9,6 +10,7 @@ import java.util.List;
* @Author: JinSheng Song * @Author: JinSheng Song
* @Date: 2022/5/11 15:18 * @Date: 2022/5/11 15:18
*/ */
@Repository
public interface OceanTemperatureMapper { public interface OceanTemperatureMapper {
List<OceanTemperatureVO> selectOcean(); List<OceanTemperatureVO> selectOcean();

View File

@ -6,7 +6,9 @@ import com.ruoyi.system.mapper_yada.AorestCoverageMapper;
import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper; import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
import com.ruoyi.system.service_yada.IAorestCoverageService; import com.ruoyi.system.service_yada.IAorestCoverageService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
@ -14,8 +16,9 @@ import java.util.List;
* @Author: JinSheng Song * @Author: JinSheng Song
* @Date: 2022/5/11 11:43 * @Date: 2022/5/11 11:43
*/ */
@Service
public class AorestCoverageServiceimpl implements IAorestCoverageService { public class AorestCoverageServiceimpl implements IAorestCoverageService {
@Autowired @Resource
private AorestCoverageMapper coverageMapper; private AorestCoverageMapper coverageMapper;

View File

@ -4,7 +4,9 @@ import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService; import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO; import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
@ -12,9 +14,10 @@ import java.util.List;
* @Author: JinSheng Song * @Author: JinSheng Song
* @Date: 2022/5/11 11:43 * @Date: 2022/5/11 11:43
*/ */
@Service
public class AustraliaMiddleEastServiceimpl implements IAustraliaMiddleEastService public class AustraliaMiddleEastServiceimpl implements IAustraliaMiddleEastService
{ {
@Autowired @Resource
private AustraliaMiddleEastMapper australiaMiddleEastMapper; private AustraliaMiddleEastMapper australiaMiddleEastMapper;
@Override @Override

View File

@ -6,7 +6,9 @@ import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
import com.ruoyi.system.mapper_yada.GlobalTypeMapper; import com.ruoyi.system.mapper_yada.GlobalTypeMapper;
import com.ruoyi.system.service_yada.IGlobalTypeService; import com.ruoyi.system.service_yada.IGlobalTypeService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
@ -14,9 +16,10 @@ import java.util.List;
* @Author: JinSheng Song * @Author: JinSheng Song
* @Date: 2022/5/11 11:47 * @Date: 2022/5/11 11:47
*/ */
@Service
public class GlobalTypeServiceimpl implements IGlobalTypeService { public class GlobalTypeServiceimpl implements IGlobalTypeService {
@Autowired @Resource
private GlobalTypeMapper typeMapper; private GlobalTypeMapper typeMapper;

View File

@ -6,7 +6,9 @@ import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
import com.ruoyi.system.mapper_yada.OceanTemperatureMapper; import com.ruoyi.system.mapper_yada.OceanTemperatureMapper;
import com.ruoyi.system.service_yada.IOceanTemperatureService; import com.ruoyi.system.service_yada.IOceanTemperatureService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
@ -14,9 +16,10 @@ import java.util.List;
* @Author: JinSheng Song * @Author: JinSheng Song
* @Date: 2022/5/11 11:47 * @Date: 2022/5/11 11:47
*/ */
@Service
public class OceanTemperatureServiceimpl implements IOceanTemperatureService { public class OceanTemperatureServiceimpl implements IOceanTemperatureService {
@Autowired @Resource
private OceanTemperatureMapper oceanMapper; private OceanTemperatureMapper oceanMapper;

View File

@ -4,7 +4,9 @@ import com.ruoyi.system.mapper_yada.RegionVGIMapper;
import com.ruoyi.system.service_yada.IRegionVGIService; import com.ruoyi.system.service_yada.IRegionVGIService;
import com.ruoyi.system.domain_yada.RegionVGIVO; import com.ruoyi.system.domain_yada.RegionVGIVO;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
@ -12,9 +14,10 @@ import java.util.List;
* @Author: JinSheng Song * @Author: JinSheng Song
* @Date: 2022/5/11 11:45 * @Date: 2022/5/11 11:45
*/ */
@Service
public class RegionVGIServiceimpl implements IRegionVGIService { public class RegionVGIServiceimpl implements IRegionVGIService {
@Autowired @Resource
private RegionVGIMapper vgiMapper; private RegionVGIMapper vgiMapper;
@Override @Override

View File

@ -6,7 +6,9 @@ import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
import com.ruoyi.system.mapper_yada.RegionalSystemMapper; import com.ruoyi.system.mapper_yada.RegionalSystemMapper;
import com.ruoyi.system.service_yada.IRegionalSystemService; import com.ruoyi.system.service_yada.IRegionalSystemService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
@ -14,9 +16,10 @@ import java.util.List;
* @Author: JinSheng Song * @Author: JinSheng Song
* @Date: 2022/5/11 11:46 * @Date: 2022/5/11 11:46
*/ */
@Service
public class RegionalSystemServiceimpl implements IRegionalSystemService { public class RegionalSystemServiceimpl implements IRegionalSystemService {
@Autowired @Resource
private RegionalSystemMapper Regional; private RegionalSystemMapper Regional;

View File

@ -5,7 +5,9 @@ import com.ruoyi.system.mapper_yada.AorestCoverageMapper;
import com.ruoyi.system.mapper_yada.UrbanMapper; import com.ruoyi.system.mapper_yada.UrbanMapper;
import com.ruoyi.system.service_yada.IUrbanService; import com.ruoyi.system.service_yada.IUrbanService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
@ -13,9 +15,10 @@ import java.util.List;
* @Author: JinSheng Song * @Author: JinSheng Song
* @Date: 2022/5/11 11:49 * @Date: 2022/5/11 11:49
*/ */
@Service
public class UrbanServiceimpl implements IUrbanService { public class UrbanServiceimpl implements IUrbanService {
@Autowired @Resource
private UrbanMapper urbanMapper; private UrbanMapper urbanMapper;
@Override @Override

View File

@ -6,7 +6,9 @@ import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
import com.ruoyi.system.mapper_yada.VegetationCoverageMapper; import com.ruoyi.system.mapper_yada.VegetationCoverageMapper;
import com.ruoyi.system.service_yada.IVegetationCoverageService; import com.ruoyi.system.service_yada.IVegetationCoverageService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
@ -14,10 +16,11 @@ import java.util.List;
* @Author: JinSheng Song * @Author: JinSheng Song
* @Date: 2022/5/11 11:45 * @Date: 2022/5/11 11:45
*/ */
@Service
public class VegetationCoverageServiceimpl implements IVegetationCoverageService { public class VegetationCoverageServiceimpl implements IVegetationCoverageService {
@Autowired @Resource
private VegetationCoverageMapper coverageMapper; private VegetationCoverageMapper coverageMapper;