修改小程序端任务列表。

This commit is contained in:
haown 2024-04-25 17:04:40 +08:00
parent ccba16ee5b
commit ed5c15990b
8 changed files with 25 additions and 86 deletions

View File

@ -17,7 +17,7 @@ public interface IPatientInfoService {
* @param id 患者信息主键 * @param id 患者信息主键
* @return 患者信息 * @return 患者信息
*/ */
public PatientInfo selectPatientInfoById(Long id); PatientInfo selectPatientInfoById(Long id);
/** /**
* 查询患者信息列表 * 查询患者信息列表
@ -25,7 +25,7 @@ public interface IPatientInfoService {
* @param patientInfo 患者信息 * @param patientInfo 患者信息
* @return 患者信息集合 * @return 患者信息集合
*/ */
public List<PatientInfo> selectPatientInfoList(PatientInfoDto patientInfo); List<PatientInfo> selectPatientInfoList(PatientInfoDto patientInfo);
/** /**
* 新增患者信息 * 新增患者信息
@ -41,7 +41,7 @@ public interface IPatientInfoService {
* @param patientInfo 患者信息 * @param patientInfo 患者信息
* @return 结果 * @return 结果
*/ */
public PatientInfo updatePatientInfo(PatientInfo patientInfo); PatientInfo updatePatientInfo(PatientInfo patientInfo);
/** /**
* 批量删除患者信息 * 批量删除患者信息
@ -49,7 +49,7 @@ public interface IPatientInfoService {
* @param ids 需要删除的患者信息主键集合 * @param ids 需要删除的患者信息主键集合
* @return 结果 * @return 结果
*/ */
public int deletePatientInfoByIds(Long[] ids); int deletePatientInfoByIds(Long[] ids);
/** /**
* 删除患者信息信息 * 删除患者信息信息
@ -57,5 +57,5 @@ public interface IPatientInfoService {
* @param id 患者信息主键 * @param id 患者信息主键
* @return 结果 * @return 结果
*/ */
public int deletePatientInfoById(Long id); int deletePatientInfoById(Long id);
} }

View File

@ -5,7 +5,7 @@ import com.xinelu.manage.dto.signpatientmanageroutenode.MobilePatientTaskDto;
import com.xinelu.manage.dto.signpatientmanageroutenode.PatientTaskDto; import com.xinelu.manage.dto.signpatientmanageroutenode.PatientTaskDto;
import com.xinelu.manage.dto.signpatientmanageroutenode.RouteNodeCheckDto; import com.xinelu.manage.dto.signpatientmanageroutenode.RouteNodeCheckDto;
import com.xinelu.manage.dto.signpatientmanageroutenode.SignPatientManageRouteNodeDto; import com.xinelu.manage.dto.signpatientmanageroutenode.SignPatientManageRouteNodeDto;
import com.xinelu.manage.vo.signpatientmanageroutenode.MobileRouteNodeListVo; import com.xinelu.manage.vo.signpatientmanageroutenode.AppletRouteNodeListVo;
import com.xinelu.manage.vo.signpatientmanageroutenode.PatientTaskVo; import com.xinelu.manage.vo.signpatientmanageroutenode.PatientTaskVo;
import com.xinelu.manage.vo.signpatientmanageroutenode.SignPatientManageRouteNodeVo; import com.xinelu.manage.vo.signpatientmanageroutenode.SignPatientManageRouteNodeVo;
import java.util.List; import java.util.List;
@ -24,7 +24,7 @@ public interface ISignPatientManageRouteNodeService {
* @param id 签约患者管理任务路径节点主键 * @param id 签约患者管理任务路径节点主键
* @return 签约患者管理任务路径节点 * @return 签约患者管理任务路径节点
*/ */
public SignPatientManageRouteNode selectSignPatientManageRouteNodeById(Long id); SignPatientManageRouteNode selectSignPatientManageRouteNodeById(Long id);
/** /**
* 查询患者管理路径节点 * 查询患者管理路径节点
@ -55,7 +55,7 @@ public interface ISignPatientManageRouteNodeService {
* @param signPatientManageRouteNode 签约患者管理任务路径节点 * @param signPatientManageRouteNode 签约患者管理任务路径节点
* @return 结果 * @return 结果
*/ */
public int insertSignPatientManageRouteNode(SignPatientManageRouteNode signPatientManageRouteNode); int insertSignPatientManageRouteNode(SignPatientManageRouteNode signPatientManageRouteNode);
/** /**
* 修改签约患者管理任务路径节点 * 修改签约患者管理任务路径节点
@ -100,6 +100,6 @@ public interface ISignPatientManageRouteNodeService {
* @param mobilePatientTaskDto 小程序任务列表查询传输对象 * @param mobilePatientTaskDto 小程序任务列表查询传输对象
* @return * @return
*/ */
List<MobileRouteNodeListVo> getMobileTaskList(MobilePatientTaskDto mobilePatientTaskDto); List<AppletRouteNodeListVo> getMobileTaskList(MobilePatientTaskDto mobilePatientTaskDto);
} }

