05a0488c by xu

Merge remote-tracking branch 'origin/develop' into develop

2 parents 22eb9cdc ea241076
......@@ -61,6 +61,6 @@ public class EnterpriseRegisterRQVO {
private EnterpriseSubordinateRQVO extendInfo;
@Schema(title = "法人用户身份附件信息")
private AttachmentCommonVO attachInfo;
private List<AttachmentCommonVO> attachInfos;
}
\ No newline at end of file
......
......@@ -293,13 +293,17 @@ public class DataPortServiceImpl implements DataPortService {
if (ObjectUtils.isNotEmpty(authorizationLetter)) {
JSONArray jsonArray = JSON.parseArray(authorizationLetter);
if (ObjectUtils.isNotEmpty(jsonArray)) {
JSONObject jsonObject = jsonArray.getJSONObject(0);
AttachmentCommonVO attachInfo = new AttachmentCommonVO();
attachInfo.setAttachType("授权委托书");
String name = jsonObject.getString("name");
attachInfo.setAttachName(StringUtils.isNotEmpty(name) ? name.split("\\.")[0] : name);
attachInfo.setVerifyUrl(jsonObject.getString("url"));
enterpriseRegisterRQVO.setAttachInfo(attachInfo);
List<AttachmentCommonVO> attachInfos = new ArrayList<>();
for (int i = 0; i < jsonArray.size(); i++) {
JSONObject jsonObject = jsonArray.getJSONObject(i);
AttachmentCommonVO attachInfo = new AttachmentCommonVO();
attachInfo.setAttachType("授权委托书");
String name = jsonObject.getString("name");
attachInfo.setAttachName(StringUtils.isNotEmpty(name) ? name.split("\\.")[0] : name);
attachInfo.setVerifyUrl(jsonObject.getString("url"));
attachInfos.add(attachInfo);
}
enterpriseRegisterRQVO.setAttachInfos(attachInfos);
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!