|
@@ -1,6 +1,7 @@
|
|
|
package com.onemap.apply.service.impl.sbjk;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.alibaba.fastjson2.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.onemap.apply.domain.sbjk.XzczghcgsbDTO;
|
|
|
import com.onemap.apply.mapper.sbjk.XzczghcgsbMapper;
|
|
@@ -46,6 +47,42 @@ public class SbSearchServiceImpl implements SbSearchService {
|
|
|
private String landTaskStatusURI;
|
|
|
@Value("${cgbcxjk.reportDownload}")
|
|
|
private String reportDownloadURI;
|
|
|
+ @Value("${cgbcxjk.landGetRevisePage}")
|
|
|
+ private String landGetRevisePageURI;
|
|
|
+ @Value("${cgbcxjk.reuploadThirdpartyRevise}")
|
|
|
+ private String reuploadThirdpartyReviseURI;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public JSONObject reuploadThirdpartyReviseData(MultipartFile file, String instid) {
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("instId", instid);
|
|
|
+ jsonObject.put("file", file);
|
|
|
+ return getRequestFileData(reuploadThirdpartyReviseURI, jsonObject);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public WebResult reuploadThirdpartyRevise(MultipartFile file, String instId) {
|
|
|
+ WebResult res = new WebResult();
|
|
|
+ res.put("code" , 200);
|
|
|
+ res.put("data" , "");
|
|
|
+ res.put("msg" , "正常");
|
|
|
+ res.put("success" , true);
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public JSONObject getLandGetRevisePageData(Integer planType, Integer current, Integer size, String divisionCode, String subject) {
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("current", current);
|
|
|
+ jsonObject.put("size", size);
|
|
|
+ if (StringUtils.isNotEmpty(subject)) {
|
|
|
+ jsonObject.put("title", subject);
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(divisionCode)) {
|
|
|
+ jsonObject.put("divisionCode", divisionCode);
|
|
|
+ }
|
|
|
+ return getRequestData(landGetRevisePageURI, jsonObject);
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public JSONObject getLandMyAttendsData(Integer planType, Integer current, Integer size, String divisionCode, String subject) {
|
|
@@ -138,6 +175,27 @@ public class SbSearchServiceImpl implements SbSearchService {
|
|
|
return WebResult.success(map);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public WebResult landGetRevisePage(Integer planType, Integer current, Integer size, String divisionCode) {
|
|
|
+ List<Map> res = new ArrayList<>();
|
|
|
+
|
|
|
+ for (int i = 0; i < size; i++) {
|
|
|
+ Map<String, Object> object = new HashMap<>();
|
|
|
+ object.put("nodeName", "用地审查");
|
|
|
+ object.put("solId", "1119598296057454592");
|
|
|
+ object.put("createTime", "2023-10-13 14:40:25");
|
|
|
+ object.put("executor", "admin");
|
|
|
+ object.put("id", "20000043560001");
|
|
|
+ object.put("title", "xxxxx国土空间总体规划");
|
|
|
+ object.put("instId", "1163778751483928576" + i);
|
|
|
+ res.add(object);
|
|
|
+ }
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put("records", res);
|
|
|
+ map.put("total", 999);
|
|
|
+ return WebResult.success(map);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public WebResult landTaskStatus(String id, String instId) {
|
|
|
List<Map> res = new ArrayList<>();
|
|
@@ -238,6 +296,25 @@ public class SbSearchServiceImpl implements SbSearchService {
|
|
|
return reStrMd5;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 请求数据
|
|
|
+ *
|
|
|
+ * @param requestURI 请求地址
|
|
|
+ * @param params 请求参数
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public JSONObject getRequestFileData(String requestURI, Map<String, Object> params) {
|
|
|
+ String token = getAccessToken();
|
|
|
+ if (StringUtils.isEmpty(token)) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ JSONObject reStrMd5 = RInterfaceUtil.postRemote(token, requestURI, null, params);
|
|
|
+ System.out.println("请求地址:" + requestURI);
|
|
|
+// System.out.println("请求参数:" + JSON.toJSONString(params));
|
|
|
+ System.out.println("请求结果:" + reStrMd5.toJSONString());
|
|
|
+ return reStrMd5;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 调用接口统一获取token
|
|
|
*
|