| | |
| | | //任务发送记录 |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); |
| | | serviceSubtaskRecord.setSubtaskId(serviceSubtask.getId()); |
| | | serviceSubtaskRecord.setUuid(uuid); |
| | | serviceSubtaskRecord.setTasktype(serviceSubtask.getType()); |
| | | serviceSubtaskRecord.setPreachform("3"); |
| | |
| | | //任务发送记录 |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); |
| | | serviceSubtaskRecord.setSubtaskId(serviceSubtask.getId()); |
| | | serviceSubtaskRecord.setUuid(uuid); |
| | | serviceSubtaskRecord.setTasktype(serviceSubtask.getType()); |
| | | serviceSubtaskRecord.setPreachform("5"); |
| | |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.service.IServiceSubtaskRecordService; |
| | | import com.smartor.service.IServiceSubtaskService; |
| | | import com.sun.org.apache.bcel.internal.generic.NEW; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @Autowired |
| | | private IServiceSubtaskService serviceSubtaskService; |
| | | |
| | | @Autowired |
| | | private IServiceSubtaskRecordService serviceSubtaskRecordService; |
| | | |
| | | /** |
| | | * 查询患者随访信息 |
| | | */ |
| | |
| | | PageUtils.startPageByPost(serviceSubtaskVO.getPageNum(), serviceSubtaskVO.getPageSize()); |
| | | serviceSubtaskList = serviceSubtaskService.patItem(serviceSubtaskVO); |
| | | } |
| | | for (ServiceSubtask serviceSubtask : serviceSubtaskList) { |
| | | ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord(); |
| | | serviceSubtaskRecord.setSubtaskId(serviceSubtask.getId()); |
| | | serviceSubtaskRecord.setTaskid(serviceSubtask.getTaskid().toString()); |
| | | serviceSubtask.setServiceSubtaskRecordList(serviceSubtaskRecordService.selectServiceSubtaskRecordList(serviceSubtaskRecord)); |
| | | } |
| | | Map<String, Object> map = serviceSubtaskService.patItemCount(serviceSubtaskVO); |
| | | map.put("serviceSubtaskList", serviceSubtaskList); |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | |
| | | @ApiModelProperty(value = "是否必填(给人工用的,AI不用遵守)") |
| | | private String isMust; |
| | | |
| | | /** |
| | | * 组别 |
| | | */ |
| | | @Excel(name = "组别") |
| | | @ApiModelProperty(value = "组别") |
| | | private String groupName; |
| | | |
| | | // /** |
| | | // * 问题结果(给“值类型”是文本或者数值用的) |
| | | // */ |
| | |
| | | private String noMatchVoice; |
| | | |
| | | /** |
| | | * 组别 |
| | | */ |
| | | @Excel(name = "组别") |
| | | @ApiModelProperty(value = "组别") |
| | | private String groupName; |
| | | |
| | | |
| | | /** |
| | | * 静默话术 |
| | | */ |
| | | @Excel(name = "静默话术") |
| | |
| | | @ApiModelProperty(value = "分数") |
| | | private BigDecimal score; |
| | | |
| | | /** |
| | | * 组别 |
| | | */ |
| | | @Excel(name = "组别") |
| | | @ApiModelProperty(value = "组别") |
| | | private String groupName; |
| | | |
| | | |
| | | /** |
| | | * 适用题型(1.单选 2多选 3填空 4其它) |
| | |
| | | private String noClearlyVoice; |
| | | |
| | | /** |
| | | * 组别 |
| | | */ |
| | | @Excel(name = "组别") |
| | | @ApiModelProperty(value = "组别") |
| | | private String groupName; |
| | | |
| | | /** |
| | | * 类别名 |
| | | */ |
| | | @Excel(name = "类别名") |
| | |
| | | */ |
| | | @Excel(name = " 宣教形式 : 1,短信、2,线下、3,语音、4,视频、5,纸质 6.二维码 7.钉钉 8.微信") |
| | | @ApiModelProperty("宣教形式 : 1,短信、2,线下、3,语音、4,视频、5,纸质 6.链接 7.钉钉 8.微信") |
| | | private String serviceform; |
| | | private String preachform; |
| | | |
| | | /** |
| | | * 床号 |
| | |
| | | @ApiModelProperty(value = "出院部门编号集合") |
| | | private List<String> leaveldeptcodes; |
| | | |
| | | @ApiModelProperty(value = "发送详情") |
| | | private List<ServiceSubtaskRecord> serviceSubtaskRecordList; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "指标选项汇总") |
| | | private String targetoptions; |
| | | |
| | | @ApiModelProperty(value = "组别") |
| | | private String groupName; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("svy_lib_script题目id") |
| | | private Long scriptid; |
| | | |
| | | @ApiModelProperty(value = "组别") |
| | | private String groupName; |
| | | |
| | | /** |
| | | * 题目类型;枚举 1.单选 2多选 3填空 4其它 |
| | |
| | | @ApiModelProperty(value = "序号") |
| | | private Long xh; |
| | | |
| | | @ApiModelProperty(value = "组别") |
| | | private String groupName; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("排序") |
| | | private Long sort; |
| | | |
| | | @ApiModelProperty(value = "组别") |
| | | private String groupName; |
| | | |
| | | |
| | | /** |
| | | * 话术选项 |
| | |
| | | serviceSubtask.setStarttime(patMedInhosp1.getStarttime()); |
| | | serviceSubtask.setEndtime(patMedInhosp1.getEndtime()); |
| | | serviceSubtask.setServiceType("2"); |
| | | serviceSubtask.setServiceform(serviceTask.getPreachform()); |
| | | serviceSubtask.setPreachform(serviceTask.getPreachform()); |
| | | serviceSubtask.setHospType("2"); |
| | | serviceSubtask.setCreateTime(new Date()); |
| | | serviceSubtask.setUpdateTime(new Date()); |
| | |
| | | Pattern pattern2 = Pattern.compile(ivrLibaExtemplatescript.getSelfRegex2()); |
| | | matcher2 = pattern2.matcher(returnQues.getContent()); |
| | | } |
| | | log.info("++++++++++++++++++++++++++通用库是否为空:selfRegex : {} , selfRegex2 : {}", ivrLibaExtemplatescript.getSelfRegex(), ivrLibaExtemplatescript.getSelfRegex2()); |
| | | log.error("++++++++++++++++++++++++++通用库是否为空:selfRegex : {} , selfRegex2 : {}", ivrLibaExtemplatescript.getSelfRegex(), ivrLibaExtemplatescript.getSelfRegex2()); |
| | | if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex()) && matcher.matches() && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaExtemplatescript.getSelfRegex()) && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex()) && matcher.matches()) { |
| | | QuestionMessage questionMessage = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "returnQues"); |
| | | IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO = returnQues.getNowQuestion(); |
| | |
| | | <result property="branchNextscriptno" column="branch_nextscriptno"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="score" column="score"/> |
| | | <result property="groupName" column="group_name"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateScriptVo"> |
| | | select id, |
| | | scriptno, |
| | | sort, |
| | | group_name, |
| | | branch_flag, |
| | | branch_nextscriptno, |
| | | templateid, |
| | |
| | | <where> |
| | | del_flag=0 |
| | | <if test="scriptno != null ">and scriptno = #{scriptno}</if> |
| | | <if test="groupName != null ">and group_name = #{groupName}</if> |
| | | <if test="scriptDesc != null ">and script_desc = #{scriptDesc}</if> |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="scriptPoint != null and scriptPoint != ''">and script_point = #{scriptPoint}</if> |
| | |
| | | <if test="sort != null ">sort,</if> |
| | | <if test="score != null ">score,</if> |
| | | <if test="ivrtext != null ">ivrtext,</if> |
| | | <if test="groupName != null ">group_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptno != null">#{scriptno},</if> |
| | |
| | | <if test="sort != null ">#{sort},</if> |
| | | <if test="score != null ">#{score},</if> |
| | | <if test="ivrtext != null ">#{ivrtext},</if> |
| | | <if test="groupName != null ">#{groupName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="ivrtext != null ">ivrtext = #{ivrtext},</if> |
| | | <if test="branchFlag != null and branchFlag != ''">branch_flag = #{branchFlag},</if> |
| | | <if test="score != null ">score = #{score},</if> |
| | | <if test="groupName != null ">group_name = #{groupName},</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">branch_nextscriptno = |
| | | #{branchNextscriptno}, |
| | | </if> |
| | |
| | | <result property="sort" column="sort"/> |
| | | <result property="score" column="score"/> |
| | | <result property="ivrtext" column="ivrtext"/> |
| | | <result property="groupName" column=" group_name"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateScriptVo"> |
| | |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="textParam" column="text_param"/> |
| | | <result property="serviceform" column="serviceform"/> |
| | | <result property="preachform" column="preachform"/> |
| | | <result property="bedNo" column="bed_no"/> |
| | | <result property="sendType" column="send_type"/> |
| | | <result property="taskName" column="task_name"/> |
| | |
| | | pid, |
| | | guid, |
| | | text_param, |
| | | serviceform, |
| | | preachform, |
| | | bed_no, |
| | | send_type, |
| | | task_name, |
| | |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="serviceform != null ">and serviceform = #{serviceform}</if> |
| | | <if test="preachform != null ">and preachform = #{preachform}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="textParam != null and textParam != ''">and text_param = #{textParam}</if> |
| | | <if test="bedNo != null">and bed_no = #{bedNo}</if> |
| | |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="textParam != null">text_param,</if> |
| | | <if test="serviceform != null">serviceform,</if> |
| | | <if test="preachform != null">preachform,</if> |
| | | <if test="bedNo != null">bed_no,</if> |
| | | <if test="sendType != null and sendType != ''">send_type,</if> |
| | | <if test="taskName != null and taskName != ''">task_name,</if> |
| | |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="textParam != null">#{textParam},</if> |
| | | <if test="serviceform != null">#{serviceform},</if> |
| | | <if test="preachform != null">#{preachform},</if> |
| | | <if test="bedNo != null">#{bedNo},</if> |
| | | <if test="sendType != null and sendType != ''">#{sendType},</if> |
| | | <if test="taskName != null and taskName != ''">#{taskName},</if> |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="textParam != null">text_param = #{textParam},</if> |
| | | <if test="serviceform != null">serviceform = #{serviceform},</if> |
| | | <if test="preachform != null">preachform = #{preachform},</if> |
| | | <if test="bedNo != null">bed_no = #{bedNo},</if> |
| | | <if test="sendType != null and sendType != ''">send_type = #{sendType},</if> |
| | | <if test="taskName != null and taskName != ''">task_name = #{taskName},</if> |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="textParam != null">text_param = #{textParam},</if> |
| | | <if test="serviceform != null">serviceform = #{serviceform},</if> |
| | | <if test="preachform != null">preachform = #{preachform},</if> |
| | | <if test="bedNo != null">bed_no = #{bedNo},</if> |
| | | <if test="sendType != null and sendType != ''">send_type = #{sendType},</if> |
| | | <if test="taskName != null and taskName != ''">task_name = #{taskName},</if> |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="textParam != null">text_param = #{textParam},</if> |
| | | <if test="serviceform != null">serviceform = #{serviceform},</if> |
| | | <if test="preachform != null">preachform = #{preachform},</if> |
| | | <if test="bedNo != null">bed_no = #{bedNo},</if> |
| | | <if test="sendType != null and sendType != ''">send_type = #{sendType},</if> |
| | | <if test="taskName != null and taskName != ''">task_name = #{taskName},</if> |
| | |
| | | pid, |
| | | guid, |
| | | text_param, |
| | | serviceform, |
| | | preachform, |
| | | bed_no, |
| | | send_type, |
| | | task_name, |
| | |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskRecord" id="ServiceSubtaskRecordResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="subtaskId" column="subtask_id"/> |
| | | <result property="uuid" column="uuid"/> |
| | | <result property="tasktype" column="tasktype"/> |
| | | <result property="preachform" column="preachform"/> |
| | |
| | | <sql id="selectServiceSubtaskRecordVo"> |
| | | select id, |
| | | taskid, |
| | | subtask_id, |
| | | uuid, |
| | | tasktype, |
| | | preachform, |
| | |
| | | <include refid="selectServiceSubtaskRecordVo"/> |
| | | <where> |
| | | <if test="taskid != null and taskid != ''">and taskid = #{taskid}</if> |
| | | <if test="subtaskId != null ">and subtask_id = #{subtaskId}</if> |
| | | <if test="uuid != null and uuid != ''">and uuid = #{uuid}</if> |
| | | <if test="tasktype != null and tasktype != ''">and tasktype = #{tasktype}</if> |
| | | <if test="preachform != null and preachform != ''">and preachform = #{preachform}</if> |
| | |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="subtaskId != null ">subtask_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="subtaskId != null ">#{subtaskId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="subtaskId != null ">subtask_id = #{subtaskId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="targetoptions" column="targetoptions"/> |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="groupName" column="group_name"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateScriptVo"> |
| | | select id, |
| | | script_type, |
| | | targetid, |
| | | group_name, |
| | | targetname, |
| | | score, |
| | | prompt, |
| | |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | <if test="groupName != null">and group_name = #{groupName}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="targettype != null and targettype != ''">targettype,</if> |
| | | <if test="targetoptions != null and targetoptions != ''">targetoptions,</if> |
| | | <if test="prompt != null and prompt != ''">prompt,</if> |
| | | <if test="groupName != null and groupName != ''">group_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="nextScriptno != null">#{nextScriptno},</if> |
| | |
| | | <if test="targettype != null and targettype != ''">#{targettype},</if> |
| | | <if test="targetoptions != null and targetoptions != ''">#{targetoptions},</if> |
| | | <if test="prompt != null and prompt != ''">#{prompt},</if> |
| | | <if test="groupName != null and groupName != ''">#{groupName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="targettype != null and targettype != ''">targettype = #{targettype},</if> |
| | | <if test="targetoptions != null and targetoptions != ''">targetoptions = #{targetoptions},</if> |
| | | <if test="prompt != null and prompt != ''">prompt = #{prompt},</if> |
| | | <if test="groupName != null and groupName != ''">group_name = #{groupName},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="score" column="score"/> |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="groupName" column="group_name"/> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | select id, |
| | | sort, |
| | | prompt, |
| | | group_name, |
| | | branch_flag, |
| | | branch_nextscriptno, |
| | | score, |
| | |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="score != null ">and score = #{score}</if> |
| | | <if test="prompt != null ">and prompt = #{prompt}</if> |
| | | <if test="groupName != null ">and group_name = #{groupName}</if> |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | |
| | | <if test="targettype != null and targettype != ''">targettype,</if> |
| | | <if test="score != null ">score,</if> |
| | | <if test="prompt != null ">prompt,</if> |
| | | <if test="groupName != null ">group_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="targettype != null and targettype != ''">#{targettype},</if> |
| | | <if test="score != null ">#{score},</if> |
| | | <if test="prompt != null ">#{prompt},</if> |
| | | <if test="groupName != null ">#{groupName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="targettype != null and targettype != ''">targettype = #{targettype},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="prompt != null">prompt = #{prompt},</if> |
| | | <if test="groupName != null ">group_name = #{groupName},</if> |
| | | </trim> |
| | | where id = #{d} |
| | | </update> |