liusheng
2024-07-25 80ba21616141b4b95243ed62bd22b0e2d9290a63
代码提交
已修改16个文件
361 ■■■■ 文件已修改
ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml 166 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/IvrLibaExtemplateCategory.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/IvrLibaTemplateScript.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/IvrLibaTemplateScriptVO.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/SvyLibScript.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/SvyLibTemplateScript.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/SvyTaskTemplateScript.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/domain/SvyTaskTemplateScriptVO.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/impl/SvyLibScriptServiceImpl.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/IvrLibaExtemplateCategoryMapper.xml 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/SvyLibScriptMapper.xml 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/SvyLibScriptTagMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/SvyLibTemplateTagMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml
@@ -1,73 +1,106 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.BaseUserInfoMapper">
    <resultMap type="BaseUserInfo" id="BaseUserInfoResult">
        <result property="userid"    column="userid"    />
        <result property="usercode"    column="usercode"    />
        <result property="account"    column="account"    />
        <result property="phone"    column="phone"    />
        <result property="password"    column="password"    />
        <result property="secret"    column="secret"    />
        <result property="realname"    column="realname"    />
        <result property="nickname"    column="nickname"    />
        <result property="roleid"    column="roleid"    />
        <result property="rolename"    column="rolename"    />
        <result property="deptid"    column="deptid"    />
        <result property="deptname"    column="deptname"    />
        <result property="wardid"    column="wardid"    />
        <result property="wardname"    column="wardname"    />
        <result property="usertype"    column="usertype"    />
        <result property="usertypename"    column="usertypename"    />
        <result property="dwpermission"    column="dwpermission"    />
        <result property="isopenlowerorg"    column="isopenlowerorg"    />
        <result property="isopenshareknow"    column="isopenshareknow"    />
        <result property="isopengeneraldata"    column="isopengeneraldata"    />
        <result property="orgid"    column="orgid"    />
        <result property="delFlag"    column="del_flag"    />
        <result property="updateBy"    column="update_by"    />
        <result property="updateTime"    column="update_time"    />
        <result property="createBy"    column="create_by"    />
        <result property="createTime"    column="create_time"    />
        <result property="isupload"    column="isupload"    />
        <result property="uploadTime"    column="upload_time"    />
        <result property="deptpermission"    column="deptpermission"    />
        <result property="wardpermission"    column="wardpermission"    />
    <resultMap type="com.ruoyi.system.domain.BaseUserInfo" id="BaseUserInfoResult">
        <result property="userid" column="userid"/>
        <result property="usercode" column="usercode"/>
        <result property="account" column="account"/>
        <result property="phone" column="phone"/>
        <result property="password" column="password"/>
        <result property="secret" column="secret"/>
        <result property="realname" column="realname"/>
        <result property="nickname" column="nickname"/>
        <result property="roleid" column="roleid"/>
        <result property="rolename" column="rolename"/>
        <result property="deptid" column="deptid"/>
        <result property="deptname" column="deptname"/>
        <result property="wardid" column="wardid"/>
        <result property="wardname" column="wardname"/>
        <result property="usertype" column="usertype"/>
        <result property="usertypename" column="usertypename"/>
        <result property="dwpermission" column="dwpermission"/>
        <result property="isopenlowerorg" column="isopenlowerorg"/>
        <result property="isopenshareknow" column="isopenshareknow"/>
        <result property="isopengeneraldata" column="isopengeneraldata"/>
        <result property="orgid" column="orgid"/>
        <result property="delFlag" column="del_flag"/>
        <result property="updateBy" column="update_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="createBy" column="create_by"/>
        <result property="createTime" column="create_time"/>
        <result property="isupload" column="isupload"/>
        <result property="uploadTime" column="upload_time"/>
        <result property="deptpermission" column="deptpermission"/>
        <result property="wardpermission" column="wardpermission"/>
    </resultMap>
    <sql id="selectBaseUserInfoVo">
        select userid, usercode, account, phone, password, secret, realname, nickname, roleid, rolename, deptid, deptname, wardid, wardname, usertype, usertypename, dwpermission, isopenlowerorg, isopenshareknow, isopengeneraldata, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, deptpermission, wardpermission from base_user_info
        select userid,
               usercode,
               account,
               phone,
               password,
               secret,
               realname,
               nickname,
               roleid,
               rolename,
               deptid,
               deptname,
               wardid,
               wardname,
               usertype,
               usertypename,
               dwpermission,
               isopenlowerorg,
               isopenshareknow,
               isopengeneraldata,
               orgid,
               del_flag,
               update_by,
               update_time,
               create_by,
               create_time,
               isupload,
               upload_time,
               deptpermission,
               wardpermission
        from base_user_info
    </sql>
    <select id="selectBaseUserInfoList" parameterType="BaseUserInfo" resultMap="BaseUserInfoResult">
    <select id="selectBaseUserInfoList" parameterType="com.ruoyi.system.domain.BaseUserInfo"
            resultMap="BaseUserInfoResult">
        <include refid="selectBaseUserInfoVo"/>
        <where>
            <if test="usercode != null  and usercode != ''"> and usercode = #{usercode}</if>
            <if test="account != null  and account != ''"> and account = #{account}</if>
            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>
            <if test="password != null  and password != ''"> and password = #{password}</if>
            <if test="secret != null  and secret != ''"> and secret = #{secret}</if>
            <if test="realname != null  and realname != ''"> and realname like concat('%', #{realname}, '%')</if>
            <if test="nickname != null  and nickname != ''"> and nickname like concat('%', #{nickname}, '%')</if>
            <if test="roleid != null "> and roleid = #{roleid}</if>
            <if test="rolename != null  and rolename != ''"> and rolename like concat('%', #{rolename}, '%')</if>
            <if test="deptid != null  and deptid != ''"> and deptid = #{deptid}</if>
            <if test="deptname != null  and deptname != ''"> and deptname like concat('%', #{deptname}, '%')</if>
            <if test="wardid != null  and wardid != ''"> and wardid = #{wardid}</if>
            <if test="wardname != null  and wardname != ''"> and wardname like concat('%', #{wardname}, '%')</if>
            <if test="usertype != null "> and usertype = #{usertype}</if>
            <if test="usertypename != null  and usertypename != ''"> and usertypename like concat('%', #{usertypename}, '%')</if>
            <if test="dwpermission != null "> and dwpermission = #{dwpermission}</if>
            <if test="isopenlowerorg != null "> and isopenlowerorg = #{isopenlowerorg}</if>
            <if test="isopenshareknow != null "> and isopenshareknow = #{isopenshareknow}</if>
            <if test="isopengeneraldata != null "> and isopengeneraldata = #{isopengeneraldata}</if>
            <if test="orgid != null  and orgid != ''"> and orgid = #{orgid}</if>
            <if test="isupload != null "> and isupload = #{isupload}</if>
            <if test="uploadTime != null "> and upload_time = #{uploadTime}</if>
            <if test="deptpermission != null  and deptpermission != ''"> and deptpermission = #{deptpermission}</if>
            <if test="wardpermission != null  and wardpermission != ''"> and wardpermission = #{wardpermission}</if>
            <if test="usercode != null  and usercode != ''">and usercode = #{usercode}</if>
            <if test="account != null  and account != ''">and account = #{account}</if>
            <if test="phone != null  and phone != ''">and phone = #{phone}</if>
            <if test="password != null  and password != ''">and password = #{password}</if>
            <if test="secret != null  and secret != ''">and secret = #{secret}</if>
            <if test="realname != null  and realname != ''">and realname like concat('%', #{realname}, '%')</if>
            <if test="nickname != null  and nickname != ''">and nickname like concat('%', #{nickname}, '%')</if>
            <if test="roleid != null ">and roleid = #{roleid}</if>
            <if test="rolename != null  and rolename != ''">and rolename like concat('%', #{rolename}, '%')</if>
            <if test="deptid != null  and deptid != ''">and deptid = #{deptid}</if>
            <if test="deptname != null  and deptname != ''">and deptname like concat('%', #{deptname}, '%')</if>
            <if test="wardid != null  and wardid != ''">and wardid = #{wardid}</if>
            <if test="wardname != null  and wardname != ''">and wardname like concat('%', #{wardname}, '%')</if>
            <if test="usertype != null ">and usertype = #{usertype}</if>
            <if test="usertypename != null  and usertypename != ''">and usertypename like concat('%', #{usertypename},
                '%')
            </if>
            <if test="dwpermission != null ">and dwpermission = #{dwpermission}</if>
            <if test="isopenlowerorg != null ">and isopenlowerorg = #{isopenlowerorg}</if>
            <if test="isopenshareknow != null ">and isopenshareknow = #{isopenshareknow}</if>
            <if test="isopengeneraldata != null ">and isopengeneraldata = #{isopengeneraldata}</if>
            <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
            <if test="isupload != null ">and isupload = #{isupload}</if>
            <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
            <if test="deptpermission != null  and deptpermission != ''">and deptpermission = #{deptpermission}</if>
            <if test="wardpermission != null  and wardpermission != ''">and wardpermission = #{wardpermission}</if>
        </where>
    </select>
@@ -76,7 +109,8 @@
        where userid = #{userid}
    </select>
    <insert id="insertBaseUserInfo" parameterType="BaseUserInfo" useGeneratedKeys="true" keyProperty="userid">
    <insert id="insertBaseUserInfo" parameterType="com.ruoyi.system.domain.BaseUserInfo" useGeneratedKeys="true"
            keyProperty="userid">
        insert into base_user_info
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="usercode != null">usercode,</if>
@@ -108,7 +142,7 @@
            <if test="uploadTime != null">upload_time,</if>
            <if test="deptpermission != null">deptpermission,</if>
            <if test="wardpermission != null">wardpermission,</if>
         </trim>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="usercode != null">#{usercode},</if>
            <if test="account != null">#{account},</if>
@@ -139,10 +173,10 @@
            <if test="uploadTime != null">#{uploadTime},</if>
            <if test="deptpermission != null">#{deptpermission},</if>
            <if test="wardpermission != null">#{wardpermission},</if>
         </trim>
        </trim>
    </insert>
    <update id="updateBaseUserInfo" parameterType="BaseUserInfo">
    <update id="updateBaseUserInfo" parameterType="com.ruoyi.system.domain.BaseUserInfo">
        update base_user_info
        <trim prefix="SET" suffixOverrides=",">
            <if test="usercode != null">usercode = #{usercode},</if>
@@ -179,7 +213,9 @@
    </update>
    <delete id="deleteBaseUserInfoByUserid" parameterType="Long">
        delete from base_user_info where userid = #{userid}
        delete
        from base_user_info
        where userid = #{userid}
    </delete>
    <delete id="deleteBaseUserInfoByUserids" parameterType="String">
@@ -188,4 +224,4 @@
            #{userid}
        </foreach>
    </delete>
</mapper>
</mapper>
smartor/src/main/java/com/smartor/domain/IvrLibaExtemplateCategory.java
@@ -1,15 +1,13 @@
package com.smartor.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
/**
 * 通用模板分类对象 ivr_liba_extemplate_category
@@ -26,7 +24,7 @@
     * 自增ID
     */
    @ApiModelProperty("自增ID(主键)")
    private Long intertcatid;
    private Long id;
    /**
     * 分类名称
smartor/src/main/java/com/smartor/domain/IvrLibaTemplateScript.java
@@ -261,6 +261,12 @@
    @ApiModelProperty(value = "指标ID")
    private Integer targetid;
    /**
     * 序号
     */
    @ApiModelProperty(value = "序号")
    private Integer sort;
    /**
     * 是否存在操作:1 新增 2修改 3删除
smartor/src/main/java/com/smartor/domain/IvrLibaTemplateScriptVO.java
@@ -237,6 +237,12 @@
    @ApiModelProperty(value = "是否存在操作:1 新增 2修改 3删除")
    private Integer isoperation;
    /**
     * 序号
     */
    @ApiModelProperty(value = "序号")
    private Integer sort;
//    /**
//     * 基础指标类型
//     */
smartor/src/main/java/com/smartor/domain/SvyLibScript.java
@@ -170,6 +170,18 @@
    @ApiModelProperty(value = "问题主题")
    private String scriptTopic;
    @ApiModelProperty(value = "对应的ivr_liba_target的主键")
    private Long targetid;
    @ApiModelProperty(value = "基础指标类型")
    private String targettype;
    @ApiModelProperty(value = "基础指标名称")
    private String targetname;
    @ApiModelProperty(value = "指标选项汇总")
    private String targetoptions;
    @ApiModelProperty(value = "适用疾病(数组)")
    private List<String> icd10NameList;
smartor/src/main/java/com/smartor/domain/SvyLibTemplateScript.java
@@ -255,4 +255,16 @@
    @ApiModelProperty(value = "选项分支的下一个话术编号")
    private String branchNextscriptno;
    @ApiModelProperty(value = "对应的ivr_liba_target的主键")
    private Long targetid;
    @ApiModelProperty(value = "基础指标类型")
    private String targettype;
    @ApiModelProperty(value = "基础指标名称")
    private String targetname;
    @ApiModelProperty(value = "指标选项汇总")
    private String targetoptions;
}
smartor/src/main/java/com/smartor/domain/SvyTaskTemplateScript.java
@@ -137,7 +137,7 @@
     * 指标选项*
     */
    @ApiModelProperty(value = "指标选项*")
    private String targetOptions;
    private String targetoptions;
    /**
     * 基础指标类型(1 选项  2 文本  3 数值)
@@ -203,4 +203,17 @@
    @ApiModelProperty(value = "选项分支的下一个话术编号")
    private String branchNextscriptno;
    @ApiModelProperty(value = "基础指标类型")
    private String targettype;
    @ApiModelProperty(value = "基础指标名称")
    private String targetname;
    /**
     * 序号
     */
    @Excel(name = "序号")
    @ApiModelProperty(value = "序号")
    private Long xh;
}
smartor/src/main/java/com/smartor/domain/SvyTaskTemplateScriptVO.java
@@ -203,6 +203,19 @@
    private String branchNextscriptno;
    @ApiModelProperty(value = "基础指标类型")
    private String targettype;
    @ApiModelProperty(value = "基础指标名称")
    private String targetname;
    /**
     * 序号
     */
    @Excel(name = "序号")
    @ApiModelProperty(value = "序号")
    private Long xh;
    /**
     * 话术选项
     */
smartor/src/main/java/com/smartor/service/impl/SvyLibScriptServiceImpl.java
@@ -136,19 +136,16 @@
        //标签处理
        if (CollectionUtils.isNotEmpty(svyLibTopic.getSvyLibScriptTagList())) {
            for (SvyLibScriptTag svyLibScriptTag : svyLibTopic.getSvyLibScriptTagList()) {
                if (svyLibScriptTag.getIsoperation() != null && svyLibScriptTag.getIsoperation() == 1) {
                if (svyLibScriptTag.getId() == null) {
                    //新增
                    svyLibScriptTag.setScriptid(svyLibTopic.getId());
                    svyLibScriptTag.setCreateTime(new Date());
                    svyLibScriptTagMapper.insertSvyLibScriptTag(svyLibScriptTag);
                } else if (svyLibScriptTag.getIsoperation() != null && svyLibScriptTag.getIsoperation() == 2) {
                } else if (svyLibScriptTag.getId() != null) {
                    //修改
                    svyLibScriptTag.setScriptid(svyLibTopic.getId());
                    svyLibScriptTag.setUpdateTime(new Date());
                    svyLibScriptTagMapper.updateSvyLibScriptTag(svyLibScriptTag);
                } else if (svyLibScriptTag.getIsoperation() != null && svyLibScriptTag.getIsoperation() == 3) {
                    //删除
                    svyLibScriptTagMapper.deleteSvyLibScriptTagById(svyLibScriptTag.getId());
                }
            }
        }
smartor/src/main/resources/mapper/smartor/IvrLibaExtemplateCategoryMapper.xml
@@ -5,7 +5,7 @@
<mapper namespace="com.smartor.mapper.IvrLibaExtemplateCategoryMapper">
    <resultMap type="com.smartor.domain.IvrLibaExtemplateCategory" id="IvrLibaExtemplateCategoryResult">
        <result property="intertcatid" column="intertcatid"/>
        <result property="id" column="id"/>
        <result property="categoryname" column="categoryname"/>
        <result property="orgid" column="orgid"/>
        <result property="delFlag" column="del_flag"/>
@@ -21,7 +21,7 @@
    </resultMap>
    <sql id="selectIvrLibaExtemplateCategoryVo">
        select intertcatid,
        select id,
               categoryname,
               orgid,
               del_flag,
@@ -58,7 +58,7 @@
    <select id="selectIvrLibaExtemplateCategoryByIntertcatid" parameterType="Long"
            resultMap="IvrLibaExtemplateCategoryResult">
        <include refid="selectIvrLibaExtemplateCategoryVo"/>
        where intertcatid = #{intertcatid} and del_flag = 0
        where id = #{id} and del_flag = 0
    </select>
    <select id="selectSeqMax" resultType="integer">
@@ -68,7 +68,7 @@
    </select>
    <insert id="insertIvrLibaExtemplateCategory" parameterType="com.smartor.domain.IvrLibaExtemplateCategory"
            useGeneratedKeys="true" keyProperty="intertcatid">
            useGeneratedKeys="true" keyProperty="id">
        insert into ivr_liba_extemplate_category
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="categoryname != null">categoryname,</if>
@@ -116,7 +116,7 @@
            <if test="guid != null">guid = #{guid},</if>
            <if test="seqno != null">seqno = #{seqno},</if>
        </trim>
        where intertcatid = #{intertcatid}
        where id = #{id}
    </update>
    <update id="deleteIvrLibaExtemplateCategoryByIntertcatid" parameterType="Long">
@@ -124,13 +124,13 @@
        <trim prefix="SET" suffixOverrides=",">
            del_flag = 1
        </trim>
        where intertcatid = #{intertcatid}
        where id = #{id}
    </update>
    <delete id="deleteIvrLibaExtemplateCategoryByIntertcatids" parameterType="String">
        delete from ivr_liba_extemplate_category where intertcatid in
        <foreach item="intertcatid" collection="array" open="(" separator="," close=")">
            #{intertcatid}
        delete from ivr_liba_extemplate_category where id in
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>
    </delete>
</mapper>
</mapper>
smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
@@ -44,11 +44,13 @@
        <result property="scriptType" column="script_type"/>
        <result property="branchFlag" column="branch_flag"/>
        <result property="branchNextscriptno" column="branch_nextscriptno"/>
        <result property="sort" column="sort"/>
    </resultMap>
    <sql id="selectIvrLibaTemplateScriptVo">
        select id,
               scriptno,
               sort,
               branch_flag,
               branch_nextscriptno,
               templateid,
@@ -129,6 +131,7 @@
            <if test="targetvalue != null  and targetvalue != ''">and targetvalue = #{targetvalue}</if>
            <if test="isMust != null  and isMust != ''">and is_must = #{isMust}</if>
            <if test="scriptType != null">and script_type = #{scriptType}</if>
            <if test="sort != null">and sort = #{sort}</if>
        </where>
    </select>
@@ -179,6 +182,7 @@
            <if test="scriptType != null ">script_type,</if>
            <if test="branchFlag != null  and branchFlag != ''">branch_flag,</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno,</if>
            <if test="sort != null ">sort,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="scriptno != null">#{scriptno},</if>
@@ -218,6 +222,7 @@
            <if test="scriptType != null ">#{scriptType},</if>
            <if test="branchFlag != null  and branchFlag != ''">#{branchFlag},</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">#{branchNextscriptno},</if>
            <if test="sort != null ">#{sort},</if>
        </trim>
    </insert>
@@ -258,6 +263,7 @@
            <if test="isMust != null  and isMust != ''">is_must = #{isMust}</if>
            <if test="scriptDesc != null ">script_desc = #{scriptDesc}</if>
            <if test="scriptType != null ">script_type = #{scriptType}</if>
            <if test="sort != null ">sort = #{sort}</if>
            <if test="branchFlag != null  and branchFlag != ''">branch_flag = #{branchFlag},</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno =
                #{branchNextscriptno},
smartor/src/main/resources/mapper/smartor/SvyLibScriptMapper.xml
@@ -21,7 +21,6 @@
        <result property="updateTime" column="update_time"/>
        <result property="isupload" column="isupload"/>
        <result property="uploadTime" column="upload_time"/>
        <result property="tag" column="tag"/>
        <result property="categoryid" column="categoryid"/>
        <result property="scriptContent" column="script_content"/>
        <result property="suitway" column="suitway"/>
@@ -34,11 +33,19 @@
        <result property="score" column="score"/>
        <result property="icd10Name" column="icd10_name"/>
        <result property="scriptTopic" column="script_topic"/>
        <result property="targetid" column="targetid"/>
        <result property="targetname" column="targetname"/>
        <result property="targettype" column="targettype"/>
        <result property="targetoptions" column="targetoptions"/>
    </resultMap>
    <sql id="selectSvyLibScriptVo">
        select id,
               scoretype,
               targetid,
               targetname,
               targettype,
               targetoptions,
               score,
               value_type,
               reply,
@@ -57,7 +64,6 @@
               update_time,
               isupload,
               upload_time,
               tag,
               categoryid,
               script_content,
               suitway,
@@ -76,7 +82,9 @@
            <if test="id != null ">and id = #{id}</if>
            <if test="scriptType != null and scriptType != ''">and script_type = #{scriptType}</if>
            <if test="categoryid != null ">and categoryid = #{categoryid}</if>
            <if test="scriptContent != null  and scriptContent != ''">and script_content like concat('%', #{scriptContent}, '%')</if>
            <if test="scriptContent != null  and scriptContent != ''">and script_content like concat('%',
                #{scriptContent}, '%')
            </if>
            <if test="icd10Name != null  and icd10Name != ''">and icd10_name like concat('%', #{icd10Name}, '%')</if>
            <if test="ishide != null ">and ishide = #{ishide}</if>
@@ -87,6 +95,10 @@
            <if test="scoretype != null  and scoretype != ''">and scoretype = #{scoretype}</if>
            <if test="score != null  and score != ''">and score = #{score}</if>
            <if test="scriptTopic != null  and scriptTopic != ''">and script_topic = #{scriptTopic}</if>
            <if test="targetid != null ">and targetid = #{targetid}</if>
            <if test="targetname != null  and targetname != ''">and targetname = #{targetname}</if>
            <if test="targettype != null  and targettype != ''">and targettype = #{targettype}</if>
            <if test="targetoptions != null  and targetoptions != ''">and targetoptions = #{targetoptions}</if>
        </where>
        order by id desc
    </select>
@@ -114,7 +126,6 @@
            <if test="updateTime != null">update_time,</if>
            <if test="isupload != null">isupload,</if>
            <if test="uploadTime != null">upload_time,</if>
            <if test="tag != null">tag,</if>
            <if test="categoryid != null">categoryid,</if>
            <if test="scriptContent != null and scriptContent != ''">script_content,</if>
            <if test="suitway != null and suitway != ''">suitway,</if>
@@ -128,6 +139,10 @@
            <if test="icd10Name != null and icd10Name!=''">icd10_name,</if>
            <if test="picturePath != null  and picturePath != ''">picture_path,</if>
            <if test="scriptTopic != null  and scriptTopic != ''">script_topic,</if>
            <if test="targetid != null ">targetid,</if>
            <if test="targetname != null  and targetname != ''">targetname,</if>
            <if test="targettype != null  and targettype != ''">targettype,</if>
            <if test="targetoptions != null  and targetoptions != ''">targetoptions,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="scriptType != null">#{scriptType},</if>
@@ -144,7 +159,6 @@
            <if test="updateTime != null">#{updateTime},</if>
            <if test="isupload != null">#{isupload},</if>
            <if test="uploadTime != null">#{uploadTime},</if>
            <if test="tag != null">#{tag},</if>
            <if test="categoryid != null">#{categoryid},</if>
            <if test="scriptContent != null and scriptContent != ''">#{scriptContent},</if>
            <if test="suitway != null  and suitway != ''">#{suitway},</if>
@@ -158,6 +172,10 @@
            <if test="icd10Name != null and icd10Name!=''">#{icd10Name},</if>
            <if test="picturePath != null  and picturePath != ''">#{picturePath},</if>
            <if test="scriptTopic != null  and scriptTopic != ''">#{scriptTopic},</if>
            <if test="targetid != null ">#{targetid},</if>
            <if test="targetname != null  and targetname != ''">#{targetname},</if>
            <if test="targettype != null  and targettype != ''">#{targettype},</if>
            <if test="targetoptions != null  and targetoptions != ''">#{targetoptions},</if>
        </trim>
    </insert>
@@ -182,7 +200,6 @@
            <if test="scriptContent != null">script_content = #{scriptContent},</if>
            <if test="suitway != null">suitway = #{suitway},</if>
            <if test="isavailable != null">isavailable = #{isavailable},</if>
            <if test="tag != null">tag = #{tag},</if>
            <if test="language != null and language!=''">language = #{language},</if>
            <if test="otherdata != null and otherdata!=''">otherdata = #{otherdata},</if>
            <if test="valueType != null and valueType!=''">value_type = #{valueType},</if>
@@ -192,6 +209,10 @@
            <if test="icd10Name != null and icd10Name!=''">icd10_name = #{icd10Name},</if>
            <if test="picturePath != null  and picturePath != ''">picture_path = #{picturePath},</if>
            <if test="scriptTopic != null  and scriptTopic != ''">script_topic = #{scriptTopic},</if>
            <if test="targetid != null ">targetid = #{targetid},</if>
            <if test="targetname != null  and targetname != ''">targetname = #{targetname},</if>
            <if test="targettype != null  and targettype != ''">targettype = #{targettype},</if>
            <if test="targetoptions != null  and targetoptions != ''">targetoptions = #{targetoptions},</if>
        </trim>
        where id = #{id}
    </update>
smartor/src/main/resources/mapper/smartor/SvyLibScriptTagMapper.xml
@@ -45,6 +45,7 @@
            resultMap="SvyLibScriptTagResult">
        <include refid="selectSvyLibScriptTagVo"/>
        <where>
            del_flag = 0
            <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if>
            <if test="scriptid != null ">and scriptid = #{scriptid}</if>
            <if test="tagid != null ">and tagid = #{tagid}</if>
smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
@@ -40,11 +40,19 @@
        <result property="scriptTopic" column="script_topic"/>
        <result property="branchFlag" column="branch_flag"/>
        <result property="branchNextscriptno" column="branch_nextscriptno"/>
        <result property="targetid" column="targetid"/>
        <result property="targetname" column="targetname"/>
        <result property="targettype" column="targettype"/>
        <result property="targetoptions" column="targetoptions"/>
    </resultMap>
    <sql id="selectSvyLibTemplateScriptVo">
        select id,
               script_type,
               targetid,
               targetname,
               targettype,
               targetoptions,
               scriptid,
               branch_flag,
               branch_nextscriptno,
@@ -109,7 +117,12 @@
            <if test="svyid != null  ">and svyid = #{svyid}</if>
            <if test="branchFlag != null  and branchFlag != ''">and branch_flag = #{branchFlag}</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">and branch_nextscriptno =
                #{branchNextscriptno}</if>
                #{branchNextscriptno}
            </if>
            <if test="targetid != null ">and targetid = #{targetid}</if>
            <if test="targetname != null  and targetname != ''">and targetname = #{targetname}</if>
            <if test="targettype != null  and targettype != ''">and targettype = #{targettype}</if>
            <if test="targetoptions != null  and targetoptions != ''">and targetoptions = #{targetoptions}</if>
        </where>
    </select>
@@ -156,6 +169,10 @@
            <if test="svyid != null">svyid,</if>
            <if test="branchFlag != null  and branchFlag != ''">branch_flag,</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno,</if>
            <if test="targetid != null ">targetid,</if>
            <if test="targetname != null  and targetname != ''">targetname,</if>
            <if test="targettype != null  and targettype != ''">targettype,</if>
            <if test="targetoptions != null  and targetoptions != ''">targetoptions,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="nextScriptno != null">#{nextScriptno},</if>
@@ -192,6 +209,10 @@
            <if test="svyid != null">#{svyid},</if>
            <if test="branchFlag != null  and branchFlag != ''">#{branchFlag},</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">#{branchNextscriptno},</if>
            <if test="targetid != null ">#{targetid},</if>
            <if test="targetname != null  and targetname != ''">#{targetname},</if>
            <if test="targettype != null  and targettype != ''">#{targettype},</if>
            <if test="targetoptions != null  and targetoptions != ''">#{targetoptions},</if>
        </trim>
    </insert>
@@ -234,6 +255,10 @@
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno =
                #{branchNextscriptno},
            </if>
            <if test="targetid != null ">targetid = #{targetid},</if>
            <if test="targetname != null  and targetname != ''">targetname = #{targetname},</if>
            <if test="targettype != null  and targettype != ''">targettype = #{targettype},</if>
            <if test="targetoptions != null  and targetoptions != ''">targetoptions = #{targetoptions},</if>
        </trim>
        where id = #{id}
    </update>
smartor/src/main/resources/mapper/smartor/SvyLibTemplateTagMapper.xml
@@ -45,6 +45,7 @@
            resultMap="SvyLibTemplateTagResult">
        <include refid="selectSvyLibTemplateTagVo"/>
        <where>
            del_flag=0
            <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if>
            <if test="templateid != null ">and templateid = #{templateid}</if>
            <if test="tagid != null ">and tagid = #{tagid}</if>
smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
@@ -26,7 +26,7 @@
        <result property="pid" column="pid"/>
        <result property="guid" column="guid"/>
        <result property="valueType" column="value_type"/>
        <result property="targetOptions" column="targetOptions"/>
        <result property="targetoptions" column="targetoptions"/>
        <result property="scriptType" column="script_type"/>
        <result property="targetid" column="targetid"/>
        <result property="targetvalue" column="targetvalue"/>
@@ -38,6 +38,8 @@
        <result property="scriptTopic" column="script_topic"/>
        <result property="branchFlag" column="branch_flag"/>
        <result property="branchNextscriptno" column="branch_nextscriptno"/>
        <result property="targettype" column="targettype"/>
        <result property="targetname" column="targetname"/>
    </resultMap>
@@ -47,11 +49,13 @@
               branch_flag,
               branch_nextscriptno,
               script_desc,
               targetname,
               targettype,
               taskid,
               scriptno,
               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
               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
        from svy_task_template_script
    </sql>
@@ -76,7 +80,7 @@
            <if test="pid != null ">and pid = #{pid}</if>
            <if test="guid != null  and guid != ''">and guid = #{guid}</if>
            <if test="valueType != null ">and value_type = #{valueType}</if>
            <if test="targetOptions != null  and targetOptions != ''">and targetOptions = #{targetOptions}</if>
            <if test="targetoptions != null  and targetoptions != ''">and targetoptions = #{targetoptions}</if>
            <if test="scriptType != null  and scriptType != ''">and script_type = #{scriptType}</if>
            <if test="targetid != null ">and targetid = #{targetid}</if>
            <if test="targetvalue != null  and targetvalue != ''">and targetvalue = #{targetvalue}</if>
@@ -86,6 +90,8 @@
            <if test="picturePath != null  and picturePath != ''">and picture_path = #{picturePath}</if>
            <if test="scriptTopic != null  and scriptTopic != ''">and script_topic = #{scriptTopic}</if>
            <if test="branchFlag != null  and branchFlag != ''">and branch_flag = #{branchFlag}</if>
            <if test="targetname != null  and targetname != ''">and targetname = #{branchFtargetnamelag}</if>
            <if test="targettype != null  and targettype != ''">and targettype = #{targettype}</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">and branch_nextscriptno =
                #{branchNextscriptno}
            </if>
@@ -121,7 +127,7 @@
            <if test="pid != null">pid,</if>
            <if test="guid != null">guid,</if>
            <if test="valueType != null">value_type,</if>
            <if test="targetOptions != null">targetOptions,</if>
            <if test="targetoptions != null">targetoptions,</if>
            <if test="scriptType != null">script_type,</if>
            <if test="targetid != null">targetid,</if>
            <if test="targetvalue != null">targetvalue,</if>
@@ -133,6 +139,8 @@
            <if test="scriptTopic != null">script_topic,</if>
            <if test="branchFlag != null  and branchFlag != ''">branch_flag,</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno,</if>
            <if test="targetname != null  and targetname != ''">targetname,</if>
            <if test="targettype != null  and targettype != ''">targettype,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="taskid != null">#{taskid},</if>
@@ -155,7 +163,7 @@
            <if test="pid != null">#{pid},</if>
            <if test="guid != null">#{guid},</if>
            <if test="valueType != null">#{valueType},</if>
            <if test="targetOptions != null">#{targetOptions},</if>
            <if test="targetoptions != null">#{targetoptions},</if>
            <if test="scriptType != null">#{scriptType},</if>
            <if test="targetid != null">#{targetid},</if>
            <if test="targetvalue != null">#{targetvalue},</if>
@@ -167,6 +175,8 @@
            <if test="scriptTopic != null">#{scriptTopic},</if>
            <if test="branchFlag != null  and branchFlag != ''">#{branchFlag},</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">#{branchNextscriptno},</if>
            <if test="targetname != null  and targetname != ''">#{branchFtargetnamelag},</if>
            <if test="targettype != null  and targettype != ''">#{targettype},</if>
        </trim>
    </insert>
@@ -193,7 +203,7 @@
            <if test="pid != null">pid = #{pid},</if>
            <if test="guid != null">guid = #{guid},</if>
            <if test="valueType != null">value_type = #{valueType},</if>
            <if test="targetOptions != null">targetOptions = #{targetOptions},</if>
            <if test="targetoptions != null">targetoptions = #{targetoptions},</if>
            <if test="scriptType != null">script_type = #{scriptType},</if>
            <if test="targetid != null">targetid = #{targetid},</if>
            <if test="targetvalue != null">targetvalue = #{targetvalue},</if>
@@ -207,6 +217,8 @@
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno =
                #{branchNextscriptno},
            </if>
            <if test="targetname != null  and targetname != ''">targetname = #{branchFtargetnamelag},</if>
            <if test="targettype != null  and targettype != ''">targettype = #{targettype},</if>
        </trim>
        where id = #{d}
    </update>