Merge branch '0418_小程序开发' of http://182.92.166.109:3000/zhuangyuanke/PostDischargePatientManage into 0418_小程序开发
This commit is contained in:
commit
395d2be780
@ -2,7 +2,6 @@ package com.xinelu.manage.mapper.labelfieldcontent;
|
|||||||
|
|
||||||
import com.xinelu.manage.domain.labelfieldcontent.LabelFieldContent;
|
import com.xinelu.manage.domain.labelfieldcontent.LabelFieldContent;
|
||||||
import com.xinelu.manage.vo.labelfieldcontent.GroupingValue;
|
import com.xinelu.manage.vo.labelfieldcontent.GroupingValue;
|
||||||
import com.xinelu.manage.vo.labelfieldcontent.LabelFieldAndPartitionDict;
|
|
||||||
import com.xinelu.manage.vo.labelfieldcontent.LabelFieldContentVO;
|
import com.xinelu.manage.vo.labelfieldcontent.LabelFieldContentVO;
|
||||||
import com.xinelu.manage.vo.labelfieldcontent.LabelFieldInfoContentVo;
|
import com.xinelu.manage.vo.labelfieldcontent.LabelFieldInfoContentVo;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
@ -90,7 +89,7 @@ public interface LabelFieldContentMapper {
|
|||||||
* @param portraitStatus 状态
|
* @param portraitStatus 状态
|
||||||
* @return GroupingValue
|
* @return GroupingValue
|
||||||
*/
|
*/
|
||||||
List<LabelFieldAndPartitionDict> labelFieldAndPartitionDict(@Param("taskPartitionDictId") Long taskPartitionDictId, @Param("patientId") Long patientId, @Param("portraitStatus") String portraitStatus);
|
List<GroupingValue> labelFieldAndPartitionDict(@Param("taskPartitionDictId") Long taskPartitionDictId, @Param("patientId") Long patientId, @Param("portraitStatus") String portraitStatus);
|
||||||
|
|
||||||
List<GroupingValue> groupingValue(@Param("taskPartitionDictId") Long taskPartitionDictId, @Param("patientId") Long patientId, @Param("portraitStatus") String portraitStatus);
|
List<GroupingValue> groupingValue(@Param("taskPartitionDictId") Long taskPartitionDictId, @Param("patientId") Long patientId, @Param("portraitStatus") String portraitStatus);
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,10 +36,7 @@ import javax.annotation.Resource;
|
|||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@ -214,6 +211,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);
|
||||||
@ -225,14 +226,44 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService {
|
|||||||
string.add(paramKey);
|
string.add(paramKey);
|
||||||
}
|
}
|
||||||
//根据patientId查询是否有已经维护的参数、有维护数据返回已维护数据、没有维护数据查询视图数据
|
//根据patientId查询是否有已经维护的参数、有维护数据返回已维护数据、没有维护数据查询视图数据
|
||||||
List<LabelFieldAndPartitionDict> labelFieldContents = labelFieldContentMapper.labelFieldAndPartitionDict(taskPartitionDictId, patientId, null);
|
List<GroupingValue> groupingValues;
|
||||||
if (CollectionUtils.isNotEmpty(labelFieldContents)) {
|
groupingValues = labelFieldContentMapper.labelFieldAndPartitionDict(taskPartitionDictId, patientId, null);
|
||||||
return labelFieldContents;
|
if (CollectionUtils.isNotEmpty(groupingValues)) {
|
||||||
|
for (GroupingValue groupingValue : groupingValues) {
|
||||||
|
groupingValue.setPatientId(patientId);
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//组装数据
|
||||||
|
List<Long> taskPartitionDictIds = groupingValues.stream().filter(Objects::nonNull).map(LabelFieldInfo::getTaskPartitionDictId).filter(Objects::nonNull).distinct().collect(Collectors.toList());
|
||||||
|
List<LabelFieldAndPartitionDict> labelFieldAndPartitionDictList = new ArrayList<>();
|
||||||
|
for (Long aLong : taskPartitionDictIds) {
|
||||||
|
List<PortraitSnVO> PortraitSnVOS = new ArrayList<>();
|
||||||
|
LabelFieldAndPartitionDict labelFieldAndPartitionDict = new LabelFieldAndPartitionDict();
|
||||||
|
List<GroupingValue> collect = groupingValues.stream().filter(Objects::nonNull).filter(item -> aLong.equals(item.getTaskPartitionDictId())).collect(Collectors.toList());
|
||||||
|
Map<String, List<GroupingValue>> collect1 = collect.stream().filter(Objects::nonNull).collect(Collectors.groupingBy(GroupingValue::getPortraitSn));
|
||||||
|
collect1.forEach((Key, value) -> {
|
||||||
|
PortraitSnVO portraitSnVO = new PortraitSnVO();
|
||||||
|
portraitSnVO.setPortraitSn(Key);
|
||||||
|
portraitSnVO.setGroupingValues(value);
|
||||||
|
PortraitSnVOS.add(portraitSnVO);
|
||||||
|
});
|
||||||
|
labelFieldAndPartitionDict.setTaskPartitionDictId(aLong);
|
||||||
|
labelFieldAndPartitionDict.setTaskPartitionDictName(collect.get(0).getTaskPartitionDictName());
|
||||||
|
labelFieldAndPartitionDict.setPortraitSnVOList(PortraitSnVOS);
|
||||||
|
labelFieldAndPartitionDictList.add(labelFieldAndPartitionDict);
|
||||||
|
}
|
||||||
|
return labelFieldAndPartitionDictList;
|
||||||
}
|
}
|
||||||
//查询未维护标签及从患者表取值,患者视图无值返回分组,有值根据属性名遍历塞入
|
//查询未维护标签及从患者表取值,患者视图无值返回分组,有值根据属性名遍历塞入
|
||||||
List<GroupingValue> labelFieldContentList = labelFieldInfoMapper.selectLabelFieldInfoByTaskPartitionDictId(taskPartitionDictId);
|
groupingValues = labelFieldInfoMapper.selectLabelFieldInfoByTaskPartitionDictId(taskPartitionDictId);
|
||||||
JSONObject paramsValue = getParamsValue(patientId);
|
JSONObject paramsValue = getParamsValue(patientId);
|
||||||
if (CollectionUtils.isEmpty(labelFieldContentList)) {
|
if (CollectionUtils.isEmpty(groupingValues)) {
|
||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
//取患者表视图属性名
|
//取患者表视图属性名
|
||||||
@ -244,19 +275,27 @@ public class LabelFieldContentServiceImpl implements ILabelFieldContentService {
|
|||||||
}
|
}
|
||||||
//遍历分组,根据属性名塞入视图值
|
//遍历分组,根据属性名塞入视图值
|
||||||
List<String> asListStrings = Arrays.asList(strings);
|
List<String> asListStrings = Arrays.asList(strings);
|
||||||
for (GroupingValue groupingValue : labelFieldContentList) {
|
for (GroupingValue groupingValue : groupingValues) {
|
||||||
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组装数据
|
||||||
List<Long> collect = labelFieldContentList.stream().filter(Objects::nonNull).filter(item -> Objects.nonNull(item.getTaskPartitionDictId())).map(LabelFieldInfo::getTaskPartitionDictId).distinct().collect(Collectors.toList());
|
List<Long> collect = groupingValues.stream().filter(Objects::nonNull).filter(item -> Objects.nonNull(item.getTaskPartitionDictId())).map(LabelFieldInfo::getTaskPartitionDictId).distinct().collect(Collectors.toList());
|
||||||
List<LabelFieldAndPartitionDict> labelFieldAndPartitionDictList = new ArrayList<>();
|
List<LabelFieldAndPartitionDict> labelFieldAndPartitionDictList = new ArrayList<>();
|
||||||
for (Long aLong : collect) {
|
for (Long aLong : collect) {
|
||||||
List<PortraitSnVO> PortraitSnVOS = new ArrayList<>();
|
List<PortraitSnVO> PortraitSnVOS = new ArrayList<>();
|
||||||
LabelFieldAndPartitionDict labelFieldAndPartitionDict = new LabelFieldAndPartitionDict();
|
LabelFieldAndPartitionDict labelFieldAndPartitionDict = new LabelFieldAndPartitionDict();
|
||||||
PortraitSnVO portraitSnVO = new PortraitSnVO();
|
PortraitSnVO portraitSnVO = new PortraitSnVO();
|
||||||
List<GroupingValue> collect1 = labelFieldContentList.stream().filter(Objects::nonNull).filter(item -> aLong.equals(item.getTaskPartitionDictId())).collect(Collectors.toList());
|
List<GroupingValue> collect1 = groupingValues.stream().filter(Objects::nonNull).filter(item -> aLong.equals(item.getTaskPartitionDictId())).collect(Collectors.toList());
|
||||||
portraitSnVO.setGroupingValues(collect1);
|
portraitSnVO.setGroupingValues(collect1);
|
||||||
PortraitSnVOS.add(portraitSnVO);
|
PortraitSnVOS.add(portraitSnVO);
|
||||||
labelFieldAndPartitionDict.setTaskPartitionDictId(aLong);
|
labelFieldAndPartitionDict.setTaskPartitionDictId(aLong);
|
||||||
|
|||||||
@ -244,13 +244,15 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
for (Node node : scriptVO.getNodes()) {
|
for (Node node : scriptVO.getNodes()) {
|
||||||
node.setScriptInfoId(scriptVO.getScriptInfoId());
|
node.setScriptInfoId(scriptVO.getScriptInfoId());
|
||||||
String[] split = node.getLabel().split("\\n");
|
if (Objects.nonNull(node.getLabel())){
|
||||||
int i1 = node.getLabel().indexOf("\n");
|
String[] split = node.getLabel().split("\\n");
|
||||||
if (split.length > 0) {
|
int i1 = node.getLabel().indexOf("\n");
|
||||||
node.setScriptNodeName(split[0]);
|
if (split.length > 0) {
|
||||||
}
|
node.setScriptNodeName(split[0]);
|
||||||
if (split.length > 1) {
|
}
|
||||||
node.setScriptContent(node.getLabel().substring(i1 + 1));
|
if (split.length > 1) {
|
||||||
|
node.setScriptContent(node.getLabel().substring(i1 + 1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
node.setScriptNodeType(node.getType());
|
node.setScriptNodeType(node.getType());
|
||||||
node.setCreateBy(SecurityUtils.getUsername());
|
node.setCreateBy(SecurityUtils.getUsername());
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import java.util.stream.Collectors;
|
|||||||
/**
|
/**
|
||||||
* 机构树图信息对象vo agency
|
* 机构树图信息对象vo agency
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-02-26
|
* @date 2024-02-26
|
||||||
*/
|
*/
|
||||||
public class AgencyTreeVO implements Serializable {
|
public class AgencyTreeVO implements Serializable {
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 机构树图信息对象vo agency
|
* 机构树图信息对象vo agency
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-02-26
|
* @date 2024-02-26
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,12 @@ import lombok.Data;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医院科室联动vo agency
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-02-26
|
||||||
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class HospitalVO {
|
public class HospitalVO {
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,12 @@ import java.io.Serializable;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机构类型树图信息对象vo agency
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-02-27
|
||||||
|
*/
|
||||||
public class AgencyCategoryTreeVO implements Serializable {
|
public class AgencyCategoryTreeVO implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|||||||
@ -7,6 +7,12 @@ import lombok.EqualsAndHashCode;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机构类型树图信息对象vo agency
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-02-27
|
||||||
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
public class AgencyCategoryVO extends AgencyCategory {
|
public class AgencyCategoryVO extends AgencyCategory {
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
/**
|
/**
|
||||||
* 标签字段内容信息对象
|
* 标签字段内容信息对象
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-03-11
|
* @date 2024-03-11
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
|||||||
@ -4,9 +4,11 @@ import lombok.Data;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 画像编辑传值反值
|
* 画像编辑传值反值
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-06-15
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class LabelField {
|
public class LabelField {
|
||||||
|
|||||||
@ -5,6 +5,12 @@ import lombok.Data;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 画像编辑传值反值
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-06-15
|
||||||
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class LabelFieldAndPartitionDict {
|
public class LabelFieldAndPartitionDict {
|
||||||
|
|
||||||
|
|||||||
@ -7,8 +7,8 @@ import lombok.EqualsAndHashCode;
|
|||||||
/**
|
/**
|
||||||
* 标签字段内容信息对象 label_field_content
|
* 标签字段内容信息对象 label_field_content
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-03-11
|
* @date 2024-04-1
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
|||||||
@ -4,6 +4,12 @@ import lombok.Data;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 画像编辑传值反值
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-07-01
|
||||||
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class PortraitSnVO {
|
public class PortraitSnVO {
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import java.util.stream.Collectors;
|
|||||||
/**
|
/**
|
||||||
* 画像树图信息对象vo
|
* 画像树图信息对象vo
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-06-27
|
* @date 2024-06-27
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@ -10,8 +10,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 标签字段信息对象 label_field_info
|
* 标签字段信息对象 label_field_info
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-03-11
|
* @date 2024-04-01
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 患者问卷题目提交结果信息对象 patient_question_subject_result
|
* 患者问卷题目提交结果信息对象 patient_question_subject_result
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-03-28
|
* @date 2024-03-28
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 患者问卷提交结果信息对象 patient_question_submit_result
|
* 患者问卷提交结果信息对象 patient_question_submit_result
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-03-28
|
* @date 2024-03-28
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import org.springframework.format.annotation.DateTimeFormat;
|
|||||||
/**
|
/**
|
||||||
* 患者管理任务执行记录对象 patient_task_execute_record
|
* 患者管理任务执行记录对象 patient_task_execute_record
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-03-25
|
* @date 2024-03-25
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
package com.xinelu.manage.vo.questionInfo;
|
package com.xinelu.manage.vo.questionInfo;
|
||||||
|
|
||||||
|
|
||||||
import com.xinelu.manage.domain.questioninfo.QuestionInfo;
|
import com.xinelu.manage.domain.questioninfo.QuestionInfo;
|
||||||
import com.xinelu.manage.vo.questionsubject.QuestionSubjectVO;
|
import com.xinelu.manage.vo.questionsubject.QuestionSubjectVO;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@ -11,7 +10,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 问卷基本信息VO
|
* 问卷基本信息VO
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-02-28
|
* @date 2024-02-28
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 问卷题目信息对象 question_subject
|
* 问卷题目信息对象 question_subject
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-02-29
|
* @date 2024-02-29
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import java.math.BigDecimal;
|
|||||||
/**
|
/**
|
||||||
* 问卷题目选项答案对象 question_subject_option
|
* 问卷题目选项答案对象 question_subject_option
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-02-29
|
* @date 2024-02-29
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@ -4,6 +4,9 @@ import lombok.Data;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 话术信息分支表VO
|
* 话术信息分支表VO
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-06-13
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class Edge {
|
public class Edge {
|
||||||
|
|||||||
@ -4,6 +4,12 @@ import com.xinelu.manage.domain.scriptinfonode.ScriptInfoNode;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 话术信息分支表VO
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-06-13
|
||||||
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
public class Node extends ScriptInfoNode {
|
public class Node extends ScriptInfoNode {
|
||||||
|
|||||||
@ -3,6 +3,12 @@ package com.xinelu.manage.vo.signpatientmanageroute;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 话术类型代办处理详情返回VO
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-06-12
|
||||||
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class PhonePush {
|
public class PhonePush {
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
/**
|
/**
|
||||||
* 签约患者管理任务(路径)触发条件关系对象 sign_route_trigger_condition
|
* 签约患者管理任务(路径)触发条件关系对象 sign_route_trigger_condition
|
||||||
*
|
*
|
||||||
* @author haown
|
* @author zh
|
||||||
* @date 2024-03-18
|
* @date 2024-03-18
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@ -8,8 +8,8 @@ import lombok.EqualsAndHashCode;
|
|||||||
/**
|
/**
|
||||||
* 专病路径-管理节点信息对象 special_disease_node
|
* 专病路径-管理节点信息对象 special_disease_node
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-03-13
|
* @date 2024-03-29
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@ -12,8 +12,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 专病路径信息对象 special_disease_route
|
* 专病路径信息对象 special_disease_route
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-03-13
|
* @date 2024-03-29
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
@ -49,5 +49,8 @@ public class SpecialDiseaseRouteVO extends SpecialDiseaseRoute {
|
|||||||
*/
|
*/
|
||||||
List<TriggerConditionVO> triggerConditionList;
|
List<TriggerConditionVO> triggerConditionList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务包集合
|
||||||
|
*/
|
||||||
List<SpecialDiseaseRoutePackageVO> routePackageList;
|
List<SpecialDiseaseRoutePackageVO> routePackageList;
|
||||||
}
|
}
|
||||||
@ -7,12 +7,15 @@ import lombok.EqualsAndHashCode;
|
|||||||
/**
|
/**
|
||||||
* 专病路径-服务包关系(多对多关系)对象 special_disease_route_package
|
* 专病路径-服务包关系(多对多关系)对象 special_disease_route_package
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-04-09
|
* @date 2024-04-09
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class SpecialDiseaseRoutePackageVO extends SpecialDiseaseRoutePackage {
|
public class SpecialDiseaseRoutePackageVO extends SpecialDiseaseRoutePackage {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专病路径-服务包关系id
|
||||||
|
*/
|
||||||
private Long specialDiseaseRoutePackageId;
|
private Long specialDiseaseRoutePackageId;
|
||||||
}
|
}
|
||||||
@ -7,8 +7,8 @@ import lombok.EqualsAndHashCode;
|
|||||||
/**
|
/**
|
||||||
* 触发条件关系DTO
|
* 触发条件关系DTO
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-03-18
|
* @date 2024-03-29
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@ -5,9 +5,10 @@ import lombok.Data;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author ljh
|
* 区域信息VO
|
||||||
* @version 1.0
|
*
|
||||||
* Create by 2022/9/20 17:58
|
* @author zh
|
||||||
|
* @date 2024-03-29
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SysAreaVO implements Serializable {
|
public class SysAreaVO implements Serializable {
|
||||||
|
|||||||
@ -9,8 +9,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 任务类型字典对象 task_type_dict
|
* 任务类型字典对象 task_type_dict
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author ZH
|
||||||
* @date 2024-03-11
|
* @date 2024-07-03
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class TaskTypeDictVO {
|
public class TaskTypeDictVO {
|
||||||
@ -26,5 +26,8 @@ public class TaskTypeDictVO {
|
|||||||
@ApiModelProperty(value = "任务类型名称")
|
@ApiModelProperty(value = "任务类型名称")
|
||||||
private String taskTypeName;
|
private String taskTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 细分集合
|
||||||
|
*/
|
||||||
private List<TaskPartitionDict> taskPartitionDictList;
|
private List<TaskPartitionDict> taskPartitionDictList;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,8 +10,8 @@ import java.util.stream.Collectors;
|
|||||||
/**
|
/**
|
||||||
* 知识库树图信息对象vo
|
* 知识库树图信息对象vo
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-02-26
|
* @date 2024-06-13
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class TermBankTreeVO implements Serializable {
|
public class TermBankTreeVO implements Serializable {
|
||||||
|
|||||||
@ -8,17 +8,23 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 常用术语(知识库)对象 term_bank
|
* 常用术语(知识库)树图对象 term_bank
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author xinelu
|
||||||
* @date 2024-06-07
|
* @date 2024-06-11
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
public class TermBankVO extends TermBank {
|
public class TermBankVO extends TermBank {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标识
|
||||||
|
*/
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 子集合
|
||||||
|
*/
|
||||||
private List<TermBankVO> children = new ArrayList<TermBankVO>();
|
private List<TermBankVO> children = new ArrayList<TermBankVO>();
|
||||||
|
|
||||||
public List<TermBankVO> getChildren() {
|
public List<TermBankVO> getChildren() {
|
||||||
|
|||||||
@ -325,7 +325,7 @@
|
|||||||
where content.patient_id = #{patientId} and content.portrait_status='INUSE'
|
where content.patient_id = #{patientId} and content.portrait_status='INUSE'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="labelFieldAndPartitionDict" resultType="com.xinelu.manage.vo.labelfieldcontent.LabelFieldAndPartitionDict" resultMap="LabelFieldAndPartitionDictResult">
|
<select id="labelFieldAndPartitionDict" resultType="com.xinelu.manage.vo.labelfieldcontent.GroupingValue" >
|
||||||
select
|
select
|
||||||
lfi.id labelFieldInfoId,
|
lfi.id labelFieldInfoId,
|
||||||
lfi.field_name,
|
lfi.field_name,
|
||||||
|
|||||||
@ -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>
|
||||||
@ -17,7 +17,7 @@ import java.util.Objects;
|
|||||||
/**
|
/**
|
||||||
* 小程序首页Controller
|
* 小程序首页Controller
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-04-18
|
* @date 2024-04-18
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
|
|||||||
@ -14,7 +14,6 @@ import java.util.List;
|
|||||||
* @Description 院后小程序首页Mapper层
|
* @Description 院后小程序首页Mapper层
|
||||||
* @Author zh
|
* @Author zh
|
||||||
* @Date 2024-04-18
|
* @Date 2024-04-18
|
||||||
* @Version 1.0
|
|
||||||
*/
|
*/
|
||||||
public interface HomePageMapper {
|
public interface HomePageMapper {
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,12 @@ import com.xinelu.mobile.vo.myfollowup.MyFollowUpVO;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小程序首页Service
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-04-18
|
||||||
|
*/
|
||||||
public interface HomePageService {
|
public interface HomePageService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -52,6 +52,12 @@ import java.util.List;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小程序首页ServiceImpl
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-04-18
|
||||||
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class HomePageServiceImpl implements HomePageService {
|
public class HomePageServiceImpl implements HomePageService {
|
||||||
@ -61,8 +67,6 @@ public class HomePageServiceImpl implements HomePageService {
|
|||||||
@Resource
|
@Resource
|
||||||
private PageServiceUtil pageServiceUtil;
|
private PageServiceUtil pageServiceUtil;
|
||||||
@Resource
|
@Resource
|
||||||
private ScriptInfoMapper scriptInfoMapper;
|
|
||||||
@Resource
|
|
||||||
private QuestionInfoMapper questionInfoMapper;
|
private QuestionInfoMapper questionInfoMapper;
|
||||||
@Resource
|
@Resource
|
||||||
private QuestionSubjectMapper questionSubjectMapper;
|
private QuestionSubjectMapper questionSubjectMapper;
|
||||||
|
|||||||
@ -6,6 +6,9 @@ import lombok.Data;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 消息内容返回实体类
|
* 消息内容返回实体类
|
||||||
|
*
|
||||||
|
* @Author zh
|
||||||
|
* @Date 2024-07-8
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class MessageContentVO {
|
public class MessageContentVO {
|
||||||
|
|||||||
@ -4,6 +4,9 @@ import lombok.Data;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 消息列表返回VO
|
* 消息列表返回VO
|
||||||
|
*
|
||||||
|
* @Author zh
|
||||||
|
* @Date 2024-07-8
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class MessageTabulationVO {
|
public class MessageTabulationVO {
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import java.time.LocalDate;
|
|||||||
/**
|
/**
|
||||||
* 我的随访对象vo
|
* 我的随访对象vo
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
* @date 2024-04-18
|
* @date 2024-04-18
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@ -5,6 +5,12 @@ import lombok.Data;
|
|||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 居民满意度vo
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-04-18
|
||||||
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class SatisfactionQuestionnaire {
|
public class SatisfactionQuestionnaire {
|
||||||
|
|
||||||
@ -24,10 +30,13 @@ public class SatisfactionQuestionnaire {
|
|||||||
*/
|
*/
|
||||||
private Long templateId;
|
private Long templateId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否参加满意度 completed:完成;incomplete:未完成;
|
||||||
|
*/
|
||||||
private String sign;
|
private String sign;
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*
|
* 患者问卷id
|
||||||
*/
|
*/
|
||||||
private Long patientQuestionSubmitResultId;
|
private Long patientQuestionSubmitResultId;
|
||||||
}
|
}
|
||||||
@ -5,6 +5,13 @@ import lombok.Data;
|
|||||||
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 居民信息vo
|
||||||
|
*
|
||||||
|
* @author zh
|
||||||
|
* @date 2024-04-18
|
||||||
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class PatientVO {
|
public class PatientVO {
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import javax.annotation.Resource;
|
|||||||
/**
|
/**
|
||||||
* 消息推送
|
* 消息推送
|
||||||
*
|
*
|
||||||
* @author xinelu
|
* @author zh
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/monitor/messageSubscription")
|
@RequestMapping("/monitor/messageSubscription")
|
||||||
|
|||||||
@ -19,6 +19,11 @@ import java.util.List;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 消息推送定时任务业务层
|
||||||
|
* @Author zh
|
||||||
|
* @Date 2024-05-24
|
||||||
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class subscribeTaskServiceImpl implements SubscribeTaskService {
|
public class subscribeTaskServiceImpl implements SubscribeTaskService {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user