Compare commits
No commits in common. "11b8a3db44e17da685c35e423c54e8619e509df1" and "43ee95a198fd259c420f6370f4035895bfd4af3c" have entirely different histories.
11b8a3db44
...
43ee95a198
@ -18,9 +18,17 @@ public class RuoYiApplication
|
||||
{
|
||||
// System.setProperty("spring.devtools.restart.enabled", "false");
|
||||
SpringApplication.run(RuoYiApplication.class, args);
|
||||
System.out.println();
|
||||
System.out.println(" --->>>启动成功!<<<---");
|
||||
|
||||
System.out.println(" --->>>启动成功!<<<---");
|
||||
// System.out.println("(♥◠‿◠)ノ゙ ლ(´ڡ`ლ)゙ \n" +
|
||||
// " .-------. ____ __ \n" +
|
||||
// " | _ _ \\ \\ \\ / / \n" +
|
||||
// " | ( ' ) | \\ _. / ' \n" +
|
||||
// " |(_ o _) / _( )_ .' \n" +
|
||||
// " | (_,_).' __ ___(_ o _)' \n" +
|
||||
// " | |\\ \\ | || |(_,_)' \n" +
|
||||
// " | | \\ `' /| `-' / \n" +
|
||||
// " | | \\ / \\ / \n" +
|
||||
// " ''-' `'-' `-..-' ");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -47,9 +47,9 @@ public class AorestCoverageController {
|
||||
*/
|
||||
@RequestMapping(value = "/selectAorestCoverage",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult selectAorestCoverage()
|
||||
public AjaxResult selectAorestCoverage( @RequestBody AorestCoverageVO coverageVO)
|
||||
{
|
||||
List<AorestCoverageVO> eastVOSList= service.selectAorestCoverage();
|
||||
List<AorestCoverageVO> eastVOSList= service.selectAorestCoverage(coverageVO.getRegion(),coverageVO.getParticularYear());
|
||||
return AjaxResult.success(eastVOSList);
|
||||
}
|
||||
|
||||
|
@ -36,9 +36,9 @@ public class RegionVGIController
|
||||
*/
|
||||
@RequestMapping(value = "/SelectRegion",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult SelectRegion()
|
||||
public AjaxResult SelectRegion(@RequestBody RegionVGIVO regionVGIVO)
|
||||
{
|
||||
List<RegionVGIVO> vgivost= regionVGIService.selectRegion();
|
||||
List<RegionVGIVO> vgivost= regionVGIService.selectRegion(regionVGIVO.getTypeName(),regionVGIVO.getParticularYear());
|
||||
return AjaxResult.success(vgivost);
|
||||
}
|
||||
|
||||
|
@ -9,9 +9,16 @@ import com.ruoyi.system.service_yada.IRegionalSystemService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@ -31,9 +38,9 @@ public class RegionalSystemController {
|
||||
*/
|
||||
@RequestMapping(value = "/selectRegional",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult selectRegional(@RequestParam("region") String region)
|
||||
public AjaxResult selectRegional(@RequestBody RegionalSystemVO response)
|
||||
{
|
||||
List<RegionalSystemVO> eastVOSList= systemService.selectRegional(region);
|
||||
List<RegionalSystemVO> eastVOSList= systemService.selectRegional(response.getRegion(),response.getParticularYear());
|
||||
return AjaxResult.success(eastVOSList);
|
||||
}
|
||||
|
||||
@ -45,7 +52,7 @@ public class RegionalSystemController {
|
||||
@RequestMapping(value = "/DelRegional",method = {RequestMethod.DELETE})
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
||||
public AjaxResult DelRegional(@RequestParam("ID") String ID)
|
||||
public AjaxResult DelRegional(@Param("ID") String ID)
|
||||
{
|
||||
int NUM = systemService.DelRegional(ID);
|
||||
if (NUM>0)
|
||||
|
@ -45,11 +45,11 @@ public class ThematicMapController {
|
||||
@ApiResponse(code =403,message = "权限不足"),
|
||||
@ApiResponse(code =404,message = "未找到")
|
||||
})
|
||||
@RequestMapping(value = "/get/all",method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/get/all",method = {RequestMethod.GET})
|
||||
public AjaxResult selectAllThematicMap(HttpServletResponse response,@RequestBody ThematicMapDomain thematicMapDomain)
|
||||
{
|
||||
List<ThematicMapDomain> res= thematicMapService.selectAll(thematicMapDomain.getPictureType(),
|
||||
thematicMapDomain.getPictureTypeOne(),thematicMapDomain.getPictureTypeTwo());
|
||||
List<ThematicMapDomain> res= thematicMapService.selectAll(thematicMapDomain.getPictureTime(),
|
||||
thematicMapDomain.getPictureZh());
|
||||
return AjaxResult.success(res);
|
||||
}
|
||||
/**
|
||||
|
@ -33,13 +33,14 @@ public class VegetationCoverageController {
|
||||
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response 响应头
|
||||
* @return 参数类
|
||||
*/
|
||||
@RequestMapping(value = "/selectVegetation",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult selectVegetation()
|
||||
public AjaxResult selectVegetation(HttpServletResponse response,@RequestBody VegetationCoverageVO coverageVO)
|
||||
{
|
||||
List<VegetationCoverageVO> eastVOSList= coverageService.selectVegetation();
|
||||
List<VegetationCoverageVO> eastVOSList= coverageService.selectVegetation(coverageVO.getRegion(),coverageVO.getParticularYear());
|
||||
return AjaxResult.success(eastVOSList);
|
||||
}
|
||||
|
||||
|
@ -13,8 +13,8 @@ import java.util.List;
|
||||
*/
|
||||
public interface AorestCoverageMapper {
|
||||
|
||||
List<AorestCoverageVO> selectAorestCoverage(/*@Param("region") String region,
|
||||
@Param("particularYear") String particularYear*/);
|
||||
List<AorestCoverageVO> selectAorestCoverage(@Param("region") String region,
|
||||
@Param("particularYear") String particularYear);
|
||||
|
||||
Integer DelAorestCoverage(@Param("id") String id);
|
||||
|
||||
|
@ -11,8 +11,8 @@ import java.util.List;
|
||||
*/
|
||||
public interface RegionVGIMapper {
|
||||
|
||||
List<RegionVGIVO> selectRegion(/*@Param("typeName") String typeName,
|
||||
@Param("particularYear") String particularYear*/);
|
||||
List<RegionVGIVO> selectRegion(@Param("typeName") String typeName,
|
||||
@Param("particularYear") String particularYear);
|
||||
|
||||
Integer DelRegion(@Param("id") String id);
|
||||
|
||||
|
@ -12,7 +12,8 @@ import java.util.List;
|
||||
*/
|
||||
public interface RegionalSystemMapper {
|
||||
|
||||
List<RegionalSystemVO> selectRegional(@Param("region") String region);
|
||||
List<RegionalSystemVO> selectRegional(@Param("region") String region,
|
||||
@Param("particularYear") String particularYear);
|
||||
|
||||
Integer DelRegional(@Param("id") String id);
|
||||
|
||||
|
@ -17,9 +17,8 @@ public interface ThematicMapMapper {
|
||||
* 获取所有专题图
|
||||
* @return
|
||||
*/
|
||||
List<ThematicMapDomain> selectAllThematicMap(@Param("pictureType") String pictureType,
|
||||
@Param("pictureTypeOne") String pictureTypeOne,
|
||||
@Param("pictureTypeTwo") String pictureTypeTwo);
|
||||
List<ThematicMapDomain> selectAllThematicMap(@Param("pictureTime") LocalDateTime pictureTime,
|
||||
@Param("pictureZh") String pictureZh);
|
||||
|
||||
/**
|
||||
* 删除专题图根据编号
|
||||
|
@ -11,8 +11,8 @@ import java.util.List;
|
||||
*/
|
||||
public interface VegetationCoverageMapper {
|
||||
|
||||
List<VegetationCoverageVO> selectVegetation(/*@Param("region") String region,
|
||||
@Param("particularYear") String particularYear*/);
|
||||
List<VegetationCoverageVO> selectVegetation(@Param("region") String region,
|
||||
@Param("particularYear") String particularYear);
|
||||
|
||||
Integer DelVegetation(@Param("id") String id);
|
||||
|
||||
|
@ -16,7 +16,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface IAorestCoverageService {
|
||||
|
||||
public List<AorestCoverageVO> selectAorestCoverage(/*String region,String particularYear*/);
|
||||
public List<AorestCoverageVO> selectAorestCoverage(String region,String particularYear);
|
||||
|
||||
public Integer DelAorestCoverage(String id);
|
||||
|
||||
|
@ -15,7 +15,7 @@ public interface IRegionVGIService {
|
||||
* 查询
|
||||
* @return
|
||||
*/
|
||||
public List<RegionVGIVO> selectRegion(/*String typeName,String particularYear*/);
|
||||
public List<RegionVGIVO> selectRegion(String typeName,String particularYear);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
|
@ -13,7 +13,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface IRegionalSystemService {
|
||||
|
||||
public List<RegionalSystemVO> selectRegional(String region);
|
||||
public List<RegionalSystemVO> selectRegional(String region,String particularYear);
|
||||
|
||||
public Integer DelRegional(@Param("id") String id);
|
||||
|
||||
|
@ -13,7 +13,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface IVegetationCoverageService {
|
||||
|
||||
public List<VegetationCoverageVO> selectVegetation(/*String region,String particularYear*/);
|
||||
public List<VegetationCoverageVO> selectVegetation(String region,String particularYear);
|
||||
|
||||
public Integer DelVegetation(String id);
|
||||
|
||||
|
@ -17,7 +17,7 @@ public interface ThematicMapService {
|
||||
* 获取全部专题图
|
||||
* @return
|
||||
*/
|
||||
List<ThematicMapDomain> selectAll(String pictureType,String pictureTypeOne, String pictureTypeTwo);
|
||||
List<ThematicMapDomain> selectAll(LocalDateTime pictureTime, String pictureZh);
|
||||
|
||||
/**
|
||||
* 删除专题图根据编号
|
||||
|
@ -26,8 +26,8 @@ public class AorestCoverageServiceimpl implements IAorestCoverageService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<AorestCoverageVO> selectAorestCoverage(/*String region,String particularYear*/) {
|
||||
return coverageMapper.selectAorestCoverage(/*region,particularYear*/);
|
||||
public List<AorestCoverageVO> selectAorestCoverage(String region,String particularYear) {
|
||||
return coverageMapper.selectAorestCoverage(region,particularYear);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -22,8 +22,8 @@ public class RegionVGIServiceimpl implements IRegionVGIService {
|
||||
private RegionVGIMapper vgiMapper;
|
||||
|
||||
@Override
|
||||
public List<RegionVGIVO> selectRegion(/*String typeName,String particularYear*/) {
|
||||
return vgiMapper.selectRegion(/*typeName,particularYear*/);
|
||||
public List<RegionVGIVO> selectRegion(String typeName,String particularYear) {
|
||||
return vgiMapper.selectRegion(typeName,particularYear);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -25,8 +25,8 @@ public class RegionalSystemServiceimpl implements IRegionalSystemService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<RegionalSystemVO> selectRegional(String region) {
|
||||
return Regional.selectRegional(region);
|
||||
public List<RegionalSystemVO> selectRegional(String region,String particularYear) {
|
||||
return Regional.selectRegional(region,particularYear);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -25,8 +25,8 @@ public class ThematicMapServiceImpl implements ThematicMapService {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<ThematicMapDomain> selectAll(String pictureType,String pictureTypeOne, String pictureTypeTwo){
|
||||
return thematicMapMapper.selectAllThematicMap(pictureType,pictureTypeOne,pictureTypeTwo);
|
||||
public List<ThematicMapDomain> selectAll(LocalDateTime pictureTime,String pictureZh){
|
||||
return thematicMapMapper.selectAllThematicMap(pictureTime,pictureZh);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -26,8 +26,8 @@ public class VegetationCoverageServiceimpl implements IVegetationCoverageService
|
||||
|
||||
|
||||
@Override
|
||||
public List<VegetationCoverageVO> selectVegetation(/*String region,String particularYear*/) {
|
||||
return coverageMapper.selectVegetation(/*region,particularYear*/);
|
||||
public List<VegetationCoverageVO> selectVegetation(String region,String particularYear) {
|
||||
return coverageMapper.selectVegetation(region,particularYear);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -25,13 +25,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectAorestCoverage" resultMap="RM_AorestCoverage">
|
||||
SELECT <include refid="columns"/> FROM forest_coverage
|
||||
<!-- WHERE 1=1-->
|
||||
<!-- <if test="particularYear!= null and particularYear !=''">-->
|
||||
<!-- AND particular_year = #{particularYear}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="region!= null and region !=''">-->
|
||||
<!-- AND region = #{typeName}-->
|
||||
<!-- </if>-->
|
||||
WHERE 1=1
|
||||
<if test="particularYear!= null and particularYear !=''">
|
||||
AND particular_year = #{particularYear}
|
||||
</if>
|
||||
<if test="region!= null and region !=''">
|
||||
AND region = #{typeName}
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
<delete id="DelAorestCoverage">
|
||||
|
@ -26,15 +26,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectRegion" resultMap="RM_RegionVGI">
|
||||
SELECT <include refid="columns"/> FROM region_vgi
|
||||
where particular_year='2020.0'
|
||||
|
||||
<!-- WHERE 1=1-->
|
||||
<!-- <if test="particularYear!= null and particularYear !=''">-->
|
||||
<!-- AND particular_year = #{particularYear}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="typeName!= null and typeName !=''">-->
|
||||
<!-- AND type_name = #{typeName}-->
|
||||
<!-- </if>-->
|
||||
WHERE 1=1
|
||||
<if test="particularYear!= null and particularYear !=''">
|
||||
AND particular_year = #{particularYear}
|
||||
</if>
|
||||
<if test="typeName!= null and typeName !=''">
|
||||
AND type_name = #{typeName}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="DelRegion">
|
||||
|
@ -19,13 +19,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,region,region_en,type_conversion,type_conversion_en,proportion_of_changed_areas,particular_year,created_by,created_time
|
||||
id,region,region_en,type_conversion,type_conversion_en,proportion_of_changed_areas,particular_year,createBy,createTime
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectRegional" resultMap="RM_Regional">
|
||||
SELECT <include refid="columns"/> FROM proportion_of_ecosystem_type_transfer
|
||||
WHERE 1=1
|
||||
<if test="particularYear!= null and particularYear !=''">
|
||||
AND particular_year = #{particularYear}
|
||||
</if>
|
||||
<if test="region!= null and region !=''">
|
||||
AND region = #{region}
|
||||
</if>
|
||||
|
@ -28,14 +28,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectAllThematicMap" resultMap="RM_ThematicMap">
|
||||
SELECT <include refid="columns"/> FROM thematic_map
|
||||
WHERE 1=1
|
||||
<if test="pictureType!= null and pictureType !=''">
|
||||
AND picture_type = #{pictureType}
|
||||
<if test="pictureTime!= null and pictureTime !=''">
|
||||
AND picture_time = #{pictureTime}
|
||||
</if>
|
||||
<if test="pictureTypeOne!= null and pictureTypeOne !=''">
|
||||
AND picture_type_one = #{pictureTypeOne}
|
||||
</if>
|
||||
<if test="pictureTypeTwo!= null and pictureTypeTwo !=''">
|
||||
AND picture_type_two = #{pictureTypeTwo}
|
||||
<if test="pictureZh!= null and pictureZh !=''">
|
||||
AND picture_zh = #{pictureZh}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
@ -25,13 +25,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectVegetation" resultMap="RM_Vegetation">
|
||||
SELECT <include refid="columns"/> FROM fvc_npp
|
||||
<!-- WHERE 1=1-->
|
||||
<!-- <if test="particularYear!= null and particularYear !=''">-->
|
||||
<!-- AND particular_year = #{particularYear}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="region != null and region !=''">-->
|
||||
<!-- AND region = #{region}-->
|
||||
<!-- </if>-->
|
||||
WHERE 1=1
|
||||
<if test="particularYear!= null and particularYear !=''">
|
||||
AND particular_year = #{particularYear}
|
||||
</if>
|
||||
<if test="region != null and region !=''">
|
||||
AND region = #{region}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="DelVegetation">
|
||||
|
@ -1,4 +1,3 @@
|
||||
<<<<<<< HEAD
|
||||
<template>
|
||||
<i-frame :src="url" />
|
||||
</template>
|
||||
@ -15,21 +14,3 @@ export default {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
=======
|
||||
<template>
|
||||
<i-frame :src="url" />
|
||||
</template>
|
||||
<script>
|
||||
import iFrame from "@/components/iFrame/index";
|
||||
export default {
|
||||
name: "Swagger",
|
||||
components: { iFrame },
|
||||
data() {
|
||||
return {
|
||||
// url: process.env.VUE_APP_BASE_API + "/swagger-ui/index.html"
|
||||
url: process.env.VUE_APP_BASE_API + "/doc.html"
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
>>>>>>> 43ee95a198fd259c420f6370f4035895bfd4af3c
|
||||
|
Loading…
x
Reference in New Issue
Block a user