Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH
This commit is contained in:
+89
@@ -33,8 +33,11 @@ import com.jero.modules.system.service.ISysDictService;
|
|||||||
import com.jero.modules.system.service.ISysUserService;
|
import com.jero.modules.system.service.ISysUserService;
|
||||||
import com.jero.modules.system.service.impl.SysDictItemServiceImpl;
|
import com.jero.modules.system.service.impl.SysDictItemServiceImpl;
|
||||||
import com.jero.modules.system.util.StringUtils;
|
import com.jero.modules.system.util.StringUtils;
|
||||||
|
import com.jero.modules.todoCenter.entity.ProcessInfoDetailEO;
|
||||||
|
import com.jero.modules.todoCenter.service.IProcessInfoDetailEOService;
|
||||||
import com.jero.modules.top.entity.TopProjectEO;
|
import com.jero.modules.top.entity.TopProjectEO;
|
||||||
import com.jero.modules.top.service.ITopProjectEOService;
|
import com.jero.modules.top.service.ITopProjectEOService;
|
||||||
|
import com.jero.modules.wkflow.enums.FlowTypeEnum;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||||
@@ -147,6 +150,9 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IProjectCertificationInventoryEOService projectCertificationInventoryEOService;
|
private IProjectCertificationInventoryEOService projectCertificationInventoryEOService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IProcessInfoDetailEOService processInfoDetailEOService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存
|
* 保存
|
||||||
*
|
*
|
||||||
@@ -441,6 +447,8 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setRzlcCertificationEngineerTask(projectLibraryBase);
|
||||||
checkExitData(projectLibraryBase);
|
checkExitData(projectLibraryBase);
|
||||||
saveOrUpdate(projectLibraryBase);
|
saveOrUpdate(projectLibraryBase);
|
||||||
checkVersionOrder(projectLibraryBase.getParentId(),projectLibraryBase.getProjectVersion(),projectLibraryBase.getId());
|
checkVersionOrder(projectLibraryBase.getParentId(),projectLibraryBase.getProjectVersion(),projectLibraryBase.getId());
|
||||||
@@ -666,6 +674,87 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重新设置认证工程师在待办中心的 认证流程的 待办任务。
|
||||||
|
* @param projectLibraryBase
|
||||||
|
*/
|
||||||
|
private void setRzlcCertificationEngineerTask(ProjectLibraryBase projectLibraryBase) {
|
||||||
|
if(org.apache.commons.lang3.StringUtils.isNotEmpty(projectLibraryBase.getCertificationEngineer())){
|
||||||
|
List<String> certificationEngineerIdList = Arrays.asList(projectLibraryBase.getCertificationEngineer().split(","));
|
||||||
|
QueryWrapper<ProjectCertificationInventoryEO> pciQueryWrap = new QueryWrapper<>();
|
||||||
|
pciQueryWrap.lambda().eq(ProjectCertificationInventoryEO::getProjectLibraryId, projectLibraryBase.getId());
|
||||||
|
List<ProjectCertificationInventoryEO> pciEOList = this.projectCertificationInventoryEOService.list(pciQueryWrap);
|
||||||
|
|
||||||
|
if(CollectionUtils.isNotEmpty(pciEOList)){
|
||||||
|
// 清单待校核的数据
|
||||||
|
List<ProjectCertificationInventoryEO> pciToBeCheckedList = pciEOList.stream().filter(pci -> {
|
||||||
|
boolean flag = false;
|
||||||
|
if(StringUtils.equals(pci.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue())){
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
return flag;
|
||||||
|
}).collect(Collectors.toList());
|
||||||
|
// 如果该项目下清单待校核的数据不为空,给这些认证工程师分配待办任务。
|
||||||
|
if(CollectionUtils.isNotEmpty(pciToBeCheckedList)){
|
||||||
|
// 删除待办中心(是这个项目库的 pre-Homo流程的待办任务, 认证工程师接受任务节点的数据)
|
||||||
|
QueryWrapper<ProcessInfoDetailEO> pidRemoveWrap = new QueryWrapper<>();
|
||||||
|
pidRemoveWrap.lambda().eq(ProcessInfoDetailEO::getProcessInfoId, projectLibraryBase.getId());
|
||||||
|
pidRemoveWrap.lambda().eq(ProcessInfoDetailEO::getTaskDefinitionKey,CertificationFlowNodeEnum.RZGCSJSRW.getKey());
|
||||||
|
pidRemoveWrap.lambda().eq(ProcessInfoDetailEO::getFlowType,FlowTypeEnum.CERTIFICATION_LC.getValue());
|
||||||
|
this.processInfoDetailEOService.remove(pidRemoveWrap);
|
||||||
|
|
||||||
|
// 给认证工程师分配任务
|
||||||
|
List<ProcessInfoDetailEO> processInfoDetailEOList = new ArrayList<>();
|
||||||
|
for (String userId : certificationEngineerIdList) {
|
||||||
|
ProcessInfoDetailEO processInfoDetailEO = new ProcessInfoDetailEO();
|
||||||
|
processInfoDetailEO.setUserId(userId);
|
||||||
|
processInfoDetailEO.setTaskDefinitionKey(CertificationFlowNodeEnum.RZGCSJSRW.getKey());
|
||||||
|
processInfoDetailEO.setCreateTime(new Date());
|
||||||
|
processInfoDetailEO.setStatus(TaskStatusEnum.NOT_DONE.getValue());
|
||||||
|
processInfoDetailEO.setProcessInfoId(projectLibraryBase.getId());
|
||||||
|
processInfoDetailEO.setActiProcInstId(projectLibraryBase.getId());
|
||||||
|
processInfoDetailEO.setFlowType(FlowTypeEnum.CERTIFICATION_LC.getValue());
|
||||||
|
processInfoDetailEOList.add(processInfoDetailEO);
|
||||||
|
}
|
||||||
|
this.processInfoDetailEOService.saveBatch(processInfoDetailEOList);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 结果待提交的数据
|
||||||
|
List<ProjectCertificationInventoryEO> pciToBeReviewEDList = pciEOList.stream().filter(pci -> {
|
||||||
|
boolean flag = false;
|
||||||
|
if(StringUtils.equals(pci.getFlowStatus(),CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue())){
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
return flag;
|
||||||
|
}).collect(Collectors.toList());
|
||||||
|
|
||||||
|
if(CollectionUtils.isNotEmpty(pciToBeReviewEDList)){
|
||||||
|
// 删除待办中心(是这个项目库的 pre-Homo流程的待办任务, 认证工程师审查 任务节点的数据)
|
||||||
|
QueryWrapper<ProcessInfoDetailEO> pidRemoveWrap = new QueryWrapper<>();
|
||||||
|
pidRemoveWrap.lambda().eq(ProcessInfoDetailEO::getProcessInfoId, projectLibraryBase.getId());
|
||||||
|
pidRemoveWrap.lambda().eq(ProcessInfoDetailEO::getTaskDefinitionKey,CertificationFlowNodeEnum.RZGCSSC.getKey());
|
||||||
|
pidRemoveWrap.lambda().eq(ProcessInfoDetailEO::getFlowType,FlowTypeEnum.CERTIFICATION_LC.getValue());
|
||||||
|
this.processInfoDetailEOService.remove(pidRemoveWrap);
|
||||||
|
|
||||||
|
// 给认证工程师分配任务
|
||||||
|
List<ProcessInfoDetailEO> processInfoDetailEOList = new ArrayList<>();
|
||||||
|
for (String userId : certificationEngineerIdList) {
|
||||||
|
ProcessInfoDetailEO processInfoDetailEO = new ProcessInfoDetailEO();
|
||||||
|
processInfoDetailEO.setUserId(userId);
|
||||||
|
processInfoDetailEO.setTaskDefinitionKey(CertificationFlowNodeEnum.RZGCSSC.getKey());
|
||||||
|
processInfoDetailEO.setCreateTime(new Date());
|
||||||
|
processInfoDetailEO.setStatus(TaskStatusEnum.NOT_DONE.getValue());
|
||||||
|
processInfoDetailEO.setProcessInfoId(projectLibraryBase.getId());
|
||||||
|
processInfoDetailEO.setActiProcInstId(projectLibraryBase.getId());
|
||||||
|
processInfoDetailEO.setFlowType(FlowTypeEnum.CERTIFICATION_LC.getValue());
|
||||||
|
processInfoDetailEOList.add(processInfoDetailEO);
|
||||||
|
}
|
||||||
|
this.processInfoDetailEOService.saveBatch(processInfoDetailEOList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过id删除
|
* 通过id删除
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1726,4 +1726,5 @@ module.exports = {
|
|||||||
noteone:'Note: CSV format is supported. The value is within 20M and the number is 1 to 10',
|
noteone:'Note: CSV format is supported. The value is within 20M and the number is 1 to 10',
|
||||||
notetwo:'\n1. Provide the modified or expanded batch of "Announcement" and supporting materials;\n2. Verification materials shall be submitted to ensure that products meet the relevant requirements of national laws and regulations, technologies, standards and technical specifications;\n',
|
notetwo:'\n1. Provide the modified or expanded batch of "Announcement" and supporting materials;\n2. Verification materials shall be submitted to ensure that products meet the relevant requirements of national laws and regulations, technologies, standards and technical specifications;\n',
|
||||||
notethree:'Provide supporting materials',
|
notethree:'Provide supporting materials',
|
||||||
|
verifyComplianceConfirmReturnReason:'Verify compliance Confirm return reason',
|
||||||
}
|
}
|
||||||
@@ -1825,7 +1825,8 @@ module.exports = {
|
|||||||
notecsv:'注:支持CSV格式,大小20M以内',
|
notecsv:'注:支持CSV格式,大小20M以内',
|
||||||
theDataYouInitiate:'您所选的数据,均不符合流程发起条件,请重新检查后发起',
|
theDataYouInitiate:'您所选的数据,均不符合流程发起条件,请重新检查后发起',
|
||||||
dataWithProcessReleasedCannotBeReset:'流程状态为清单待发布的数据不能被重置',
|
dataWithProcessReleasedCannotBeReset:'流程状态为清单待发布的数据不能被重置',
|
||||||
reasonForReturnOfDesignCompliance:'设计符合性退回原因',
|
reasonForReturnOfDesignCompliance:'设计符合性确认退回原因',
|
||||||
notetwo:'\n1、提供变更或扩展后的《公告》批次及证明材料;\n2、应提交验证材料,保障产品符合国家法律法规、技术、标准及技术规范等相关要求;\n',
|
notetwo:'\n1、提供变更或扩展后的《公告》批次及证明材料;\n2、应提交验证材料,保障产品符合国家法律法规、技术、标准及技术规范等相关要求;\n',
|
||||||
notethree:'\n提供证明材料\n',
|
notethree:'\n提供证明材料\n',
|
||||||
|
verifyComplianceConfirmReturnReason:'验证符合性确认退回原因',
|
||||||
}
|
}
|
||||||
@@ -782,11 +782,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<div class="header-text" v-if="rejectCauseList && rejectCauseList.length > 0">
|
<div class="header-text" v-if="rejectCauseList && rejectCauseList.length > 0 && formInline.roleCodeIndex == 0">
|
||||||
{{$t('listConfirmationRejectionReason')}}
|
{{$t('reasonForReturnOfDesignCompliance')}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="rejectCauseList && rejectCauseList.length > 0"
|
<div v-if="rejectCauseList && rejectCauseList.length > 0 && formInline.roleCodeIndex == 0"
|
||||||
v-for="(item,index) in rejectCauseList">
|
v-for="(item,index) in rejectCauseList">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
@@ -827,11 +827,11 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="header-text" v-if="rejectCauseListOne && rejectCauseListOne.length > 0">
|
<div class="header-text" v-if="rejectCauseListOne && rejectCauseListOne.length > 0 && formInline.roleCodeIndex == 0">
|
||||||
{{$t('taskConfirmationRejectionReason')}}
|
{{$t('verifyComplianceConfirmReturnReason')}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="rejectCauseListOne && rejectCauseListOne.length > 0"
|
<div v-if="rejectCauseListOne && rejectCauseListOne.length > 0 && formInline.roleCodeIndex == 0"
|
||||||
v-for="(item,index) in rejectCauseListOne">
|
v-for="(item,index) in rejectCauseListOne">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
|
|||||||
Reference in New Issue
Block a user