专病路径修改修改
This commit is contained in:
parent
d1104081eb
commit
a9ca208071
@ -82,7 +82,7 @@ public class SpecialDiseaseNodeController extends BaseController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改专病路径-管理节点信息
|
||||
* 修改专病路径-管理节点信息(专病路径新增修改)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:specialDiseaseNode:edit')")
|
||||
@Log(title = "专病路径-管理节点信息", businessType = BusinessType.UPDATE)
|
||||
|
||||
@ -246,11 +246,18 @@ public class SpecialDiseaseNode extends BaseEntity {
|
||||
private String phoneDialMethod;
|
||||
|
||||
/**
|
||||
* AI电话模板表id
|
||||
* 话术表 ID
|
||||
*/
|
||||
@ApiModelProperty(value = "AI电话模板表id")
|
||||
@ApiModelProperty(value = "话术表 ID")
|
||||
@Excel(name = "话术表 ID")
|
||||
private Long scriptInfoId;
|
||||
|
||||
/**
|
||||
* AI电话模板id
|
||||
*/
|
||||
@ApiModelProperty(value = "AI电话模板id")
|
||||
@Excel(name = "AI电话模板表id")
|
||||
private Long phoneTemplateId;
|
||||
private String phoneTemplateId;
|
||||
|
||||
/**
|
||||
* AI电话模板名称
|
||||
|
||||
@ -679,9 +679,9 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
|
||||
break;
|
||||
// 话术
|
||||
case TaskNodeTypeConstants.PHONE_OUTBOUND:
|
||||
manageRouteNode.setPhoneId(node.getPhoneTemplateId());
|
||||
manageRouteNode.setPhoneId(node.getScriptInfoId());
|
||||
// 查询话术
|
||||
ScriptInfo scriptInfo = scriptInfoMapper.selectScriptInfoById(node.getPhoneTemplateId());
|
||||
ScriptInfo scriptInfo = scriptInfoMapper.selectScriptInfoById(node.getScriptInfoId());
|
||||
if (ObjectUtils.isNotEmpty(scriptInfo)) {
|
||||
// 话术库json内容替换
|
||||
manageRouteNode.setPhoneNodeContent(signPatientManageRouteNodeService.getFlowScheme(scriptInfo.getFlowScheme(), labelFieldContentList));
|
||||
|
||||
@ -1024,9 +1024,9 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
|
||||
break;
|
||||
// 话术
|
||||
case TaskNodeTypeConstants.PHONE_OUTBOUND:
|
||||
manageRouteNode.setPhoneId(node.getTemplateId());
|
||||
manageRouteNode.setPhoneId(node.getScriptInfoId());
|
||||
// 查询话术
|
||||
ScriptInfo scriptInfo = scriptInfoMapper.selectScriptInfoById(node.getPhoneTemplateId());
|
||||
ScriptInfo scriptInfo = scriptInfoMapper.selectScriptInfoById(node.getScriptInfoId());
|
||||
if (ObjectUtils.isNotEmpty(scriptInfo)) {
|
||||
// 话术库json内容替换
|
||||
manageRouteNode.setPhoneNodeContent(getFlowScheme(scriptInfo.getFlowScheme(), labelFieldContentList));
|
||||
|
||||
@ -342,9 +342,9 @@ public class SpecialDiseaseRouteServiceImpl implements ISpecialDiseaseRouteServi
|
||||
break;
|
||||
// 话术
|
||||
case TaskNodeTypeConstants.PHONE_OUTBOUND:
|
||||
manageRouteNode.setPhoneId(node.getPhoneTemplateId());
|
||||
manageRouteNode.setPhoneId(node.getScriptInfoId());
|
||||
// 查询话术
|
||||
ScriptInfo scriptInfo = scriptInfoMapper.selectScriptInfoById(node.getPhoneTemplateId());
|
||||
ScriptInfo scriptInfo = scriptInfoMapper.selectScriptInfoById(node.getScriptInfoId());
|
||||
if (ObjectUtils.isNotEmpty(scriptInfo)) {
|
||||
// 话术库json内容替换
|
||||
manageRouteNode.setPhoneNodeContent(scriptInfo.getFlowScheme());
|
||||
|
||||
@ -75,6 +75,7 @@
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="scriptInfoId" column="script_info_id"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.xinelu.manage.vo.specialdiseasenode.SpecialDiseaseNodeVO" id="SpecialDiseaseNodeVOResult">
|
||||
@ -128,6 +129,7 @@
|
||||
<result property="taskStatusName" column="taskStatusName"/>
|
||||
<result property="nodeContent" column="node_content"/>
|
||||
<result property="flowScheme" column="flowScheme"/>
|
||||
<result property="scriptInfoId" column="script_info_id"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSpecialDiseaseNodeVo">
|
||||
@ -180,7 +182,8 @@
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time
|
||||
update_time,
|
||||
script_info_id
|
||||
from special_disease_node
|
||||
</sql>
|
||||
|
||||
@ -316,6 +319,9 @@
|
||||
<if test="nodeContent != null and nodeContent != ''">
|
||||
and node_content = #{nodeContent}
|
||||
</if>
|
||||
<if test="scriptInfoId != null and scriptInfoId != ''">
|
||||
and script_info_id = #{scriptInfoId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectSpeciaDiseaseNodeVoList" parameterType="SpecialDiseaseNode" resultMap="SpecialDiseaseNodeVOResult">
|
||||
@ -439,6 +445,8 @@
|
||||
</if>
|
||||
<if test="phoneDialMethod != null">phone_dial_method,
|
||||
</if>
|
||||
<if test="scriptInfoId != null">script_info_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="routeId != null">#{routeId},
|
||||
@ -539,6 +547,8 @@
|
||||
</if>
|
||||
<if test="phoneDialMethod != null ">#{phoneDialMethod}
|
||||
</if>
|
||||
<if test="scriptInfoId != null ">#{scriptInfoId}
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -692,6 +702,9 @@
|
||||
<if test="phoneDialMethod != null ">phone_dial_method =
|
||||
#{phoneDialMethod},
|
||||
</if>
|
||||
<if test="scriptInfoId != null ">script_info_id =
|
||||
#{scriptInfoId},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@ -758,7 +771,8 @@
|
||||
node_content,
|
||||
create_by,
|
||||
create_time,
|
||||
phone_dial_method
|
||||
phone_dial_method,
|
||||
script_info_id
|
||||
) values
|
||||
<foreach item="specialDiseaseNodeList" index="index" collection="list" separator=",">
|
||||
(
|
||||
@ -809,7 +823,8 @@
|
||||
#{specialDiseaseNodeList.nodeContent},
|
||||
#{specialDiseaseNodeList.createBy},
|
||||
#{specialDiseaseNodeList.createTime},
|
||||
#{specialDiseaseNodeList.phoneDialMethod}
|
||||
#{specialDiseaseNodeList.phoneDialMethod},
|
||||
#{specialDiseaseNodeList.scriptInfoId}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
@ -880,6 +895,7 @@
|
||||
sdn.route_check_remark,
|
||||
sdn.node_content,
|
||||
sdn.phone_dial_method,
|
||||
sdn.script_info_id,
|
||||
(select flow_scheme from script_info where id = sdn.phone_template_id) flowScheme,
|
||||
(select COUNT(1)
|
||||
from special_disease_node
|
||||
|
||||
Loading…
Reference in New Issue
Block a user