修改测试问题。

This commit is contained in:
haown 2024-04-19 09:46:27 +08:00
parent ae3563469c
commit 71a9764480
3 changed files with 14 additions and 4 deletions

View File

@ -2,7 +2,7 @@ package com.xinelu.manage.dto.signpatientmanageroutenode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import java.time.LocalDate;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@ -32,12 +32,12 @@ public class PatientTaskDto {
/** 出院时间开始格式yyyy-MM-dd HH:mm:ss */
@ApiModelProperty(value = "出院时间开始格式yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private LocalDateTime dischargeTimeStart;
private LocalDate dischargeTimeStart;
/** 出院时间结束格式yyyy-MM-dd HH:mm:ss */
@ApiModelProperty(value = "出院时间结束格式yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private LocalDateTime dischargeTimeEnd;
private LocalDate dischargeTimeEnd;
/** 所属医院id */
@ApiModelProperty(value = "所属医院id")
@ -71,4 +71,7 @@ public class PatientTaskDto {
@ApiModelProperty(value = "任务类型电话外呼PHONE_OUTBOUND问卷量表QUESTIONNAIRE_SCALE宣教文章PROPAGANDA_ARTICLE文字提醒TEXT_REMIND人工随访ARTIFICIAL_FOLLOW_UP")
private String taskType;
@ApiModelProperty(value = "患者来源微信小程序WE_CHAT_APPLET微信公众号WE_CHAT_OFFICIAL_ACCOUNT管理端MANAGE_END")
private String patientSource;
}

View File

@ -110,9 +110,10 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
List<SignPatientManageRouteNode> allNodeList = signPatientManageRouteNodeMapper.getNodeList(patientTaskDto);
// 根据任务id进行分组
Map<Long, List<SignPatientManageRouteNode>> groupByRoute = allNodeList.stream().collect(Collectors.groupingBy(SignPatientManageRouteNode::getManageRouteId));
List<SignPatientManageRouteNodeInfoVo> nodeInfoVoList = new ArrayList<>();
SpecialDiseaseRouteVO specialDiseaseRoute = null;
for (Long manageRouteId : groupByRoute.keySet()) {
List<SignPatientManageRouteNodeInfoVo> nodeInfoVoList = new ArrayList<>();
List<SignPatientManageRouteNode> nodeList = groupByRoute.get(manageRouteId);
SignPatientManageRoute manageRoute = signRouteMapper.selectSignPatientManageRouteById(manageRouteId);
// 判断手动创建或自动生成

View File

@ -681,6 +681,12 @@
<if test="dischargeTimeEnd != null ">
and date_format(patient.discharge_time,'%y%m%d') &lt;= date_format(#{dischargeTimeEnd},'%y%m%d')
</if>
<if test="taskCreateType != null ">
and route.task_create_type = #{taskCreateType}
</if>
<if test="patientSource != null ">
and patient.patient_source like concat('%', #{patientSource}, '%')
</if>
</where>
group by patient.hospital_agency_id, patient.id
</select>