管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-23 0c7ba7f5569fb6eb7da463fe3d4a74838ef739a3
src/main/java/com/lf/server/service/data/FmeService.java
@@ -2,6 +2,7 @@
import com.lf.server.entity.ctrl.FmeReqEntity;
import com.lf.server.entity.ctrl.NameValueEntity;
import com.lf.server.entity.ctrl.RegisterEntity;
import com.lf.server.entity.data.MetaFileEntity;
import com.lf.server.entity.data.PublishEntity;
import com.lf.server.helper.RestHelper;
@@ -9,6 +10,7 @@
import com.lf.server.helper.WebHelper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
@@ -259,16 +261,9 @@
    public String serverRegister(String name, String serverUri, String type, HttpServletRequest req) {
        String url = getUrl("resource/res/item", req);
        List<NameValueEntity> list = new ArrayList<>();
        list.add(new NameValueEntity("tags", new String[]{name}));
        list.add(new NameValueEntity("name", name));
        list.add(new NameValueEntity("address", serverUri));
        list.add(new NameValueEntity("detailUrl", serverUri));
        list.add(new NameValueEntity("type", type));
        list.add(new NameValueEntity("description", name));
        list.add(new NameValueEntity("isrequest", true));
        RegisterEntity entity = new RegisterEntity(name, serverUri, type);
        return RestHelper.postForRest(url, list);
        return RestHelper.postForRest(url, entity);
    }
    /**