专病路径修改修改

This commit is contained in:
zhangheng 2024-08-02 10:52:33 +08:00
parent d1104081eb
commit a9ca208071
6 changed files with 36 additions and 13 deletions

View File

@ -82,7 +82,7 @@ public class SpecialDiseaseNodeController extends BaseController {
} }
/** /**
* 修改专病路径-管理节点信息 * 修改专病路径-管理节点信息(专病路径新增修改)
*/ */
@PreAuthorize("@ss.hasPermi('system:specialDiseaseNode:edit')") @PreAuthorize("@ss.hasPermi('system:specialDiseaseNode:edit')")
@Log(title = "专病路径-管理节点信息", businessType = BusinessType.UPDATE) @Log(title = "专病路径-管理节点信息", businessType = BusinessType.UPDATE)

View File

@ -246,11 +246,18 @@ public class SpecialDiseaseNode extends BaseEntity {
private String phoneDialMethod; 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") @Excel(name = "AI电话模板表id")
private Long phoneTemplateId; private String phoneTemplateId;
/** /**
* AI电话模板名称 * AI电话模板名称

View File

@ -679,9 +679,9 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
break; break;
// 话术 // 话术
case TaskNodeTypeConstants.PHONE_OUTBOUND: 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)) { if (ObjectUtils.isNotEmpty(scriptInfo)) {
// 话术库json内容替换 // 话术库json内容替换
manageRouteNode.setPhoneNodeContent(signPatientManageRouteNodeService.getFlowScheme(scriptInfo.getFlowScheme(), labelFieldContentList)); manageRouteNode.setPhoneNodeContent(signPatientManageRouteNodeService.getFlowScheme(scriptInfo.getFlowScheme(), labelFieldContentList));

View File

@ -1024,9 +1024,9 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
break; break;
// 话术 // 话术
case TaskNodeTypeConstants.PHONE_OUTBOUND: 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)) { if (ObjectUtils.isNotEmpty(scriptInfo)) {
// 话术库json内容替换 // 话术库json内容替换
manageRouteNode.setPhoneNodeContent(getFlowScheme(scriptInfo.getFlowScheme(), labelFieldContentList)); manageRouteNode.setPhoneNodeContent(getFlowScheme(scriptInfo.getFlowScheme(), labelFieldContentList));

View File

@ -342,9 +342,9 @@ public class SpecialDiseaseRouteServiceImpl implements ISpecialDiseaseRouteServi
break; break;
// 话术 // 话术
case TaskNodeTypeConstants.PHONE_OUTBOUND: 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)) { if (ObjectUtils.isNotEmpty(scriptInfo)) {
// 话术库json内容替换 // 话术库json内容替换
manageRouteNode.setPhoneNodeContent(scriptInfo.getFlowScheme()); manageRouteNode.setPhoneNodeContent(scriptInfo.getFlowScheme());

View File

@ -75,6 +75,7 @@
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/> <result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time"/>
<result property="scriptInfoId" column="script_info_id"/>
</resultMap> </resultMap>
<resultMap type="com.xinelu.manage.vo.specialdiseasenode.SpecialDiseaseNodeVO" id="SpecialDiseaseNodeVOResult"> <resultMap type="com.xinelu.manage.vo.specialdiseasenode.SpecialDiseaseNodeVO" id="SpecialDiseaseNodeVOResult">
@ -128,6 +129,7 @@
<result property="taskStatusName" column="taskStatusName"/> <result property="taskStatusName" column="taskStatusName"/>
<result property="nodeContent" column="node_content"/> <result property="nodeContent" column="node_content"/>
<result property="flowScheme" column="flowScheme"/> <result property="flowScheme" column="flowScheme"/>
<result property="scriptInfoId" column="script_info_id"/>
</resultMap> </resultMap>
<sql id="selectSpecialDiseaseNodeVo"> <sql id="selectSpecialDiseaseNodeVo">
@ -180,7 +182,8 @@
create_by, create_by,
create_time, create_time,
update_by, update_by,
update_time update_time,
script_info_id
from special_disease_node from special_disease_node
</sql> </sql>
@ -316,6 +319,9 @@
<if test="nodeContent != null and nodeContent != ''"> <if test="nodeContent != null and nodeContent != ''">
and node_content = #{nodeContent} and node_content = #{nodeContent}
</if> </if>
<if test="scriptInfoId != null and scriptInfoId != ''">
and script_info_id = #{scriptInfoId}
</if>
</where> </where>
</select> </select>
<select id="selectSpeciaDiseaseNodeVoList" parameterType="SpecialDiseaseNode" resultMap="SpecialDiseaseNodeVOResult"> <select id="selectSpeciaDiseaseNodeVoList" parameterType="SpecialDiseaseNode" resultMap="SpecialDiseaseNodeVOResult">
@ -439,6 +445,8 @@
</if> </if>
<if test="phoneDialMethod != null">phone_dial_method, <if test="phoneDialMethod != null">phone_dial_method,
</if> </if>
<if test="scriptInfoId != null">script_info_id,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="routeId != null">#{routeId}, <if test="routeId != null">#{routeId},
@ -539,6 +547,8 @@
</if> </if>
<if test="phoneDialMethod != null ">#{phoneDialMethod} <if test="phoneDialMethod != null ">#{phoneDialMethod}
</if> </if>
<if test="scriptInfoId != null ">#{scriptInfoId}
</if>
</trim> </trim>
</insert> </insert>
@ -692,6 +702,9 @@
<if test="phoneDialMethod != null ">phone_dial_method = <if test="phoneDialMethod != null ">phone_dial_method =
#{phoneDialMethod}, #{phoneDialMethod},
</if> </if>
<if test="scriptInfoId != null ">script_info_id =
#{scriptInfoId},
</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
@ -758,7 +771,8 @@
node_content, node_content,
create_by, create_by,
create_time, create_time,
phone_dial_method phone_dial_method,
script_info_id
) values ) values
<foreach item="specialDiseaseNodeList" index="index" collection="list" separator=","> <foreach item="specialDiseaseNodeList" index="index" collection="list" separator=",">
( (
@ -809,7 +823,8 @@
#{specialDiseaseNodeList.nodeContent}, #{specialDiseaseNodeList.nodeContent},
#{specialDiseaseNodeList.createBy}, #{specialDiseaseNodeList.createBy},
#{specialDiseaseNodeList.createTime}, #{specialDiseaseNodeList.createTime},
#{specialDiseaseNodeList.phoneDialMethod} #{specialDiseaseNodeList.phoneDialMethod},
#{specialDiseaseNodeList.scriptInfoId}
) )
</foreach> </foreach>
</insert> </insert>
@ -880,6 +895,7 @@
sdn.route_check_remark, sdn.route_check_remark,
sdn.node_content, sdn.node_content,
sdn.phone_dial_method, sdn.phone_dial_method,
sdn.script_info_id,
(select flow_scheme from script_info where id = sdn.phone_template_id) flowScheme, (select flow_scheme from script_info where id = sdn.phone_template_id) flowScheme,
(select COUNT(1) (select COUNT(1)
from special_disease_node from special_disease_node