View File

@ -31,7 +31,7 @@ import com.xinelu.manage.service.signpatientmanageroutenode.ISignPatientManageRo
import com.xinelu.manage.service.specialdiseaseroute.ISpecialDiseaseRouteService; import com.xinelu.manage.service.specialdiseaseroute.ISpecialDiseaseRouteService;
import com.xinelu.manage.vo.propagandainfo.PropagandaMaterialsVo; import com.xinelu.manage.vo.propagandainfo.PropagandaMaterialsVo;
import com.xinelu.manage.vo.questionInfo.QuestionVO; import com.xinelu.manage.vo.questionInfo.QuestionVO;
import com.xinelu.manage.vo.signpatientmanageroutenode.MobileRouteNodeListVo; import com.xinelu.manage.vo.signpatientmanageroutenode.AppletRouteNodeListVo;
import com.xinelu.manage.vo.signpatientmanageroutenode.PatientTaskVo; import com.xinelu.manage.vo.signpatientmanageroutenode.PatientTaskVo;
import com.xinelu.manage.vo.signpatientmanageroutenode.SignPatientManageRouteNodeInfoVo; import com.xinelu.manage.vo.signpatientmanageroutenode.SignPatientManageRouteNodeInfoVo;
import com.xinelu.manage.vo.signpatientmanageroutenode.SignPatientManageRouteNodeVo; import com.xinelu.manage.vo.signpatientmanageroutenode.SignPatientManageRouteNodeVo;
@ -252,9 +252,9 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
return flag; return flag;
} }
@Override public List<MobileRouteNodeListVo> getMobileTaskList(MobilePatientTaskDto mobilePatientTaskDto) { @Override public List<AppletRouteNodeListVo> getMobileTaskList(MobilePatientTaskDto mobilePatientTaskDto) {
// 根据居民信息表主键查询患者信息 // 根据居民信息表主键查询患者信息
List<MobileRouteNodeListVo> retList = new ArrayList<>(); List<AppletRouteNodeListVo> retList = new ArrayList<>();
// 查询患者表信息 // 查询患者表信息
PatientInfoDto patientQuery = new PatientInfoDto(); PatientInfoDto patientQuery = new PatientInfoDto();
patientQuery.setResidentId(mobilePatientTaskDto.getResidentId()); patientQuery.setResidentId(mobilePatientTaskDto.getResidentId());
@ -317,8 +317,9 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
executeTime = LocalDateTime.of(patientVisitRecord.getVisitDate().plusDays(node.getRouteNodeDay()).toLocalDate(), et); executeTime = LocalDateTime.of(patientVisitRecord.getVisitDate().plusDays(node.getRouteNodeDay()).toLocalDate(), et);
break; break;
} }
retList.add(MobileRouteNodeListVo.builder() retList.add(AppletRouteNodeListVo.builder()
.id(node.getId()) .id(node.getId())
.patientName(patientInfo.getPatientName())
.hospitalAgencyName(patientVisitRecord.getHospitalAgencyName()) .hospitalAgencyName(patientVisitRecord.getHospitalAgencyName())
.manageRouteId(node.getManageRouteId()) .manageRouteId(node.getManageRouteId())
.manageRouteName(node.getManageRouteName()) .manageRouteName(node.getManageRouteName())
@ -332,7 +333,7 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
} }
// 按照时间顺序排序 // 按照时间顺序排序
if (CollectionUtils.isNotEmpty(retList)) { if (CollectionUtils.isNotEmpty(retList)) {
retList = retList.stream().sorted(Comparator.comparing(MobileRouteNodeListVo::getExecuteTime)).collect(Collectors.toList()); retList = retList.stream().sorted(Comparator.comparing(AppletRouteNodeListVo::getExecuteTime)).collect(Collectors.toList());
} }
return retList; return retList;
} }

View File

