画像星标
This commit is contained in:
parent
107b369de8
commit
bdf086b4cd
@ -117,4 +117,12 @@ public interface SignPatientManageRouteNodeMapper {
|
|||||||
* @return 节点列表
|
* @return 节点列表
|
||||||
*/
|
*/
|
||||||
List<SignPatientManageRouteNode> selectNodesByManageIds(@Param("manageRouteIds") List<Long> manageRouteIds);
|
List<SignPatientManageRouteNode> selectNodesByManageIds(@Param("manageRouteIds") List<Long> manageRouteIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询患者管理路径节点内容
|
||||||
|
*
|
||||||
|
* @param patientId 患者id
|
||||||
|
* @return 患者管理任务路径节点
|
||||||
|
*/
|
||||||
|
List<SignPatientManageRouteNode> getRouteNodeContentList(Long patientId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -214,6 +214,10 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService {
|
|||||||
patientTaskDto.setPatientId(patientId);
|
patientTaskDto.setPatientId(patientId);
|
||||||
//根据患者id查询节点富文本所需标签
|
//根据患者id查询节点富文本所需标签
|
||||||
List<SignPatientManageRouteNode> nodeList = signPatientManageRouteNodeMapper.getNodeList(patientTaskDto);
|
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());
|
List<String> nodeContentList = nodeList.stream().filter(Objects::nonNull).map(SignPatientManageRouteNode::getNodeContent).filter(Objects::nonNull).collect(Collectors.toList());
|
||||||
String nodeContentListJoin = String.join(",", nodeContentList);
|
String nodeContentListJoin = String.join(",", nodeContentList);
|
||||||
Document document = Jsoup.parse(nodeContentListJoin);
|
Document document = Jsoup.parse(nodeContentListJoin);
|
||||||
@ -247,6 +251,12 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService {
|
|||||||
for (GroupingValue groupingValue : labelFieldContentList) {
|
for (GroupingValue groupingValue : labelFieldContentList) {
|
||||||
groupingValue.setPatientId(patientId);
|
groupingValue.setPatientId(patientId);
|
||||||
String s = asListStrings.stream().filter(Objects::nonNull).filter(item -> item.equals(groupingValue.getFieldCode())).findFirst().orElse(new String());
|
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());
|
groupingValue.setFieldValue(paramsValue.getOrDefault(s, "").toString());
|
||||||
}
|
}
|
||||||
//遍历任务细分id组装数据
|
//遍历任务细分id组装数据
|
||||||
|
|||||||
@ -814,4 +814,13 @@
|
|||||||
#{manageRouteId}
|
#{manageRouteId}
|
||||||
</foreach>
|
</foreach>
|
||||||
</select>
|
</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>
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user