二类表三类表查询
This commit is contained in:
@@ -56,7 +56,7 @@ public class StatisticsController {
|
|||||||
List<T1sub1DTO> data = attrService.getT1sub1(database, id);
|
List<T1sub1DTO> data = attrService.getT1sub1(database, id);
|
||||||
return ApiResponse.success(data);
|
return ApiResponse.success(data);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return ApiResponse.error("查询小班属性失败:" + e.getMessage());
|
return ApiResponse.error("查询样地属性失败:" + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,11 +71,309 @@ public class StatisticsController {
|
|||||||
List<T1sub2DTO> data = attrService.getT1sub2(database, id);
|
List<T1sub2DTO> data = attrService.getT1sub2(database, id);
|
||||||
return ApiResponse.success(data);
|
return ApiResponse.success(data);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return ApiResponse.error("查询小班属性失败:" + e.getMessage());
|
return ApiResponse.error("查询样木属性失败:" + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub4 幼树样方
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub4内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub4")
|
||||||
|
public ApiResponse<List<T1sub4DTO>> getT1sub4(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub4DTO> data = attrService.getT1sub4(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询幼树样方失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub6 下木样方
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub6内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub6")
|
||||||
|
public ApiResponse<List<T1sub6DTO>> getT1sub6(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub6DTO> data = attrService.getT1sub6(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询下木样方失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub8 未成林样方
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub8内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub8")
|
||||||
|
public ApiResponse<List<T1sub8DTO>> getT1sub8(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub8DTO> data = attrService.getT1sub8(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询未成林样方失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub12 经济林样方
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub12内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub12")
|
||||||
|
public ApiResponse<List<T1sub12DTO>> getT1sub12(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub12DTO> data = attrService.getT1sub12(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询经济林样方失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub201 灌木样方
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub201内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub201")
|
||||||
|
public ApiResponse<List<T1sub201DTO>> getT1sub201(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub201DTO> data = attrService.getT1sub201(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询灌木样方失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub202 藤本样方
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub202内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub202")
|
||||||
|
public ApiResponse<List<T1sub202DTO>> getT1sub202(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub202DTO> data = attrService.getT1sub202(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询藤本样方失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub203 草本样方
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub203内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub203")
|
||||||
|
public ApiResponse<List<T1sub203DTO>> getT1sub203(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub203DTO> data = attrService.getT1sub203(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询草本样方失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub204 地被样方
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub204内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub204")
|
||||||
|
public ApiResponse<List<T1sub204DTO>> getT1sub204(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub204DTO> data = attrService.getT1sub204(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询地被样方失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub25 目测项目表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub25内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub25")
|
||||||
|
public ApiResponse<List<T1sub25DTO>> getT1sub25(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub25DTO> data = attrService.getT1sub25(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询目测项目表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t3sub 散生单木表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t3sub内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t3sub")
|
||||||
|
public ApiResponse<List<T3subDTO>> getT3sub(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T3subDTO> data = attrService.getT3sub(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询散生单木表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t4sub 四旁树单木表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t4sub内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t4sub")
|
||||||
|
public ApiResponse<List<T4subDTO>> getT4sub(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T4subDTO> data = attrService.getT4sub(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询四旁树单木表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub5 幼树表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub5内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub5")
|
||||||
|
public ApiResponse<List<T1sub5DTO>> getT1sub5(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub5DTO> data = attrService.getT1sub5(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询幼树表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub7 下木表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub7内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub7")
|
||||||
|
public ApiResponse<List<T1sub7DTO>> getT1sub7(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub7DTO> data = attrService.getT1sub7(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询下木表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub9 未成林表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub9内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub9")
|
||||||
|
public ApiResponse<List<T1sub9DTO>> getT1sub9(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub9DTO> data = attrService.getT1sub9(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询未成林表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub13 经济树种表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub13内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub13")
|
||||||
|
public ApiResponse<List<T1sub13DTO>> getT1sub13(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub13DTO> data = attrService.getT1sub13(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询经济树种表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub21 灌木调查表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub21内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub21")
|
||||||
|
public ApiResponse<List<T1sub21DTO>> getT1sub21(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub21DTO> data = attrService.getT1sub21(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询灌木调查表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub22 藤本调查表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub22内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub22")
|
||||||
|
public ApiResponse<List<T1sub22DTO>> getT1sub22(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub22DTO> data = attrService.getT1sub22(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询藤本调查表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub23 草本调查表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub23内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub23")
|
||||||
|
public ApiResponse<List<T1sub23DTO>> getT1sub23(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub23DTO> data = attrService.getT1sub23(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询草本调查表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub24 地被调查表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub24内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub24")
|
||||||
|
public ApiResponse<List<T1sub24DTO>> getT1sub24(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub24DTO> data = attrService.getT1sub24(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询地被调查表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* t1sub251 目测单项表
|
||||||
|
* 入参:database_name+ID
|
||||||
|
* 出参:t1sub251内所有值
|
||||||
|
*/
|
||||||
|
@GetMapping("/t1sub251")
|
||||||
|
public ApiResponse<List<T1sub251DTO>> getT1sub251(@RequestParam String database, @RequestParam String id) {
|
||||||
|
try {
|
||||||
|
List<T1sub251DTO> data = attrService.getT1sub251(database, id);
|
||||||
|
return ApiResponse.success(data);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ApiResponse.error("查询目测单项表失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按日期返回已完成的小班数和样地数
|
* 按日期返回已完成的小班数和样地数
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import lombok.AllArgsConstructor;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package com.whu.edu.LyStatistic.MapLyStatistic.Mapper;
|
package com.whu.edu.LyStatistic.MapLyStatistic.Mapper;
|
||||||
import com.whu.edu.LyStatistic.MapLyStatistic.Dto.PlotAttrDTO;
|
import com.whu.edu.LyStatistic.MapLyStatistic.Dto.*;
|
||||||
import com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub1DTO;
|
|
||||||
import com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub2DTO;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
@@ -17,4 +15,43 @@ public interface AttrMapper {
|
|||||||
List<String> findMediaPaths(@Param("id") String id,
|
List<String> findMediaPaths(@Param("id") String id,
|
||||||
@Param("databaseName") String databaseName,
|
@Param("databaseName") String databaseName,
|
||||||
@Param("table") String table);
|
@Param("table") String table);
|
||||||
|
List<T1sub4DTO> findT1sub4(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub6DTO> findT1sub6(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub8DTO> findT1sub8(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub12DTO> findT1sub12(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub201DTO> findT1sub201(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub202DTO> findT1sub202(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub203DTO> findT1sub203(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub204DTO> findT1sub204(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub25DTO> findT1sub25(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T3subDTO> findT3sub(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T4subDTO> findT4sub(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub5DTO> findT1sub5(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub7DTO> findT1sub7(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub9DTO> findT1sub9(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub13DTO> findT1sub13(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub21DTO> findT1sub21(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub22DTO> findT1sub22(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub23DTO> findT1sub23(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub24DTO> findT1sub24(@Param("database") String database, @Param("id") String id);
|
||||||
|
|
||||||
|
List<T1sub251DTO> findT1sub251(@Param("database") String database, @Param("id") String id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package com.whu.edu.LyStatistic.MapLyStatistic.Service;
|
package com.whu.edu.LyStatistic.MapLyStatistic.Service;
|
||||||
|
|
||||||
import com.whu.edu.LyStatistic.MapLyStatistic.Dto.PlotAttrDTO;
|
import com.whu.edu.LyStatistic.MapLyStatistic.Dto.*;
|
||||||
import com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub1DTO;
|
|
||||||
import com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub2DTO;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.whu.edu.LyStatistic.MapLyStatistic.Mapper.AttrMapper;
|
import com.whu.edu.LyStatistic.MapLyStatistic.Mapper.AttrMapper;
|
||||||
@@ -65,4 +63,164 @@ public class AttrService {
|
|||||||
}
|
}
|
||||||
return schema;
|
return schema;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<T1sub4DTO> getT1sub4(String database, String id){
|
||||||
|
List<T1sub4DTO> schema = attrMapper.findT1sub4(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的幼树样方所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub6DTO> getT1sub6(String database, String id){
|
||||||
|
List<T1sub6DTO> schema = attrMapper.findT1sub6(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的下木样方所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub8DTO> getT1sub8(String database, String id){
|
||||||
|
List<T1sub8DTO> schema = attrMapper.findT1sub8(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的未成林样方所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub12DTO> getT1sub12(String database, String id){
|
||||||
|
List<T1sub12DTO> schema = attrMapper.findT1sub12(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的经济林样方所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub201DTO> getT1sub201(String database, String id){
|
||||||
|
List<T1sub201DTO> schema = attrMapper.findT1sub201(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的灌木样方所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub202DTO> getT1sub202(String database, String id){
|
||||||
|
List<T1sub202DTO> schema = attrMapper.findT1sub202(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的藤本样方所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub203DTO> getT1sub203(String database, String id){
|
||||||
|
List<T1sub203DTO> schema = attrMapper.findT1sub203(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的草本样方所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub204DTO> getT1sub204(String database, String id){
|
||||||
|
List<T1sub204DTO> schema = attrMapper.findT1sub204(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的地被样方所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub25DTO> getT1sub25(String database, String id){
|
||||||
|
List<T1sub25DTO> schema = attrMapper.findT1sub25(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的目测项目表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T3subDTO> getT3sub(String database, String id){
|
||||||
|
List<T3subDTO> schema = attrMapper.findT3sub(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的散生单木表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T4subDTO> getT4sub(String database, String id){
|
||||||
|
List<T4subDTO> schema = attrMapper.findT4sub(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的四旁树单木表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub5DTO> getT1sub5(String database, String id){
|
||||||
|
List<T1sub5DTO> schema = attrMapper.findT1sub5(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的幼树表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub7DTO> getT1sub7(String database, String id){
|
||||||
|
List<T1sub7DTO> schema = attrMapper.findT1sub7(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的下木表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub9DTO> getT1sub9(String database, String id){
|
||||||
|
List<T1sub9DTO> schema = attrMapper.findT1sub9(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的未成林表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub13DTO> getT1sub13(String database, String id){
|
||||||
|
List<T1sub13DTO> schema = attrMapper.findT1sub13(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的经济树种表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub21DTO> getT1sub21(String database, String id){
|
||||||
|
List<T1sub21DTO> schema = attrMapper.findT1sub21(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的灌木调查表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub22DTO> getT1sub22(String database, String id){
|
||||||
|
List<T1sub22DTO> schema = attrMapper.findT1sub22(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的藤本调查表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub23DTO> getT1sub23(String database, String id){
|
||||||
|
List<T1sub23DTO> schema = attrMapper.findT1sub23(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的草本调查表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub24DTO> getT1sub24(String database, String id){
|
||||||
|
List<T1sub24DTO> schema = attrMapper.findT1sub24(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的地被调查表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<T1sub251DTO> getT1sub251(String database, String id){
|
||||||
|
List<T1sub251DTO> schema = attrMapper.findT1sub251(database, id);
|
||||||
|
if (schema == null) {
|
||||||
|
throw new RuntimeException("未找到对应的目测单项表所在任务 schema");
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,4 +31,124 @@
|
|||||||
WHERE database_name = #{database} AND "parentID" = #{id}
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub4" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub4DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub4_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub6" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub6DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub6_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub8" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub8DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub8_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub12" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub12DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub12_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub201" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub201DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub201_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub202" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub202DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub202_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub203" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub203DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub203_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub204" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub204DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub204_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub25" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub25DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub25_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT3sub" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T3subDTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t3sub_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT4sub" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T4subDTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t4sub_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub5" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub5DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub5_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub7" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub7DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub7_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub9" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub9DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub9_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub13" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub13DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub13_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub21" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub21DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub21_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub22" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub22DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub22_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub23" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub23DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub23_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub24" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub24DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub24_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="findT1sub251" resultType="com.whu.edu.LyStatistic.MapLyStatistic.Dto.T1sub251DTO">
|
||||||
|
SELECT *
|
||||||
|
FROM merged.t1sub251_merged
|
||||||
|
WHERE database_name = #{database} AND "parentID" = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user