|
|
@@ -85,15 +85,15 @@ public class CpClientImpl implements CpClient {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public Map updateCpBo(String schemaCode, Map data, String userId){
|
|
|
+ public Map updateCpBo(String schemaCode, Map data, String userId) {
|
|
|
Map body = new HashMap();
|
|
|
|
|
|
- body.put("data",data);
|
|
|
- body.put("schemaCode",schemaCode);
|
|
|
- if (Strings.isNullOrEmpty(userId)){
|
|
|
- body.put("userId",cloudpivotConfig.getOperatorUserId());
|
|
|
- }else {
|
|
|
- body.put("userId",userId);
|
|
|
+ body.put("data", data);
|
|
|
+ body.put("schemaCode", schemaCode);
|
|
|
+ if (Strings.isNullOrEmpty(userId)) {
|
|
|
+ body.put("userId", cloudpivotConfig.getOperatorUserId());
|
|
|
+ } else {
|
|
|
+ body.put("userId", userId);
|
|
|
}
|
|
|
|
|
|
String s = UtilHttp.doPost(cloudpivotConfig.getRedirectUri() + "openapi/v3/bo/update", CloudpivotConfig.initTokenHeader(getCpAccessToken()), null, body);
|
|
|
@@ -151,6 +151,7 @@ public class CpClientImpl implements CpClient {
|
|
|
body.put("size",size);
|
|
|
body.put("showTotal",true);
|
|
|
|
|
|
+ System.out.println("cloudpivotConfig"+cloudpivotConfig);
|
|
|
if (Strings.isNullOrEmpty(userId)){
|
|
|
body.put("userId",cloudpivotConfig.getOperatorUserId());
|
|
|
}else {
|
|
|
@@ -239,4 +240,5 @@ public class CpClientImpl implements CpClient {
|
|
|
throw new RuntimeException("云枢接口调用失败:" + errmsg);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|