suerprisePlus
2024-09-14 0cf13d9df73e8e9befa36236756ef02dd5f60e94
src/main/java/com/yb/service/XzService.java
@@ -11,9 +11,7 @@
import org.springframework.stereotype.Service;
import org.locationtech.jts.geom.*;
import org.locationtech.jts.operation.buffer.BufferOp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import java.util.*;
import java.util.HashMap;
@@ -56,6 +54,9 @@
        JSONObject jsonObject = JSON.parseObject(jsonString1);
        JSONObject dataObjject = jsonObject.getJSONObject("data");
        JSONArray dataArray = dataObjject.getJSONArray("items");
        if(dataArray.size()<=0){
            return null;
        }
        return dataArray.getJSONObject(0).toString();