修改色值

dev_2.1.0
liu 1 year ago
parent 555decea39
commit 660097c1d8

@ -7,7 +7,7 @@ import java.util.List;
public interface GraphNebulaService { public interface GraphNebulaService {
void creatGraphByNebula(String processId); String creatGraphByNebula(String processId);
GraphVO queryGraph(String processId, Integer level); GraphVO queryGraph(String processId, Integer level);

@ -80,7 +80,7 @@ public class GraphNebulaServiceImpl implements GraphNebulaService {
private AncillaryResultDao ancillaryResultDao; private AncillaryResultDao ancillaryResultDao;
@Override @Override
public void creatGraphByNebula(String processId) { public String creatGraphByNebula(String processId) {
Process process = Optional.ofNullable(processService.getById(processId)).orElseThrow(() -> new BusinessException("未找到流程,创建图谱失败")); Process process = Optional.ofNullable(processService.getById(processId)).orElseThrow(() -> new BusinessException("未找到流程,创建图谱失败"));
// 根据processId找到对应的诊疗计划,如果没有找到,说明治疗流程未完成,诊断失败 // 根据processId找到对应的诊疗计划,如果没有找到,说明治疗流程未完成,诊断失败
List<TreatmentPlanRecord> treatmentPlanRecordList = treatmentPlanRecordService.lambdaQuery().eq(TreatmentPlanRecord::getProcessId, processId).list(); List<TreatmentPlanRecord> treatmentPlanRecordList = treatmentPlanRecordService.lambdaQuery().eq(TreatmentPlanRecord::getProcessId, processId).list();
@ -244,6 +244,7 @@ public class GraphNebulaServiceImpl implements GraphNebulaService {
} }
log.info("病历图谱ID:{}", medicalRecVertex.getId()); log.info("病历图谱ID:{}", medicalRecVertex.getId());
processService.lambdaUpdate().set(Process::getGraphId, medicalRecVertex.getId()).eq(Process::getId, processId).update(); processService.lambdaUpdate().set(Process::getGraphId, medicalRecVertex.getId()).eq(Process::getId, processId).update();
return medicalRecVertex.getId();
} }
@ -252,8 +253,8 @@ public class GraphNebulaServiceImpl implements GraphNebulaService {
Process process = Optional.ofNullable(processService.getById(processId)).orElseThrow(() -> new BusinessException("未找到对应的问诊流程")); Process process = Optional.ofNullable(processService.getById(processId)).orElseThrow(() -> new BusinessException("未找到对应的问诊流程"));
// 如果图谱ID为空,则创建图谱 // 如果图谱ID为空,则创建图谱
if (StrUtil.isEmpty(process.getGraphId())) { if (StrUtil.isEmpty(process.getGraphId())) {
creatGraphByNebula(processId); String graphId = creatGraphByNebula(processId);
process = Optional.ofNullable(processService.getById(processId)).orElseThrow(() -> new BusinessException("未找到对应的问诊流程")); process.setGraphId(graphId);
} }
List<NgSubgraph<String>> subgraphList = medicalRecDao.selectSubgraph(process.getGraphId()); List<NgSubgraph<String>> subgraphList = medicalRecDao.selectSubgraph(process.getGraphId());

Loading…
Cancel
Save