|
@@ -4,6 +4,7 @@ import cn.cslg.report.common.core.base.Constants;
|
|
|
import cn.cslg.report.common.model.vo.PatentVO;
|
|
|
import cn.cslg.report.common.utils.LogExceptionUtil;
|
|
|
import cn.cslg.report.common.utils.Response;
|
|
|
+import cn.cslg.report.common.utils.SecurityUtils.LoginUtils;
|
|
|
import cn.cslg.report.entity.SysDictItem;
|
|
|
import cn.cslg.report.entity.asso.AssoTaskPersonel;
|
|
|
import cn.cslg.report.mapper.AssoTaskPersonelMapper;
|
|
@@ -36,7 +37,8 @@ import java.util.Objects;
|
|
|
@Slf4j
|
|
|
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
|
|
|
public class AssoTaskPersonelService extends ServiceImpl<AssoTaskPersonelMapper, AssoTaskPersonel> {
|
|
|
-// public final AssoTaskPersonelMapper assoTaskPersonelMapper ;
|
|
|
+ public final AssoTaskPersonelMapper assoTaskPersonelMapper ;
|
|
|
+// public final LoginUtils loginUtils;
|
|
|
public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");
|
|
|
@Value("${PCSUrl}")
|
|
|
private String PCSUrl;
|
|
@@ -51,19 +53,19 @@ public class AssoTaskPersonelService extends ServiceImpl<AssoTaskPersonelMapper,
|
|
|
return Response.success();
|
|
|
}
|
|
|
public String pagination(int personelId , int state, int taskId,int location)throws IOException{
|
|
|
- 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();
|
|
|
+
|
|
|
+ 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();
|
|
|
|
|
|
}
|
|
|
|