mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	Merge remote-tracking branch 'origin/feature/bpm' into feature/bpm
This commit is contained in:
		| @@ -48,11 +48,9 @@ public interface BpmModelConvert { | |||||||
|             BpmFormDO form = metaInfo != null ? formMap.get(metaInfo.getFormId()) : null; |             BpmFormDO form = metaInfo != null ? formMap.get(metaInfo.getFormId()) : null; | ||||||
|             BpmCategoryDO category = categoryMap.get(model.getCategory()); |             BpmCategoryDO category = categoryMap.get(model.getCategory()); | ||||||
|             Deployment deployment = model.getDeploymentId() != null ? deploymentMap.get(model.getDeploymentId()) : null; |             Deployment deployment = model.getDeploymentId() != null ? deploymentMap.get(model.getDeploymentId()) : null; | ||||||
|             ProcessDefinition processDefinition = model.getDeploymentId() != null |             ProcessDefinition processDefinition = model.getDeploymentId() != null ? | ||||||
|                     ? processDefinitionMap.get(model.getDeploymentId()) |                     processDefinitionMap.get(model.getDeploymentId()) : null; | ||||||
|                     : null; |             List<AdminUserRespDTO> startUsers = metaInfo != null ? convertList(metaInfo.getStartUserIds(), userMap::get) : null; | ||||||
|             List<AdminUserRespDTO> startUsers = metaInfo != null ? convertList(metaInfo.getStartUserIds(), userMap::get) |  | ||||||
|                     : null; |  | ||||||
|             return buildModel0(model, metaInfo, form, category, deployment, processDefinition, startUsers); |             return buildModel0(model, metaInfo, form, category, deployment, processDefinition, startUsers); | ||||||
|         }); |         }); | ||||||
|         // 排序 |         // 排序 | ||||||
| @@ -60,8 +58,7 @@ public interface BpmModelConvert { | |||||||
|         return result; |         return result; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     default BpmModelRespVO buildModel(Model model, |     default BpmModelRespVO buildModel(Model model, byte[] bpmnBytes) { | ||||||
|             byte[] bpmnBytes) { |  | ||||||
|         BpmModelMetaInfoVO metaInfo = parseMetaInfo(model); |         BpmModelMetaInfoVO metaInfo = parseMetaInfo(model); | ||||||
|         BpmModelRespVO modelVO = buildModel0(model, metaInfo, null, null, null, null, null); |         BpmModelRespVO modelVO = buildModel0(model, metaInfo, null, null, null, null, null); | ||||||
|         if (ArrayUtil.isNotEmpty(bpmnBytes)) { |         if (ArrayUtil.isNotEmpty(bpmnBytes)) { | ||||||
| @@ -71,9 +68,9 @@ public interface BpmModelConvert { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     default BpmModelRespVO buildModel0(Model model, |     default BpmModelRespVO buildModel0(Model model, | ||||||
|             BpmModelMetaInfoVO metaInfo, BpmFormDO form, BpmCategoryDO category, |                                        BpmModelMetaInfoVO metaInfo, BpmFormDO form, BpmCategoryDO category, | ||||||
|             Deployment deployment, ProcessDefinition processDefinition, |                                        Deployment deployment, ProcessDefinition processDefinition, | ||||||
|             List<AdminUserRespDTO> startUsers) { |                                        List<AdminUserRespDTO> startUsers) { | ||||||
|         BpmModelRespVO modelRespVO = new BpmModelRespVO().setId(model.getId()).setName(model.getName()) |         BpmModelRespVO modelRespVO = new BpmModelRespVO().setId(model.getId()).setName(model.getName()) | ||||||
|                 .setKey(model.getKey()).setCategory(model.getCategory()) |                 .setKey(model.getKey()).setCategory(model.getCategory()) | ||||||
|                 .setCreateTime(DateUtils.of(model.getCreateTime())); |                 .setCreateTime(DateUtils.of(model.getCreateTime())); | ||||||
| @@ -89,9 +86,8 @@ public interface BpmModelConvert { | |||||||
|         // ProcessDefinition |         // ProcessDefinition | ||||||
|         if (processDefinition != null) { |         if (processDefinition != null) { | ||||||
|             modelRespVO.setProcessDefinition(BeanUtils.toBean(processDefinition, BpmProcessDefinitionRespVO.class)); |             modelRespVO.setProcessDefinition(BeanUtils.toBean(processDefinition, BpmProcessDefinitionRespVO.class)); | ||||||
|             modelRespVO.getProcessDefinition() |             modelRespVO.getProcessDefinition().setSuspensionState(processDefinition.isSuspended() ? | ||||||
|                     .setSuspensionState(processDefinition.isSuspended() ? SuspensionState.SUSPENDED.getStateCode() |                     SuspensionState.SUSPENDED.getStateCode() : SuspensionState.ACTIVE.getStateCode()); | ||||||
|                             : SuspensionState.ACTIVE.getStateCode()); |  | ||||||
|             if (deployment != null) { |             if (deployment != null) { | ||||||
|                 modelRespVO.getProcessDefinition().setDeploymentTime(DateUtils.of(deployment.getDeploymentTime())); |                 modelRespVO.getProcessDefinition().setDeploymentTime(DateUtils.of(deployment.getDeploymentTime())); | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jason
					jason