a1be11ae by xiaojie

【数据资产】

1、认证校验
1 parent f07c9996
......@@ -61,6 +61,6 @@ public class EnterpriseRegisterRQVO {
private EnterpriseSubordinateRQVO extendInfo;
@Schema(title = "法人用户身份附件信息")
private List<AttachmentCommonVO> attachInfo;
private AttachmentCommonVO attachInfo;
}
\ No newline at end of file
......
......@@ -29,10 +29,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.*;
/**
* @program: daop-projects
......@@ -225,6 +222,24 @@ public class DataPortServiceImpl implements DataPortService {
operatorSubordinateRQVO.setEnterpriseName(entity.getTenantName());
operatorSubordinateRQVO.setBusinessLicense(getName(entity.getBusinessLicenseJson()));
operatorRegisterRQVO.setExtendInfo(operatorSubordinateRQVO);
String managerPersonIdPhotoJson = entity.getManagerPersonIdPhotoJson();
if (ObjectUtils.isNotEmpty(managerPersonIdPhotoJson)) {
JSONArray jsonArray = JSON.parseArray(managerPersonIdPhotoJson);
if (ObjectUtils.isNotEmpty(jsonArray)) {
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);
}
operatorRegisterRQVO.setAttachInfo(attachInfos);
}
}
return operatorRegisterRQVO;
}
......@@ -273,6 +288,21 @@ public class DataPortServiceImpl implements DataPortService {
extendInfo.setIndustryCategory2(industryDicMap.get(entity.getIndustrySmallcode()));
extendInfo.setBusinessLicense(getName(entity.getBusinessLicenseJson()));
enterpriseRegisterRQVO.setExtendInfo(extendInfo);
String authorizationLetter = entity.getAuthorizationLetter();
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);
}
}
return enterpriseRegisterRQVO;
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!