From a50ce903357a9c7590717b70b105ac376749c77e Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 23 三月 2023 13:19:10 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/service/data/FmeService.java | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/lf/server/service/data/FmeService.java b/src/main/java/com/lf/server/service/data/FmeService.java index 69ad926..5e58ebb 100644 --- a/src/main/java/com/lf/server/service/data/FmeService.java +++ b/src/main/java/com/lf/server/service/data/FmeService.java @@ -3,6 +3,7 @@ import com.lf.server.entity.ctrl.FmeReqEntity; import com.lf.server.entity.ctrl.NameValueEntity; import com.lf.server.entity.data.MetaFileEntity; +import com.lf.server.entity.data.PublishEntity; import com.lf.server.helper.RestHelper; import com.lf.server.helper.StringHelper; import com.lf.server.helper.WebHelper; @@ -238,6 +239,61 @@ } /** + * 14.CRDS骞冲彴浜や粯 + */ + public String crdsPackaging(String dirCode, String major, String isCut, HttpServletRequest req) { + // datax/task/run/CRDS骞冲彴浜や粯_娴嬭瘯 + String url = getUrl("datax/task/run/CRDS骞冲彴浜や粯_code娴嬭瘯", req); + + List<NameValueEntity> list = getKeyValues("CRDS骞冲彴浜や粯"); + list.add(new NameValueEntity("S_FFXMMC", dirCode)); + list.add(new NameValueEntity("MBZY", major)); + list.add(new NameValueEntity("P_WBFW", isCut)); + + return RestHelper.postForRest(url, list); + } + + /** + * 鏈嶅姟娉ㄥ唽 + */ + 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)); + + return RestHelper.postForRest(url, list); + } + + /** + * 鏈嶅姟鐢宠 + */ + public String serverApply(String id, Integer pubid, HttpServletRequest req) { + String url = getUrl("resource/res/request", req) + "&resourceid=" + id; + + List<NameValueEntity> list = new ArrayList<>(); + list.add(new NameValueEntity("reason", "娉ㄥ唽")); + list.add(new NameValueEntity("serialnum", pubid.toString())); + + return RestHelper.postForRest(url, list); + } + + /** + * 鍒犻櫎璧勬簮 + */ + public void deleteRes(String id, HttpServletRequest req) { + String url = getUrl("resource/res/hashid", req) + "&hashid=" + id; + + RestHelper.deleteForRest(url); + } + + /** * 鑾峰彇Url */ public String getUrl(String subUrl, HttpServletRequest req) { -- Gitblit v1.9.3