故障修复

This commit is contained in:
daiqy88
2025-11-14 09:50:54 +08:00
parent 994e97337e
commit 5b479ff90a
2 changed files with 9 additions and 5 deletions

View File

@@ -30,6 +30,9 @@ public class SimulationFlowTemplate extends BaseEntity {
@Schema(description = "父版本UUID")
public String parentUuid;
@Schema(description = "流程模版编码")
public String templateCode;
@Schema(description = "模版状态")
public int templateStatus = 1;

View File

@@ -46,11 +46,12 @@ public class FlowServiceImpl extends BaseService implements IFlowService {
long tenantId = ThreadLocalContext.getTenantId();
long creator = ThreadLocalContext.getUserId();
String createName = ThreadLocalContext.getUserName();
flowTemplate.setUuid(generateUuid("flow_template_"));
flowTemplate.setCreator(creator);
flowTemplate.setTenantId(tenantId);
flowTemplate.setCreateName(createName);
flowTemplate.setTemplateVersion("V1.0");
flowTemplate.uuid = generateUuid("flow_template_");
flowTemplate.templateCode = generateUuid("flow_code_");
flowTemplate.creator = creator;
flowTemplate.tenantId = tenantId;
flowTemplate.createName = createName;
flowTemplate.templateVersion = "V1.0";
flowTemplate.approveType = 0;
if(flowMapper.addFlowTemplate(flowTemplate) <=0)
{