a1be11ae by xiaojie

【数据资产】

1、认证校验
1 parent f07c9996
...@@ -61,6 +61,6 @@ public class EnterpriseRegisterRQVO { ...@@ -61,6 +61,6 @@ public class EnterpriseRegisterRQVO {
61 private EnterpriseSubordinateRQVO extendInfo; 61 private EnterpriseSubordinateRQVO extendInfo;
62 62
63 @Schema(title = "法人用户身份附件信息") 63 @Schema(title = "法人用户身份附件信息")
64 private List<AttachmentCommonVO> attachInfo; 64 private AttachmentCommonVO attachInfo;
65 65
66 } 66 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -29,10 +29,7 @@ import org.apache.commons.lang3.StringUtils; ...@@ -29,10 +29,7 @@ import org.apache.commons.lang3.StringUtils;
29 import org.springframework.stereotype.Service; 29 import org.springframework.stereotype.Service;
30 30
31 import java.text.SimpleDateFormat; 31 import java.text.SimpleDateFormat;
32 import java.util.Calendar; 32 import java.util.*;
33 import java.util.Date;
34 import java.util.HashMap;
35 import java.util.Map;
36 33
37 /** 34 /**
38 * @program: daop-projects 35 * @program: daop-projects
...@@ -225,6 +222,24 @@ public class DataPortServiceImpl implements DataPortService { ...@@ -225,6 +222,24 @@ public class DataPortServiceImpl implements DataPortService {
225 operatorSubordinateRQVO.setEnterpriseName(entity.getTenantName()); 222 operatorSubordinateRQVO.setEnterpriseName(entity.getTenantName());
226 operatorSubordinateRQVO.setBusinessLicense(getName(entity.getBusinessLicenseJson())); 223 operatorSubordinateRQVO.setBusinessLicense(getName(entity.getBusinessLicenseJson()));
227 operatorRegisterRQVO.setExtendInfo(operatorSubordinateRQVO); 224 operatorRegisterRQVO.setExtendInfo(operatorSubordinateRQVO);
225
226 String managerPersonIdPhotoJson = entity.getManagerPersonIdPhotoJson();
227 if (ObjectUtils.isNotEmpty(managerPersonIdPhotoJson)) {
228 JSONArray jsonArray = JSON.parseArray(managerPersonIdPhotoJson);
229 if (ObjectUtils.isNotEmpty(jsonArray)) {
230 List<AttachmentCommonVO> attachInfos = new ArrayList<>();
231 for (int i = 0; i < jsonArray.size(); i++) {
232 JSONObject jsonObject = jsonArray.getJSONObject(i);
233 AttachmentCommonVO attachInfo = new AttachmentCommonVO();
234 attachInfo.setAttachType("经办人证件正反面");
235 String name = jsonObject.getString("name");
236 attachInfo.setAttachName(StringUtils.isNotEmpty(name) ? name.split("\\.")[0] : name);
237 attachInfo.setVerifyUrl(jsonObject.getString("url"));
238 attachInfos.add(attachInfo);
239 }
240 operatorRegisterRQVO.setAttachInfo(attachInfos);
241 }
242 }
228 return operatorRegisterRQVO; 243 return operatorRegisterRQVO;
229 } 244 }
230 245
...@@ -273,6 +288,21 @@ public class DataPortServiceImpl implements DataPortService { ...@@ -273,6 +288,21 @@ public class DataPortServiceImpl implements DataPortService {
273 extendInfo.setIndustryCategory2(industryDicMap.get(entity.getIndustrySmallcode())); 288 extendInfo.setIndustryCategory2(industryDicMap.get(entity.getIndustrySmallcode()));
274 extendInfo.setBusinessLicense(getName(entity.getBusinessLicenseJson())); 289 extendInfo.setBusinessLicense(getName(entity.getBusinessLicenseJson()));
275 enterpriseRegisterRQVO.setExtendInfo(extendInfo); 290 enterpriseRegisterRQVO.setExtendInfo(extendInfo);
291
292 String authorizationLetter = entity.getAuthorizationLetter();
293 if (ObjectUtils.isNotEmpty(authorizationLetter)) {
294 JSONArray jsonArray = JSON.parseArray(authorizationLetter);
295 if (ObjectUtils.isNotEmpty(jsonArray)) {
296 JSONObject jsonObject = jsonArray.getJSONObject(0);
297 AttachmentCommonVO attachInfo = new AttachmentCommonVO();
298 attachInfo.setAttachType("经办人证件正反面");
299 String name = jsonObject.getString("name");
300 attachInfo.setAttachName(StringUtils.isNotEmpty(name) ? name.split("\\.")[0] : name);
301 attachInfo.setVerifyUrl(jsonObject.getString("url"));
302 enterpriseRegisterRQVO.setAttachInfo(attachInfo);
303 }
304 }
305
276 return enterpriseRegisterRQVO; 306 return enterpriseRegisterRQVO;
277 } 307 }
278 308
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!