|
@@ -2720,8 +2720,10 @@ public class WeiXinCorpController {
|
|
|
String paidCorpId = jsonObject.getString("PaidCorpId");
|
|
|
WxCorpInfo wxCorpInfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("corpid", paidCorpId));
|
|
|
Company company = companyMapper.selectById(wxCorpInfo.getCompanyId());
|
|
|
+ System.err.println("版本变更的公司信息为:");
|
|
|
+ System.err.println(wxCorpInfo.toString());
|
|
|
JSONObject map = new JSONObject();
|
|
|
- map.put("auth_corpid",corpId);
|
|
|
+ map.put("auth_corpid",wxCorpInfo.getCorpid());
|
|
|
map.put("permanent_code",wxCorpInfo.getPermanentCode());
|
|
|
HttpEntity<JSONObject> detailEntity = new HttpEntity<>(map, headers);
|
|
|
ResponseEntity<String> detailResponseEntity = restTemplate.postForEntity(url, detailEntity, String.class);
|
|
@@ -2769,6 +2771,7 @@ public class WeiXinCorpController {
|
|
|
break;
|
|
|
}
|
|
|
companyMapper.updateById(company);
|
|
|
+ System.out.println(company.getCompanyName()+"已成功变更版本,版本号为:"+edition_id);
|
|
|
}else {
|
|
|
System.out.println("++++++++++++++++++++++"+"版本变更失败!"+"++++++++++++++++++++++++");
|
|
|
return false;
|