小程序测试修改。

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);