|
@@ -111,6 +111,8 @@ public class FlowInfoServiceImpl extends ServiceImpl<FlowInfoMapper, FlowInfo> i
|
|
|
Assert.notNull(flowInfo, "基因定制流程不存在");
|
|
|
|
|
|
FlowDetailDto detail = BeanUtil.copyProperties(flowInfo, FlowDetailDto.class);
|
|
|
+ detail.setGeneEditPlName(userIdNameCache.getNicknameByUserId(flowInfo.getGeneEditPlId()));
|
|
|
+ detail.setProjectManageName(userIdNameCache.getNicknameByUserId(flowInfo.getProjectManageId()));
|
|
|
detail.setStatusLabel(Objects.requireNonNull(GeneStatusEnum.getByStatus(detail.getStatus())).getDescription());
|
|
|
detail.setCustom(customInfoService.getByFlowId(id));
|
|
|
detail.setPurification(purificationInfoService.getByFlowId(id));
|
|
@@ -129,21 +131,11 @@ public class FlowInfoServiceImpl extends ServiceImpl<FlowInfoMapper, FlowInfo> i
|
|
|
flowInfo.setId(CustomIdGenerator.nextId());
|
|
|
|
|
|
if (vo.getCustom() != null) {
|
|
|
- if (vo.getPurification() != null) {
|
|
|
- flowInfo.setTarget(GeneTargetEnum.CUSTOM + "," + GeneTargetEnum.PURIFICATION);
|
|
|
-
|
|
|
- vo.getPurification().setFlowId(flowInfo.getId());
|
|
|
- purificationInfoService.saveForm(vo.getPurification());
|
|
|
- } else {
|
|
|
- flowInfo.setTarget(GeneTargetEnum.CUSTOM.getCode());
|
|
|
- }
|
|
|
-
|
|
|
vo.getCustom().setFlowId(flowInfo.getId());
|
|
|
customInfoService.saveForm(vo.getCustom());
|
|
|
+ }
|
|
|
|
|
|
- } else if (vo.getPurification() != null) {
|
|
|
- flowInfo.setTarget(GeneTargetEnum.PURIFICATION.getCode());
|
|
|
-
|
|
|
+ if (vo.getPurification() != null) {
|
|
|
vo.getPurification().setFlowId(flowInfo.getId());
|
|
|
purificationInfoService.saveForm(vo.getPurification());
|
|
|
}
|