| | |
| | | <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> |