|
@@ -20,6 +20,28 @@ public class HttpAnalyseServiceImpl implements HttpAnalyseService {
|
|
|
@Resource
|
|
|
private AnalyseService analyseService;
|
|
|
|
|
|
+ public Object getHttpAnalyse(Object objectVo) {
|
|
|
+ RequestResult result = new RequestResult();
|
|
|
+ if (objectVo instanceof IntersectsTableWktVo) {
|
|
|
+ result = analyseService.rawTable((RawTableVo) objectVo);
|
|
|
+ }
|
|
|
+ if (StringUtils.isNull(result)) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ Object code = result.get("code");
|
|
|
+ Object statuscode = result.get("statuscode");
|
|
|
+ if (code == null && statuscode == null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ if (code != null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ if (statuscode != null && (Integer) statuscode != 200) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return result.get("data");
|
|
|
+ }
|
|
|
+
|
|
|
public List<String> intersectsTableWkt(IntersectsTableWktVo analyseUtilsVo) {
|
|
|
RequestResult result = analyseService.intersectsTableWkt(analyseUtilsVo);
|
|
|
if (StringUtils.isNull(result)) {
|