认证清单-关联平台件
This commit is contained in:
@@ -682,3 +682,8 @@ ALTER TABLE `project_certification_inventory`
|
|||||||
ADD COLUMN `duty_depart` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '责任部门' AFTER `attestation_type`;
|
ADD COLUMN `duty_depart` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '责任部门' AFTER `attestation_type`;
|
||||||
|
|
||||||
|
|
||||||
|
-- 认证清单 添加关联平台件认证清单id 2023-12-7 未同步生产环境
|
||||||
|
ALTER TABLE `project_certification_inventory`
|
||||||
|
ADD COLUMN `platform_certification_inventory_id` varchar(36) NULL COMMENT '平台件-认证清单id' AFTER `remark`;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
@@ -271,4 +271,7 @@ public class ProjectCertificationInventoryEO implements Serializable {
|
|||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String projectName;
|
private String projectName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "平台件-认证清单id")
|
||||||
|
private String platformCertificationInventoryId;
|
||||||
}
|
}
|
||||||
|
|||||||
+15
-8
@@ -7391,6 +7391,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
for (int i = 1; i < projectCertificationInventoryEOList.size(); i++) {
|
for (int i = 1; i < projectCertificationInventoryEOList.size(); i++) {
|
||||||
ProjectCertificationInventoryEO projectCertificationInventoryEOTemp = new ProjectCertificationInventoryEO();
|
ProjectCertificationInventoryEO projectCertificationInventoryEOTemp = new ProjectCertificationInventoryEO();
|
||||||
BeanUtils.copyProperties(projectCertificationInventoryEO,projectCertificationInventoryEOTemp);
|
BeanUtils.copyProperties(projectCertificationInventoryEO,projectCertificationInventoryEOTemp);
|
||||||
|
projectCertificationInventoryEOTemp.setPlatformCertificationInventoryId(projectCertificationInventoryEOList.get(i).getId());
|
||||||
projectCertificationInventoryEOTemp.setId(UUID.randomUUID().toString().replace("-", ""));
|
projectCertificationInventoryEOTemp.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||||
list.add(projectCertificationInventoryEOTemp);
|
list.add(projectCertificationInventoryEOTemp);
|
||||||
|
|
||||||
@@ -7475,23 +7476,29 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
ProjectCertificationInventoryEO certificationInventoryEO = projectCertificationInventoryEOService.queryById(lawsInventoryPlatformEOList.get(0).getLawsInventoryId());
|
ProjectCertificationInventoryEO certificationInventoryEO = projectCertificationInventoryEOService.queryById(lawsInventoryPlatformEOList.get(0).getLawsInventoryId());
|
||||||
|
//平台件的平台件认证清单
|
||||||
|
ProjectCertificationInventoryEO certificationInventoryEOTemp =
|
||||||
|
projectCertificationInventoryEOService.queryById(certificationInventoryEO.getPlatformCertificationInventoryId());
|
||||||
|
|
||||||
|
|
||||||
//交付物模板
|
//交付物模板
|
||||||
String deliverableTemplate = certificationInventoryEO.getDeliverableTemplate();
|
String deliverableTemplate = certificationInventoryEOTemp.getDeliverableTemplate();
|
||||||
if(StringUtils.isNotBlank(deliverableTemplate)){
|
if(StringUtils.isNotBlank(deliverableTemplate)){
|
||||||
List<OSSFile> fileInfos = iOSSFileService.getFileInfos(StringUtils.join(deliverableTemplate, ","));
|
List<OSSFile> fileInfos = iOSSFileService.getFileInfos(StringUtils.join(deliverableTemplate, ","));
|
||||||
certificationInventoryEO.setDeliverableTemplateName(fileInfos.get(0).getFileName());
|
certificationInventoryEOTemp.setDeliverableTemplateName(fileInfos.get(0).getFileName());
|
||||||
}
|
}
|
||||||
//交付物类型
|
//交付物类型
|
||||||
String deliverableType = certificationInventoryEO.getDeliverableType();
|
String deliverableType = certificationInventoryEOTemp.getDeliverableType();
|
||||||
if(StringUtils.isNotBlank(deliverableType)){
|
if(StringUtils.isNotBlank(deliverableType)){
|
||||||
List<SysCategory> categoryList = sysCategoryService.list();
|
List<SysCategory> categoryList = sysCategoryService.list();
|
||||||
String name = getTreeName(cut, categoryList, Arrays.asList(deliverableType.split(",")));
|
String name = getTreeName(cut, categoryList, Arrays.asList(deliverableType.split(",")));
|
||||||
certificationInventoryEO.setDeliverableTypeName(name);
|
certificationInventoryEOTemp.setDeliverableTypeName(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//平台件认证清单对应的法规
|
||||||
|
List<ProjectLibraryBase> projectLibraryBaseList = projectLibraryBaseMapper.queryById(certificationInventoryEOTemp.getProjectLibraryId());
|
||||||
//平台件项目名称
|
//平台件项目名称
|
||||||
String projectLibraryId = certificationInventoryEO.getProjectLibraryId();
|
|
||||||
List<ProjectLibraryBase> projectLibraryBaseList = projectLibraryBaseMapper.queryById(projectLibraryId);
|
|
||||||
if(ObjectUtils.isNotEmpty(projectLibraryBaseList)){
|
if(ObjectUtils.isNotEmpty(projectLibraryBaseList)){
|
||||||
ProjectLibraryBase projectLibraryBase = projectLibraryBaseList.get(0);
|
ProjectLibraryBase projectLibraryBase = projectLibraryBaseList.get(0);
|
||||||
//目标市场 英文
|
//目标市场 英文
|
||||||
@@ -7500,10 +7507,10 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
paramEn.put("cut",cut);
|
paramEn.put("cut",cut);
|
||||||
String targetMarket = projectLibraryBaseServiceImpl.getMarket(paramEn, targetMarketList, projectLibraryBase);
|
String targetMarket = projectLibraryBaseServiceImpl.getMarket(paramEn, targetMarketList, projectLibraryBase);
|
||||||
String projectName = projectLibraryBase.getPlatformType()+"-"+projectLibraryBase.getPower()+"-"+projectLibraryBase.getProducer()+"-"+targetMarket;
|
String projectName = projectLibraryBase.getPlatformType()+"-"+projectLibraryBase.getPower()+"-"+projectLibraryBase.getProducer()+"-"+targetMarket;
|
||||||
certificationInventoryEO.setProjectName(projectName);
|
certificationInventoryEOTemp.setProjectName(projectName);
|
||||||
}
|
}
|
||||||
List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList = new ArrayList<>();
|
List<ProjectCertificationInventoryEO> projectCertificationInventoryEOList = new ArrayList<>();
|
||||||
projectCertificationInventoryEOList.add(certificationInventoryEO);
|
projectCertificationInventoryEOList.add(certificationInventoryEOTemp);
|
||||||
return projectCertificationInventoryEOList;
|
return projectCertificationInventoryEOList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user