| | |
| | | <result property="seqno" column="seqno"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="type" column="type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaScriptAssortVo"> |
| | | select id, index_assort_name, guid, orgid,del_flag, create_time, update_time, pid, seqno |
| | | select id, |
| | | index_assort_name, |
| | | guid, |
| | | orgid, |
| | | del_flag, |
| | | create_time, |
| | | update_time, |
| | | pid, |
| | | seqno, |
| | | type |
| | | from ivr_liba_script_assort |
| | | </sql> |
| | | |
| | | <select id="selectIvrLibaScriptAssortList" parameterType="com.smartor.domain.IvrLibaScriptAssort" |
| | | resultMap="IvrLibaScriptAssortResult"> |
| | | <include refid="selectIvrLibaScriptAssortVo"/> |
| | | where 1=1 |
| | | where del_flag=0 |
| | | <if test="indexAssortName != null and indexAssortName != ''">and index_assort_name like concat('%', |
| | | #{indexAssortName}, '%') |
| | | </if> |
| | | <if test="type != null and type != ''">and type like concat('%', |
| | | #{type}, '%') |
| | | </if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | |
| | | <if test="seqno != null">seqno,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="type != null">type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="indexAssortName != null and indexAssortName != ''">#{indexAssortName},</if> |
| | |
| | | <if test="seqno != null">#{seqno},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="type != null">#{type},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="seqno != null">seqno = #{seqno},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |