|
|
@@ -307,13 +307,14 @@ public class HwPlatformController {
|
|
|
*/
|
|
|
@GetMapping(value = "/applicationSubContractorList")
|
|
|
public Result<Object> applicationSubContractorListNew(@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
- @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
|
+ String accessToken = OauthTokenUtils.getDayAccessToken();
|
|
|
String requestUrl = OauthApi.applicationSubcontractorList;
|
|
|
Map<String, Object> parameters = new HashMap<>();
|
|
|
parameters.put("pageNo", pageNo);
|
|
|
parameters.put("pageSize", pageSize);
|
|
|
String biz_content = CryptTool.encode(JSONObject.toJSONString(parameters));
|
|
|
- JSONObject jsonObject = OauthTokenUtils.doRequest(requestUrl, HttpsContants.POST, biz_content, "");
|
|
|
+ JSONObject jsonObject = OauthTokenUtils.doRequest(requestUrl, HttpsContants.POST, biz_content, accessToken);
|
|
|
log.info("jsonObject===={}", jsonObject);
|
|
|
if (jsonObject != null) {
|
|
|
if (jsonObject.getBoolean("success")) {
|