小程序测试修改。

This commit is contained in:
haown 2024-07-19 17:26:15 +08:00
parent 609f7a3f39
commit 952313b763
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package com.xinelu.manage.dto.signpatientmanageroutenode; package com.xinelu.manage.dto.signpatientmanageroutenode;
import com.xinelu.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.List; import java.util.List;
import lombok.Data; import lombok.Data;
@ -32,6 +33,13 @@ public class SignPatientManageRouteNodeDto {
@ApiModelProperty(value = "任务类型,电话外呼:PHONE_OUTBOUND,问卷量表:QUESTIONNAIRE_SCALE,宣教文章:PROPAGANDA_ARTICLE,文字提醒:TEXT_REMIND,人工随访:ARTIFICIAL_FOLLOW_UP") @ApiModelProperty(value = "任务类型,电话外呼:PHONE_OUTBOUND,问卷量表:QUESTIONNAIRE_SCALE,宣教文章:PROPAGANDA_ARTICLE,文字提醒:TEXT_REMIND,人工随访:ARTIFICIAL_FOLLOW_UP")
private String taskType; private String taskType;
/**
* 任务节点类型:PHONE_OUTBOUND:电话外呼(默认自动。人工或自动);QUESTIONNAIRE_SCALE:问卷量表(消息推送或人工随访);PROPAGANDA_ARTICLE:宣教文章;TEXT_REMIND:文字提醒(微信、短信、公众号)
*/
@ApiModelProperty(value = "任务节点类型")
@Excel(name = "任务节点类型")
private String taskNodeType;
/** 任务状态 */ /** 任务状态 */
@ApiModelProperty(value = "任务状态") @ApiModelProperty(value = "任务状态")
private String taskStatus; private String taskStatus;

View File

@ -839,6 +839,12 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
@Override @Override
public List<SignPatientManageNodeAuditVo> replaceNodeContent(SignPatientManageNodeAuditVo manageRouteNode, Long taskPartitionDictId, List<LabelFieldInfoContentVo> labelFieldContentList) { public List<SignPatientManageNodeAuditVo> replaceNodeContent(SignPatientManageNodeAuditVo manageRouteNode, Long taskPartitionDictId, List<LabelFieldInfoContentVo> labelFieldContentList) {
List<SignPatientManageNodeAuditVo> manageNodeList = new ArrayList<>(); List<SignPatientManageNodeAuditVo> manageNodeList = new ArrayList<>();
// 过滤掉适用范围为空的字段
labelFieldContentList.forEach(labelFieldInfoContentVo -> {
if (StringUtils.isBlank(labelFieldInfoContentVo.getApplyRange())) {
labelFieldInfoContentVo.setApplyRange(ApplyRangeContant.PUBLIC);
}
});
Map<String, List<LabelFieldInfoContentVo>> groupByRang = labelFieldContentList.stream().collect(Collectors.groupingBy(LabelFieldInfoContentVo::getApplyRange)); Map<String, List<LabelFieldInfoContentVo>> groupByRang = labelFieldContentList.stream().collect(Collectors.groupingBy(LabelFieldInfoContentVo::getApplyRange));
// 筛选应用范围是否有私用的画像 // 筛选应用范围是否有私用的画像
List<LabelFieldInfoContentVo> privateLabelFields = groupByRang.get(ApplyRangeContant.PRIVATE); List<LabelFieldInfoContentVo> privateLabelFields = groupByRang.get(ApplyRangeContant.PRIVATE);