|
@@ -53,14 +53,13 @@ public class AssoTaskPersonelService extends ServiceImpl<AssoTaskPersonelMapper,
|
|
|
public String pagination(int personelId , int state, int taskId,int location)throws IOException{
|
|
|
List<String> patentNumber = assoTaskPersonelMapper.getPatentNumber(personelId, state, taskId);
|
|
|
Map<String,Object> map =new HashMap<>();
|
|
|
- map.put("patentNos",patentNumber);
|
|
|
+// map.put("patentNos",patentNumber);
|
|
|
map.put("startNumber",location);
|
|
|
JSONObject json = new JSONObject(map);
|
|
|
RequestBody requestBody =RequestBody.create(JSON,String.valueOf(json));
|
|
|
-// @RequestParam("list") List<String> list,@RequestParam("n") int n,@RequestParam("p") int p
|
|
|
OkHttpClient okHttpClient = new OkHttpClient();
|
|
|
Request request = new Request.Builder()
|
|
|
- .url(PASUrl + "/api/v2/system/getPagination")
|
|
|
+ .url(PASUrl + "/api/v2/patent/getPagination")
|
|
|
.post(requestBody)
|
|
|
.build();
|
|
|
return Objects.requireNonNull(okHttpClient.newCall(request).execute().body()).string();
|