|
@@ -36,7 +36,7 @@ import java.util.Objects;
|
|
|
@Slf4j
|
|
|
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
|
|
|
public class AssoTaskPersonelService extends ServiceImpl<AssoTaskPersonelMapper, AssoTaskPersonel> {
|
|
|
- public final AssoTaskPersonelMapper assoTaskPersonelMapper ;
|
|
|
+// public final AssoTaskPersonelMapper assoTaskPersonelMapper ;
|
|
|
public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");
|
|
|
@Value("${PCSUrl}")
|
|
|
private String PCSUrl;
|
|
@@ -51,18 +51,19 @@ public class AssoTaskPersonelService extends ServiceImpl<AssoTaskPersonelMapper,
|
|
|
return Response.success();
|
|
|
}
|
|
|
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("startNumber",location);
|
|
|
- JSONObject json = new JSONObject(map);
|
|
|
- RequestBody requestBody =RequestBody.create(JSON,String.valueOf(json));
|
|
|
- OkHttpClient okHttpClient = new OkHttpClient();
|
|
|
- Request request = new Request.Builder()
|
|
|
- .url(PASUrl + "/api/v2/patent/getPagination")
|
|
|
- .post(requestBody)
|
|
|
- .build();
|
|
|
- return Objects.requireNonNull(okHttpClient.newCall(request).execute().body()).string();
|
|
|
+ return null;
|
|
|
+// List<String> patentNumber = assoTaskPersonelMapper.getPatentNumber(personelId, state, taskId);
|
|
|
+// Map<String,Object> map =new HashMap<>();
|
|
|
+//// map.put("patentNos",patentNumber);
|
|
|
+// map.put("startNumber",location);
|
|
|
+// JSONObject json = new JSONObject(map);
|
|
|
+// RequestBody requestBody =RequestBody.create(JSON,String.valueOf(json));
|
|
|
+// OkHttpClient okHttpClient = new OkHttpClient();
|
|
|
+// Request request = new Request.Builder()
|
|
|
+// .url(PASUrl + "/api/v2/patent/getPagination")
|
|
|
+// .post(requestBody)
|
|
|
+// .build();
|
|
|
+// return Objects.requireNonNull(okHttpClient.newCall(request).execute().body()).string();
|
|
|
|
|
|
}
|
|
|
|