|
@@ -0,0 +1,91 @@
|
|
|
|
+package com.example.nngkxxdp.program.controller;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+import cn.hutool.core.util.HashUtil;
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
|
+import cn.hutool.http.HttpRequest;
|
|
|
|
+import cn.hutool.http.HttpUtil;
|
|
|
|
+import cn.hutool.json.JSONObject;
|
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
|
+import com.example.nngkxxdp.program.entity.SWorker;
|
|
|
|
+import com.example.nngkxxdp.program.entity.vo.WorkerPageVo;
|
|
|
|
+import com.example.nngkxxdp.program.service.SRepairService;
|
|
|
|
+import com.example.nngkxxdp.program.service.SWorkerService;
|
|
|
|
+import com.example.nngkxxdp.util.ConstStr;
|
|
|
|
+import com.example.nngkxxdp.util.SendUtil;
|
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
|
+import org.jsoup.internal.StringUtil;
|
|
|
|
+import org.springframework.data.domain.Page;
|
|
|
|
+import org.springframework.data.domain.PageRequest;
|
|
|
|
+import org.springframework.http.ResponseEntity;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
+
|
|
|
|
+import java.util.HashMap;
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * (SWorker)表控制层
|
|
|
|
+ *
|
|
|
|
+ * @author elis
|
|
|
|
+ * @since 2023-03-20 14:38:05
|
|
|
|
+ */
|
|
|
|
+@RestController
|
|
|
|
+@AllArgsConstructor
|
|
|
|
+@RequestMapping("official")
|
|
|
|
+public class GzwController {
|
|
|
|
+ @PostMapping("/emptyAreaList")
|
|
|
|
+ public String getAllLeader( Integer page, Integer size){
|
|
|
|
+ String s = "http://219.152.50.209:81/api/app/asLeaseDispositionIndex/emptyAreaList?page="+page+"&size="+size;
|
|
|
|
+ String post = HttpUtil.post(s, new HashMap<>());
|
|
|
|
+ System.out.println(post);
|
|
|
|
+ JSONObject entries = JSONUtil.parseObj(post);
|
|
|
|
+
|
|
|
|
+ return entries.toString() ;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("/voPage")
|
|
|
|
+ public String voPage(@RequestBody String json){
|
|
|
|
+
|
|
|
|
+ String s = "http://219.152.50.209:81/api/app/official/asLeaseDispositionInfo/voPage";
|
|
|
|
+ System.out.println(json);
|
|
|
|
+ String result2 = HttpRequest.post(s)
|
|
|
|
+ .header("Content-Type","application/json")
|
|
|
|
+ .body(json)
|
|
|
|
+ .execute().body();
|
|
|
|
+
|
|
|
|
+ System.out.println(result2);
|
|
|
|
+// JSONObject entries = JSONUtil.parseObj(post);
|
|
|
|
+
|
|
|
|
+ return result2 ;
|
|
|
|
+// return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("/info")
|
|
|
|
+ public String info(@RequestBody String json){
|
|
|
|
+ String s = "http://219.152.50.209:81/api/app/official/asLeaseDispositionInfo/getVo";
|
|
|
|
+ System.out.println(json);
|
|
|
|
+ String result2 = HttpRequest.post(s)
|
|
|
|
+ .header("Content-Type","application/json")
|
|
|
|
+ .body(json)
|
|
|
|
+ .execute().body();
|
|
|
|
+
|
|
|
|
+ System.out.println(result2);
|
|
|
|
+// JSONObject entries = JSONUtil.parseObj(post);
|
|
|
|
+
|
|
|
|
+ return result2 ;
|
|
|
|
+// return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("/contactList")
|
|
|
|
+ public String contactList(Integer page, Integer size){
|
|
|
|
+ String s = "http://219.152.50.209:81/api/app/asLeaseDispositionIndex/contactList?page="+page+"&size="+size;
|
|
|
|
+ String post = HttpUtil.post(s, new HashMap<>());
|
|
|
|
+ System.out.println(post);
|
|
|
|
+ JSONObject entries = JSONUtil.parseObj(post);
|
|
|
|
+
|
|
|
|
+ return entries.toString() ;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|