画像星标

This commit is contained in:
zhangheng 2024-07-16 08:59:49 +08:00
parent 107b369de8
commit bdf086b4cd
3 changed files with 27 additions and 0 deletions

View File

@ -117,4 +117,12 @@ public interface SignPatientManageRouteNodeMapper {
* @return 节点列表
*/
List<SignPatientManageRouteNode> selectNodesByManageIds(@Param("manageRouteIds") List<Long> manageRouteIds);
/**
* 查询患者管理路径节点内容
*
* @param patientId 患者id
* @return 患者管理任务路径节点
*/
List<SignPatientManageRouteNode> getRouteNodeContentList(Long patientId);
}

View File

@ -214,6 +214,10 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService {
patientTaskDto.setPatientId(patientId);
//根据患者id查询节点富文本所需标签
List<SignPatientManageRouteNode> nodeList = signPatientManageRouteNodeMapper.getNodeList(patientTaskDto);
List<SignPatientManageRouteNode> routeNodeContentList = signPatientManageRouteNodeMapper.getRouteNodeContentList(patientId);
if (CollectionUtils.isNotEmpty(routeNodeContentList)) {
nodeList.addAll(routeNodeContentList);
}
List<String> nodeContentList = nodeList.stream().filter(Objects::nonNull).map(SignPatientManageRouteNode::getNodeContent).filter(Objects::nonNull).collect(Collectors.toList());
String nodeContentListJoin = String.join(",", nodeContentList);
Document document = Jsoup.parse(nodeContentListJoin);
@ -247,6 +251,12 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService {
for (GroupingValue groupingValue : labelFieldContentList) {
groupingValue.setPatientId(patientId);
String s = asListStrings.stream().filter(Objects::nonNull).filter(item -> item.equals(groupingValue.getFieldCode())).findFirst().orElse(new String());
List<String> collect = string.stream().filter(Objects::nonNull).filter(item -> item.equals(groupingValue.getFieldCode())).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(collect)) {
groupingValue.setSign(1);
} else {
groupingValue.setSign(0);
}
groupingValue.setFieldValue(paramsValue.getOrDefault(s, "").toString());
}
//遍历任务细分id组装数据

View File

@ -814,4 +814,13 @@
#{manageRouteId}
</foreach>
</select>
<select id="getRouteNodeContentList"
resultType="com.xinelu.manage.domain.signpatientmanageroutenode.SignPatientManageRouteNode">
select node_content
from sign_patient_manage_route spmr
LEFT JOIN special_disease_route sdr ON spmr.route_id = sdr.id
LEFT JOIN special_disease_node sdn ON sdn.route_id = sdr.id
where spmr.patient_id = #{patientId}
</select>
</mapper>