@ -19,11 +19,17 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class MobileRouteNodeListVo { public class AppletRouteNodeListVo {
/** 主键id */ /** 主键id */
private Long id; private Long id;
/**
* 患者姓名
*/
@ApiModelProperty(value = "患者姓名")
private String patientName;
/** 所属医院名称 */ /** 所属医院名称 */
@ApiModelProperty(value = "所属医院名称") @ApiModelProperty(value = "所属医院名称")
private String hospitalAgencyName; private String hospitalAgencyName;

View File

@ -5,7 +5,7 @@ import com.xinelu.common.core.domain.R;
import com.xinelu.manage.domain.signpatientmanageroutenode.SignPatientManageRouteNode; import com.xinelu.manage.domain.signpatientmanageroutenode.SignPatientManageRouteNode;
import com.xinelu.manage.dto.signpatientmanageroutenode.MobilePatientTaskDto; import com.xinelu.manage.dto.signpatientmanageroutenode.MobilePatientTaskDto;
import com.xinelu.manage.service.signpatientmanageroutenode.ISignPatientManageRouteNodeService; import com.xinelu.manage.service.signpatientmanageroutenode.ISignPatientManageRouteNodeService;
import com.xinelu.manage.vo.signpatientmanageroutenode.MobileRouteNodeListVo; import com.xinelu.manage.vo.signpatientmanageroutenode.AppletRouteNodeListVo;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import java.util.List; import java.util.List;
@ -33,8 +33,8 @@ public class AppletSignPatientTaskController extends BaseController {
*/ */
@ApiOperation("任务列表列表") @ApiOperation("任务列表列表")
@GetMapping("/getTaskList") @GetMapping("/getTaskList")
public R<List<MobileRouteNodeListVo>> getMobileTaskList(@Valid MobilePatientTaskDto mobilePatientTaskDto) { public R<List<AppletRouteNodeListVo>> getMobileTaskList(@Valid MobilePatientTaskDto mobilePatientTaskDto) {
List<MobileRouteNodeListVo> list = signNodeService.getMobileTaskList(mobilePatientTaskDto); List<AppletRouteNodeListVo> list = signNodeService.getMobileTaskList(mobilePatientTaskDto);
return R.ok(list); return R.ok(list);
} }

View File

@ -1,10 +0,0 @@
package com.xinelu.mobile.service;
/**
* @Description 测试service接口
* @Author 纪寒
* @Date 2024-02-18 17:00:31
* @Version 1.0
*/
public interface MobileTestService {
}

View File

@ -1,14 +0,0 @@
package com.xinelu.mobile.service.impl;
import com.xinelu.mobile.service.MobileTestService;
import org.springframework.stereotype.Service;
/**
* @Description 测试service实现类
* @Author 纪寒
* @Date 2024-02-18 17:00:54
* @Version 1.0
*/
@Service
public class MobileTestServiceImpl implements MobileTestService {
}

View File

@ -1,44 +0,0 @@
package com.xinelu.mobile.vo.signpatientmanageroutenode;
import com.xinelu.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @description: 患者管理路径节点查询返回视图类
* @author: haown
* @create: 2024-04-17 11:04
**/
@ApiModel("患者管理路径节点查询返回视图类")
@Data
public class MobileRouteNodeListVo {
/** 主键id */
private Long id;
/** 签约患者管理任务表id */
@ApiModelProperty(value = "签约患者管理任务表id")
@Excel(name = "签约患者管理任务表id")
private Long manageRouteId;
/** 路径名称(任务名称) */
@ApiModelProperty(value = "路径名称")
@Excel(name = "路径名称", readConverterExp = "任=务名称")
private String manageRouteName;
/** 管理路径节点名称 */
@ApiModelProperty(value = "管理路径节点名称")
@Excel(name = "管理路径节点名称")
private String routeNodeName;
/** 管理路径节点时间,时间单位为:天 */
@ApiModelProperty(value = "管理路径节点时间,时间单位为:天")
@Excel(name = "管理路径节点时间,时间单位为:天")
private Integer routeNodeDay;
/** 任务类型电话外呼PHONE_OUTBOUND问卷量表QUESTIONNAIRE_SCALE宣教文章PROPAGANDA_ARTICLE文字提醒TEXT_REMIND人工随访ARTIFICIAL_FOLLOW_UP */
@ApiModelProperty(value = "任务类型电话外呼PHONE_OUTBOUND问卷量表QUESTIONNAIRE_SCALE宣教文章PROPAGANDA_ARTICLE文字提醒TEXT_REMIND人工随访ARTIFICIAL_FOLLOW_UP")
@Excel(name = "任务类型电话外呼PHONE_OUTBOUND问卷量表QUESTIONNAIRE_SCALE宣教文章PROPAGANDA_ARTICLE文字提醒TEXT_REMIND人工随访ARTIFICIAL_FOLLOW_UP")
private String taskType;
}