liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
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>