注释提交
This commit is contained in:
parent
4bfc46021c
commit
0de3c32f1d
@ -212,7 +212,7 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService {
|
||||
}
|
||||
PatientTaskDto patientTaskDto = new PatientTaskDto();
|
||||
patientTaskDto.setPatientId(patientId);
|
||||
//暂时不用
|
||||
//查询节点富文本所需标签
|
||||
List<SignPatientManageRouteNode> nodeList = signPatientManageRouteNodeMapper.getNodeList(patientTaskDto);
|
||||
List<String> nodeContentList = nodeList.stream().filter(Objects::nonNull).map(SignPatientManageRouteNode::getNodeContent).filter(Objects::nonNull).collect(Collectors.toList());
|
||||
String nodeContentListJoin = String.join(",", nodeContentList);
|
||||
@ -224,7 +224,7 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService {
|
||||
String paramKey = span.attr("data-fieldMark");
|
||||
string.add(paramKey);
|
||||
}
|
||||
//根据patientId查询是否有已经维护的参数
|
||||
//根据patientId查询是否有已经维护的参数、有维护数据返回已维护数据、没有维护数据查询视图数据
|
||||
List<LabelFieldAndPartitionDict> labelFieldContents = labelFieldContentMapper.labelFieldAndPartitionDict(taskPartitionDictId, patientId, null);
|
||||
if (CollectionUtils.isNotEmpty(labelFieldContents)) {
|
||||
return labelFieldContents;
|
||||
@ -235,19 +235,21 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService {
|
||||
if (CollectionUtils.isEmpty(labelFieldContentList)) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
//取属性名
|
||||
//取患者表视图属性名
|
||||
PatientAllInfoView patientAllInfoView = new PatientAllInfoView();
|
||||
Field[] declaredFields = patientAllInfoView.getClass().getDeclaredFields();
|
||||
String[] strings = new String[declaredFields.length];
|
||||
for (int i = 0; i < declaredFields.length; i++) {
|
||||
strings[i] = declaredFields[i].getName().toUpperCase();
|
||||
}
|
||||
//遍历分组,根据属性名塞入视图值
|
||||
List<String> asListStrings = Arrays.asList(strings);
|
||||
for (GroupingValue groupingValue : labelFieldContentList) {
|
||||
groupingValue.setPatientId(patientId);
|
||||
String s = asListStrings.stream().filter(Objects::nonNull).filter(item -> item.equals(groupingValue.getFieldCode())).findFirst().orElse(new String());
|
||||
groupingValue.setFieldValue(paramsValue.getOrDefault(s, "").toString());
|
||||
}
|
||||
//遍历任务细分id组装数据
|
||||
List<Long> collect = labelFieldContentList.stream().filter(Objects::nonNull).filter(item -> Objects.nonNull(item.getTaskPartitionDictId())).map(LabelFieldInfo::getTaskPartitionDictId).distinct().collect(Collectors.toList());
|
||||
List<LabelFieldAndPartitionDict> labelFieldAndPartitionDictList = new ArrayList<>();
|
||||
for (Long aLong : collect) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user