|
|
@@ -35,6 +35,7 @@ import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.Objects;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
@@ -226,7 +227,7 @@ public class CompanyFactory {
|
|
|
//设置归属信息
|
|
|
HttpResult<PtlAgreementAttribution> agreementAttribution = platformClient.getAgreementAttribution(clauseDataVo.getOrder()
|
|
|
.getAgreementId());
|
|
|
- AssertionUtils.isFail(agreementAttribution.getCode() == 500, "获取协议属性失败");
|
|
|
+ AssertionUtils.isFail(agreementAttribution.getCode() == 500, Objects.toString(agreementAttribution.getMsg(),"获取协议信息异常"));
|
|
|
Map<String, String> fieldMap = agreementAttribution.getData().getFields().stream()
|
|
|
.map(obj -> new JSONObject((Map<String, Object>) obj)) // 转换为 JSONObject
|
|
|
.collect(Collectors.toMap(
|