liusheng
2024-12-11 10aaa035f5be0312304d20f022bdb714a8f4900a
smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetMapper.xml
@@ -28,11 +28,21 @@
        <result property="orgid" column="orgid"/>
        <result property="pid" column="pid"/>
        <result property="guid" column="guid"/>
        <result property="optiondesc" column="optiondesc"/>
        <result property="isabnormal" column="isabnormal"/>
        <result property="warnup" column="warnup"/>
        <result property="warndown" column="warndown"/>
        <result property="picturePath" column="picture_path"/>
    </resultMap>
    <sql id="selectIvrLibaScriptTargetVo">
        select id,
               scriptid,
               optiondesc,
               isabnormal,
               warnup,
               warndown,
               picture_path,
               targetID,
               targetType,
               categoryName,
@@ -80,6 +90,11 @@
            <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
            <if test="pid != null ">and pid = #{pid}</if>
            <if test="guid != null  and guid != ''">and guid = #{guid}</if>
            <if test="isabnormal != null  and optiondesc != ''">and optiondesc = #{optiondesc}</if>
            <if test="isabnormal != null ">and isabnormal = #{isabnormal}</if>
            <if test="warnup != null ">and warnup = #{warnup}</if>
            <if test="warndown != null">and warndown = #{warndown}</if>
            <if test="picturePath != null  and picturePath != ''">and picture_path = #{picturePath}</if>
        </where>
    </select>
@@ -114,6 +129,11 @@
            <if test="orgid != null">orgid,</if>
            <if test="pid != null">pid,</if>
            <if test="guid != null">guid,</if>
            <if test="optiondesc != null">optiondesc,</if>
            <if test="isabnormal != null">isabnormal,</if>
            <if test="warnup != null">warnup,</if>
            <if test="warndown != null">warndown,</if>
            <if test="picturePath != null">picture_path,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="scriptid != null ">#{scriptid},</if>
@@ -138,6 +158,11 @@
            <if test="orgid != null">#{orgid},</if>
            <if test="pid != null">#{pid},</if>
            <if test="guid != null">#{guid},</if>
            <if test="optiondesc != null">#{optiondesc},</if>
            <if test="isabnormal != null">#{isabnormal},</if>
            <if test="warnup != null">#{warnup},</if>
            <if test="warndown != null">#{warndown},</if>
            <if test="picturePath != null">#{picturePath},</if>
        </trim>
    </insert>
@@ -166,6 +191,11 @@
            <if test="orgid != null">orgid = #{orgid},</if>
            <if test="pid != null">pid = #{pid},</if>
            <if test="guid != null">guid = #{guid},</if>
            <if test="optiondesc != null">optiondesc = #{optiondesc},</if>
            <if test="isabnormal != null">isabnormal = #{isabnormal},</if>
            <if test="warnup != null">warnup = #{warnup},</if>
            <if test="warndown != null">warndown = #{warndown},</if>
            <if test="picturePath != null">picture_path = #{picturePath},</if>
        </trim>
        where id = #{id}
    </update>
@@ -178,4 +208,4 @@
        where id = #{id}
    </delete>
</mapper>
</mapper>