| | |
| | | <?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> |
| | | |
| | |
| | | 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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | </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"> |
| | |
| | | #{userid} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
| | |
| | | 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 |
| | |
| | | * 自增ID |
| | | */ |
| | | @ApiModelProperty("自增ID(主键)") |
| | | private Long intertcatid; |
| | | private Long id; |
| | | |
| | | /** |
| | | * 分类名称 |
| | |
| | | @ApiModelProperty(value = "指标ID") |
| | | private Integer targetid; |
| | | |
| | | /** |
| | | * 序号 |
| | | */ |
| | | @ApiModelProperty(value = "序号") |
| | | private Integer sort; |
| | | |
| | | |
| | | /** |
| | | * 是否存在操作:1 新增 2修改 3删除 |
| | |
| | | @ApiModelProperty(value = "是否存在操作:1 新增 2修改 3删除") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * 序号 |
| | | */ |
| | | @ApiModelProperty(value = "序号") |
| | | private Integer sort; |
| | | |
| | | // /** |
| | | // * 基础指标类型 |
| | | // */ |
| | |
| | | @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; |
| | | |
| | |
| | | @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; |
| | | |
| | | } |
| | |
| | | * 指标选项* |
| | | */ |
| | | @ApiModelProperty(value = "指标选项*") |
| | | private String targetOptions; |
| | | private String targetoptions; |
| | | |
| | | /** |
| | | * 基础指标类型(1 选项 2 文本 3 数值) |
| | |
| | | @ApiModelProperty(value = "选项分支的下一个话术编号") |
| | | private String branchNextscriptno; |
| | | |
| | | @ApiModelProperty(value = "基础指标类型") |
| | | private String targettype; |
| | | |
| | | @ApiModelProperty(value = "基础指标名称") |
| | | private String targetname; |
| | | |
| | | /** |
| | | * 序号 |
| | | */ |
| | | @Excel(name = "序号") |
| | | @ApiModelProperty(value = "序号") |
| | | private Long xh; |
| | | |
| | | } |
| | |
| | | private String branchNextscriptno; |
| | | |
| | | |
| | | @ApiModelProperty(value = "基础指标类型") |
| | | private String targettype; |
| | | |
| | | @ApiModelProperty(value = "基础指标名称") |
| | | private String targetname; |
| | | |
| | | /** |
| | | * 序号 |
| | | */ |
| | | @Excel(name = "序号") |
| | | @ApiModelProperty(value = "序号") |
| | | private Long xh; |
| | | |
| | | /** |
| | | * 话术选项 |
| | | */ |
| | |
| | | //标签处理 |
| | | 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()); |
| | | } |
| | | } |
| | | } |
| | |
| | | <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"/> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaExtemplateCategoryVo"> |
| | | select intertcatid, |
| | | select id, |
| | | categoryname, |
| | | orgid, |
| | | del_flag, |
| | |
| | | <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"> |
| | |
| | | </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> |
| | |
| | | <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"> |
| | |
| | | <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> |
| | |
| | | <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, |
| | |
| | | <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> |
| | | |
| | |
| | | <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> |
| | |
| | | <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> |
| | | |
| | |
| | | <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}, |
| | |
| | | <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"/> |
| | |
| | | <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, |
| | |
| | | update_time, |
| | | isupload, |
| | | upload_time, |
| | | tag, |
| | | categoryid, |
| | | script_content, |
| | | suitway, |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | | |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | 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> |
| | |
| | | <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, |
| | |
| | | <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> |
| | | |
| | |
| | | <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> |
| | |
| | | <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> |
| | | |
| | |
| | | <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> |
| | |
| | | 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> |
| | |
| | | <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"/> |
| | |
| | | <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> |
| | | |
| | |
| | | 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> |
| | | |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | | |
| | |
| | | <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> |
| | |
| | | <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> |