1、根据流水号sn查询任务id,增加limit 1

2、任务查询结果,增加外呼结果状态
This commit is contained in:
zhuangyuanke 2024-12-13 18:20:25 +08:00
parent 8417760a5e
commit c7a6f5381b
4 changed files with 7 additions and 2 deletions

View File

@ -389,7 +389,7 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
if (manualFollowUpDTO.getNodeExecuteStatus().equals(NodeExecuteStatusEnum.EXECUTED.getInfo())) {
return manualFollowUpVOS;
}
//2.2如果是查询所有"未执行“任务,则这届返回查询结果
//2.2如果是查询所有"未执行“任务,则直接返回查询结果
if (StringUtils.isNotBlank(manualFollowUpDTO.getTimeSign()) && manualFollowUpDTO.getTimeSign().equals("WHOLE")) {
return manualFollowUpVOS;
}

View File

@ -128,6 +128,9 @@ public class ManualFollowUpVO {
@ApiModelProperty(value = "节点任务执行状态已执行EXECUTED未执行UNEXECUTED")
private String nodeExecuteStatus;
@ApiModelProperty(value = "电话拨通情况SUCCESS成功FAILURE失败EXPIRED超期自动作废如超期一周NULL或空字符串缺省值表示未执行")
private String phoneNodeExecuteResultStatus;
@ApiModelProperty(value = "任务执行记录id")
private Long taskExecuteRecordId;

View File

@ -47,6 +47,7 @@
<if test="aiobTaskType !=null">
and aiob_task_type = #{aiobTaskType}
</if>
limit 1
</select>
<select id="selectList" resultType="com.xinelu.manage.domain.scriptinfotaskinfo.ScriptInfoTaskInfo">

View File

@ -354,7 +354,8 @@
spmrn.route_handle_remark,
spmrn.phone_dial_method,
spmrn.task_excute_type,
spmrn.node_plan_time
spmrn.node_plan_time,
spmrn.phone_node_execute_result_status
FROM
sign_patient_manage_route spmr
LEFT JOIN sign_patient_manage_route_node spmrn ON spmr.id = spmrn.manage_route_id