| | |
| | | @ApiModelProperty(value = "报备科室编码(如果多个科室用逗号分割)") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | |
| | | // /** |
| | | // * 问题结果(给“值类型”是文本或者数值用的) |
| | | // */ |
| | |
| | | @ApiModelProperty(value = "报备科室编码(如果多个科室用逗号分割)") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * 话术选项 |
| | | */ |
| | |
| | | @ApiModelProperty(value = "报备科室编码(如果多个科室用逗号分割)") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * 问题选项 |
| | | */ |
| | |
| | | @ApiModelProperty(value = "报备科室编码(如果多个科室用逗号分割)") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * 话术选项 |
| | | */ |
| | |
| | | * 处理详细说明(处理科室) |
| | | */ |
| | | @ApiModelProperty("处理详细说明(处理科室)") |
| | | @Excel(name = "处理详细说明", readConverterExp = "处=理科室") |
| | | @Excel(name = "处理详细说明", readConverterExp = "处理科室") |
| | | private String handledesc; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty("问题维度") |
| | | private String dimension; |
| | | |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | @ApiModelProperty(value = "报备科室编码(如果多个科室用逗号分割)") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * 问券题目分类ID集合 |
| | | */ |
| | |
| | | @ApiModelProperty(value = "报备科室编码(如果多个科室用逗号分割)") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | |
| | | @Excel(name = "分类ID集合") |
| | | @ApiModelProperty(value = "分类ID集合") |
| | | private List<Long> categoryids; |
| | |
| | | @ApiModelProperty(value = "报备科室编码(如果多个科室用逗号分割)") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * 问券题目分类ID集合 |
| | |
| | | @ApiModelProperty(value = "报备科室编码(如果多个科室用逗号分割)") |
| | | private String reportDeptCode; |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * 问券题目分类ID集合 |
| | | */ |
| | |
| | | @ApiModelProperty("处理科室名称") |
| | | @Excel(name = "处理科室名称") |
| | | private String todeptname; |
| | | |
| | | |
| | | /** |
| | | * 问题类型:语音、问卷 |
| | | */ |
| | |
| | | */ |
| | | @ApiModelProperty("问题维度") |
| | | private String dimension; |
| | | |
| | | @Excel(name = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人名称(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonName; |
| | | |
| | | @Excel(name = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "责任科室责任人编码(如果多个科室用逗号分割)") |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "报备科室责任人名称(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室名称(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "报备科室编码(如果多个科室用逗号分割)") |
| | | @ApiModelProperty(value = "报备科室责任人编码(如果多个科室用逗号分割)") |
| | | private String reportDeptPersonCode; |
| | | } |
| | | |
| | |
| | | subtaskDetailTrace.setCreateTime(new Date()); |
| | | subtaskDetailTrace.setUpdateTime(new Date()); |
| | | subtaskDetailTrace.setOrgid(selectServiceSubtaskList.get(0).getOrgid()); |
| | | subtaskDetailTrace.setDutyDeptPersonCode(svyTaskTemplateScriptVO.getDutyDeptPersonCode()); |
| | | subtaskDetailTrace.setDutyDeptPersonName(svyTaskTemplateScriptVO.getDutyDeptPersonName()); |
| | | subtaskDetailTrace.setReportDeptPersonCode(svyTaskTemplateScriptVO.getReportDeptPersonCode()); |
| | | subtaskDetailTrace.setReportDeptPersonName(svyTaskTemplateScriptVO.getReportDeptPersonName()); |
| | | |
| | | Long existTraceId = existingTraceIdMap.get(subtaskDetailTrace.getScriptid()); |
| | | if (existTraceId != null) { |
| | | subtaskDetailTrace.setId(existTraceId); |
| | | traceService.updateServiceSubtaskDetailTtrace(subtaskDetailTrace); |
| | | } else traceService.insertServiceSubtaskDetailTtrace(subtaskDetailTrace); |
| | | //异常记录跟踪保存后,通知对应科室的责任人 |
| | | |
| | | |
| | | |
| | | |
| | | } else if (ObjectUtils.isNotEmpty(stt) && stt.getIsabnormal() != 1L) { |
| | | //这里主要是怕医护人员把异常选项改成了非异常的,这里就需要查一下这条数据是不是在满意度异常表,如果在,则要删除 |
| | | Long existTraceId = existingTraceIdMap.get(svyTaskTemplateScriptVO.getId()); |
| | |
| | | subtaskDetailTrace.setCreateTime(new Date()); |
| | | subtaskDetailTrace.setUpdateTime(new Date()); |
| | | subtaskDetailTrace.setOrgid(selectServiceSubtaskList.get(0).getOrgid()); |
| | | subtaskDetailTrace.setDutyDeptPersonCode(ivrTaskTemplateScriptVO.getDutyDeptPersonCode()); |
| | | subtaskDetailTrace.setDutyDeptPersonName(ivrTaskTemplateScriptVO.getDutyDeptPersonName()); |
| | | subtaskDetailTrace.setReportDeptPersonCode(ivrTaskTemplateScriptVO.getReportDeptPersonCode()); |
| | | subtaskDetailTrace.setReportDeptPersonName(ivrTaskTemplateScriptVO.getReportDeptPersonName()); |
| | | |
| | | ServiceSubtaskDetailTraceVO ssdt = new ServiceSubtaskDetailTraceVO(); |
| | | ssdt.setSubId(subtaskDetailTrace.getSubId()); |
| | |
| | | subtaskDetailTrace.setId(serviceSubtaskDetailTraces.get(0).getId()); |
| | | traceService.updateServiceSubtaskDetailTtrace(subtaskDetailTrace); |
| | | } else traceService.insertServiceSubtaskDetailTtrace(subtaskDetailTrace); |
| | | |
| | | } else if (stt != null && stt.getIsabnormal() != null && stt.getIsabnormal() != 1L) { |
| | | //这里主要是怕医护人员把异常选项改成了非异常的,这里就需要查一下这条数据是不是在满意度异常表,如果在,则要删除 |
| | | ServiceSubtaskDetailTraceVO subtaskDetailTraceVO = new ServiceSubtaskDetailTraceVO(); |
| | |
| | | serviceSubtaskVO.setPatid(patid); |
| | | } |
| | | List<ServiceSubtask> serviceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | List<SvyTaskTemplateScriptVO> svyTaskTemplateScriptVOS = null; |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskList) && serviceSubtaskList.size() == 1) { |
| | | if (serviceSubtaskList.get(0).getSendstate() == 3 && isFinish == true) { |
| | | ServiceSubtask serviceSubtask = new ServiceSubtask(); |
| | |
| | | serviceSubtask.setTaskid(serviceTask.getTaskid()); |
| | | serviceSubtaskMapper.updateServiceSubtaskByPatId(serviceSubtask); |
| | | } |
| | | } |
| | | //通过模板ID获取问题信息 |
| | | SvyTaskTemplateScript svyTaskTemplateScript = new SvyTaskTemplateScript(); |
| | | svyTaskTemplateScript.setTemplateID(Long.valueOf(serviceTask.getTemplateid())); |
| | | if (serviceTask.getTemplateid() != null) svyTaskTemplateScript.setTemplateID(serviceTask.getTemplateid()); |
| | | svyTaskTemplateScript.setDelFlag("0"); |
| | | List<SvyTaskTemplateScript> svyTaskTemplateScripts = svyTaskTemplateScriptMapper.selectSvyTaskTemplateScriptList(svyTaskTemplateScript); |
| | | if (CollectionUtils.isEmpty(svyTaskTemplateScripts) || svyTaskTemplateScripts.size() == 0) { |
| | | insertSvyTaskTempScript(null, serviceTask); |
| | | svyTaskTemplateScripts = svyTaskTemplateScriptMapper.selectSvyTaskTemplateScriptList(svyTaskTemplateScript); |
| | | if (CollectionUtils.isEmpty(svyTaskTemplateScripts)) { |
| | | throw new BaseException("请联系管理员,检查问题模板信息!"); |
| | | } |
| | | } |
| | | List<SvyTaskTemplateScriptVO> svyTaskTemplateScriptVOS = DtoConversionUtils.sourceToTarget(svyTaskTemplateScripts, SvyTaskTemplateScriptVO.class); |
| | | |
| | | //通过模板ID获取问题信息 |
| | | SvyTaskTemplateScript svyTaskTemplateScript = new SvyTaskTemplateScript(); |
| | | svyTaskTemplateScript.setTemplateID(Long.valueOf(serviceTask.getTemplateid())); |
| | | if (serviceSubtaskList.get(0).getTemplateid() != null) |
| | | svyTaskTemplateScript.setTemplateID(serviceSubtaskList.get(0).getTemplateid()); |
| | | else if (serviceTask.getTemplateid() != null) |
| | | svyTaskTemplateScript.setTemplateID(serviceTask.getTemplateid()); |
| | | svyTaskTemplateScript.setDelFlag("0"); |
| | | List<SvyTaskTemplateScript> svyTaskTemplateScripts = svyTaskTemplateScriptMapper.selectSvyTaskTemplateScriptList(svyTaskTemplateScript); |
| | | if (CollectionUtils.isEmpty(svyTaskTemplateScripts) || svyTaskTemplateScripts.size() == 0) { |
| | | insertSvyTaskTempScript(null, serviceTask); |
| | | svyTaskTemplateScripts = svyTaskTemplateScriptMapper.selectSvyTaskTemplateScriptList(svyTaskTemplateScript); |
| | | if (CollectionUtils.isEmpty(svyTaskTemplateScripts)) { |
| | | throw new BaseException("请联系管理员,检查问题模板信息!"); |
| | | } |
| | | } |
| | | svyTaskTemplateScriptVOS = DtoConversionUtils.sourceToTarget(svyTaskTemplateScripts, SvyTaskTemplateScriptVO.class); |
| | | } |
| | | //获取患者信息 |
| | | PatArchive patArchive = null; |
| | | if (patfrom.equals("0")) patArchive = patArchiveMapper.selectPatArchiveByPatid(patid); |
| | |
| | | <result property="reportDeptName" column="report_dept_code"/> |
| | | <result property="isMydException" column="is_myd_exception"/> |
| | | <result property="dimension" column="dimension"/> |
| | | |
| | | <result property="dutyDeptPersonName" column="duty_dept_person_name"/> |
| | | <result property="dutyDeptPersonCode" column="duty_dept_person_code"/> |
| | | <result property="reportDeptPersonCode" column="report_dept_person_name"/> |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateScriptVo"> |
| | | select id, |
| | | scriptno, |
| | | is_myd_exception, |
| | | duty_dept_person_name, |
| | | duty_dept_person_code, |
| | | report_dept_person_name, |
| | | report_dept_person_code, |
| | | dimension, |
| | | sort, |
| | | script_assortname, |
| | |
| | | <if test="scriptType != null">and script_type = #{scriptType}</if> |
| | | <if test="sort != null">and sort = #{sort}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">and duty_dept_person_name like concat('%', #{dutyDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">and duty_dept_person_code like concat('%', #{dutyDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">and report_dept_person_name like concat('%', #{reportDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">and report_dept_person_code like concat('%', #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | |
| | | </foreach> |
| | | </if> |
| | | <if test="dimensionList == null ">and dimension IS NOT NULL </if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">and duty_dept_person_name like concat('%', #{dutyDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">and duty_dept_person_code like concat('%', #{dutyDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">and report_dept_person_name like concat('%', #{reportDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">and report_dept_person_code like concat('%', #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code,</if> |
| | | <if test="isMydException != null and isMydException != ''">is_myd_exception,</if> |
| | | <if test="dimension != null and dimension != ''">dimension,</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">duty_dept_person_name,</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code,</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name,</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptno != null">#{scriptno},</if> |
| | |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if> |
| | | <if test="isMydException != null and isMydException != ''">#{isMydException},</if> |
| | | <if test="dimension != null and dimension != ''">#{dimension},</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">#{dutyDeptPersonName},</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">#{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">#{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">#{reportDeptPersonCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">duty_dept_person_name = #{dutyDeptPersonName},</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code = #{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name = #{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code = #{reportDeptPersonCode},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="scriptTopic != null">script_topic = #{scriptTopic},</if> |
| | | <if test="nextScriptno != null">next_scriptno = #{nextScriptno},</if> |
| | |
| | | <result property="reportDeptName" column="report_dept_code"/> |
| | | <result property="dimension" column="dimension"/> |
| | | <result property="isMydException" column="is_myd_exception"/> |
| | | <result property="dutyDeptPersonName" column="duty_dept_person_name"/> |
| | | <result property="dutyDeptPersonCode" column="duty_dept_person_code"/> |
| | | <result property="reportDeptPersonCode" column="report_dept_person_name"/> |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateScriptVo"> |
| | |
| | | report_dept_name, |
| | | report_dept_code, |
| | | script_assortid, |
| | | duty_dept_person_name, |
| | | duty_dept_person_code, |
| | | report_dept_person_name, |
| | | report_dept_person_code, |
| | | sort, |
| | | ivrtext, |
| | | script_type, |
| | |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">and duty_dept_person_name like concat('%', |
| | | #{dutyDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">and duty_dept_person_code like concat('%', |
| | | #{dutyDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">and report_dept_person_name like concat('%', |
| | | #{reportDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">and report_dept_person_code like concat('%', |
| | | #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectIvrTaskTemplateScriptByID" parameterType="Long" resultMap="IvrTaskTemplateScriptResult"> |
| | |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code,</if> |
| | | <if test="dimension != null and dimension != ''">dimension,</if> |
| | | <if test="isMydException != null and isMydException != ''">is_myd_exception,</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">duty_dept_person_name,</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code,</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name,</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if> |
| | | <if test="dimension != null and dimension != ''">#{dimension},</if> |
| | | <if test="isMydException != null and isMydException != ''">#{isMydException},</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">#{dutyDeptPersonName},</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">#{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">#{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">#{reportDeptPersonCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code = #{dutyDeptCode},</if> |
| | | <if test="reportDeptName != null and reportDeptName != ''">report_dept_name = #{reportDeptName},</if> |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code = #{reportDeptCode},</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">duty_dept_person_name = #{dutyDeptPersonName},</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code = #{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name = #{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code = #{reportDeptPersonCode},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="templateType" column="template_type"/> |
| | | <result property="isMydException" column="is_myd_exception"/> |
| | | <result property="dimension" column="dimension"/> |
| | | <result property="dutyDeptPersonName" column="duty_dept_person_name"/> |
| | | <result property="dutyDeptPersonCode" column="duty_dept_person_code"/> |
| | | <result property="reportDeptPersonCode" column="report_dept_person_name"/> |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceSubtaskDetailTtraceVo"> |
| | | select id, |
| | | duty_dept_person_name, |
| | | duty_dept_person_code, |
| | | report_dept_person_name, |
| | | report_dept_person_code, |
| | | detail_id, |
| | | is_myd_exception, |
| | | dimension, |
| | |
| | | <if test="isMydException != null "> |
| | | and is_myd_exception = #{isMydException} |
| | | </if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''"> |
| | | and duty_dept_person_name like concat('%', #{dutyDeptPersonName}, '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''"> |
| | | and duty_dept_person_code like concat('%', #{dutyDeptPersonCode}, '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''"> |
| | | and report_dept_person_name like concat('%', #{reportDeptPersonName}, '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''"> |
| | | and report_dept_person_code like concat('%', #{reportDeptPersonCode}, '%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="tracedeallist" parameterType="com.smartor.domain.VO.DetailTraceDealVO" |
| | |
| | | </if> |
| | | <if test="dimension != null and dimension != ''"> |
| | | and dimension = #{dimension} |
| | | </if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''"> |
| | | and duty_dept_person_name like concat('%', #{dutyDeptPersonName}, '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''"> |
| | | and duty_dept_person_code like concat('%', #{dutyDeptPersonCode}, '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''"> |
| | | and report_dept_person_name like concat('%', #{reportDeptPersonName}, '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''"> |
| | | and report_dept_person_code like concat('%', #{reportDeptPersonCode}, '%') |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | </if> |
| | | <if test="isMydException != null">is_myd_exception, |
| | | </if> |
| | | <if test="dutyDeptPersonName != null">duty_dept_person_name, |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null">duty_dept_person_code, |
| | | </if> |
| | | <if test="reportDeptPersonName != null">report_dept_person_name, |
| | | </if> |
| | | <if test="reportDeptPersonCode != null">report_dept_person_code, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="detailId != null">#{detailId}, |
| | |
| | | <if test="dimension != null">#{dimension}, |
| | | </if> |
| | | <if test="isMydException != null">#{isMydException}, |
| | | </if> |
| | | <if test="dutyDeptPersonName != null">#{dutyDeptPersonName}, |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null">#{dutyDeptPersonCode}, |
| | | </if> |
| | | <if test="reportDeptPersonName != null">#{reportDeptPersonName}, |
| | | </if> |
| | | <if test="reportDeptPersonCode != null">#{reportDeptPersonCode}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="isMydException != null">is_myd_exception = |
| | | #{isMydException}, |
| | | </if> |
| | | <if test="dutyDeptPersonName != null">duty_dept_person_name = |
| | | #{dutyDeptPersonName}, |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null">duty_dept_person_code = |
| | | #{dutyDeptPersonCode}, |
| | | </if> |
| | | <if test="reportDeptPersonName != null">report_dept_person_name = |
| | | #{reportDeptPersonName}, |
| | | </if> |
| | | <if test="reportDeptPersonCode != null">report_dept_person_code = |
| | | #{reportDeptPersonCode}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="dutyDeptCode" column="duty_dept_code"/> |
| | | <result property="reportDeptCode" column="report_dept_name"/> |
| | | <result property="reportDeptName" column="report_dept_code"/> |
| | | <result property="dutyDeptPersonName" column="duty_dept_person_name"/> |
| | | <result property="dutyDeptPersonCode" column="duty_dept_person_code"/> |
| | | <result property="reportDeptPersonCode" column="report_dept_person_name"/> |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | <result property="isMydException" column="is_myd_exception"/> |
| | | <result property="dimension" column="dimension"/> |
| | | |
| | |
| | | duty_dept_code, |
| | | report_dept_name, |
| | | report_dept_code, |
| | | duty_dept_person_name, |
| | | duty_dept_person_code, |
| | | report_dept_person_name, |
| | | report_dept_person_code, |
| | | targetid, |
| | | group_name, |
| | | targetname, |
| | |
| | | #{categoryid} |
| | | </foreach> |
| | | </if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">and duty_dept_person_name like concat('%', |
| | | #{dutyDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">and duty_dept_person_code like concat('%', |
| | | #{dutyDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">and report_dept_person_name like concat('%', |
| | | #{reportDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">and report_dept_person_code like concat('%', |
| | | #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | |
| | | <foreach item="dimension" collection="dimensionList" open="(" separator="," close=")"> |
| | | #{dimension} |
| | | </foreach> |
| | | </if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">and duty_dept_person_name like concat('%', |
| | | #{dutyDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">and duty_dept_person_code like concat('%', |
| | | #{dutyDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">and report_dept_person_name like concat('%', |
| | | #{reportDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">and report_dept_person_code like concat('%', |
| | | #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="dimensionList == null ">and dimension IS NOT NULL </if> |
| | | </where> |
| | |
| | | <if test="categoryName != null and categoryName != ''">categoryName,</if> |
| | | <if test="isMydException != null and isMydException != ''">is_myd_exception,</if> |
| | | <if test="dimension != null and dimension != ''">dimension,</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">duty_dept_person_name,</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code,</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name,</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="nextScriptno != null">#{nextScriptno},</if> |
| | |
| | | <if test="categoryName != null and categoryName != ''">#{categoryName},</if> |
| | | <if test="isMydException != null and isMydException != ''">#{isMydException},</if> |
| | | <if test="dimension != null and dimension != ''">#{dimension},</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">#{dutyDeptPersonName},</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">#{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">#{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">#{reportDeptPersonCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="categoryName != null and categoryName != ''">categoryName = #{categoryName},</if> |
| | | <if test="isMydException != null and isMydException != ''">is_myd_exception = #{isMydException},</if> |
| | | <if test="dimension != null and dimension != ''">dimension = #{dimension},</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">duty_dept_person_name = #{dutyDeptPersonName},</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code = #{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name = #{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code = #{reportDeptPersonCode},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="dutyDeptCode" column="duty_dept_code"/> |
| | | <result property="reportDeptCode" column="report_dept_name"/> |
| | | <result property="reportDeptName" column="report_dept_code"/> |
| | | <result property="dutyDeptPersonName" column="duty_dept_person_name"/> |
| | | <result property="dutyDeptPersonCode" column="duty_dept_person_code"/> |
| | | <result property="reportDeptPersonCode" column="report_dept_person_name"/> |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | <result property="isMydException" column="is_myd_exception"/> |
| | | <result property="dimension" column="dimension"/> |
| | | </resultMap> |
| | |
| | | templateID, |
| | | scriptid, |
| | | script_topic, language, categoryName, script_content, is_must, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, value_type, targetoptions, script_type, targetid, targetvalue, next_scriptno, script_result, otherdata, picture_path |
| | | , duty_dept_person_name, duty_dept_person_code, report_dept_person_name, report_dept_person_code |
| | | from svy_task_template_script |
| | | </sql> |
| | | |
| | |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">and duty_dept_person_name like concat('%', #{dutyDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">and duty_dept_person_code like concat('%', #{dutyDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">and report_dept_person_name like concat('%', #{reportDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">and report_dept_person_code like concat('%', #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskTemplateScriptByID" parameterType="Long" resultMap="SvyTaskTemplateScriptResult"> |
| | |
| | | <if test="reportDeptCode != null and reportDeptCode != ''"> report_dept_code,</if> |
| | | <if test="isMydException != null ">is_myd_exception,</if> |
| | | <if test="dimension != null ">dimension,</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">duty_dept_person_name,</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code,</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name,</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if> |
| | | <if test="isMydException != null ">#{isMydException},</if> |
| | | <if test="dimension != null ">#{dimension},</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">#{dutyDeptPersonName},</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">#{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">#{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">#{reportDeptPersonCode},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code = #{reportDeptCode},</if> |
| | | <if test="isMydException != null ">is_myd_exception = #{isMydException},</if> |
| | | <if test="dimension != null ">dimension = #{dimension},</if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''">duty_dept_person_name = #{dutyDeptPersonName},</if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code = #{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name = #{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code = #{reportDeptPersonCode},</if> |
| | | </trim> |
| | | where id = #{d} |
| | | </update> |