| | |
| | | <result property="isAvailable" column="isAvailable"/> |
| | | <result property="suitDisease" column="suitDisease"/> |
| | | <result property="suitWay" column="suitWay"/> |
| | | <result property="parameter" column="parameter"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTargetVO" id="IvrLibaTargetVOResult"> |
| | |
| | | <result property="isAvailable" column="isAvailable"/> |
| | | <result property="suitDisease" column="suitDisease"/> |
| | | <result property="suitWay" column="suitWay"/> |
| | | <result property="parameter" column="parameter"/> |
| | | <collection property="targetoptionList" javaType="java.util.List" resultMap="IvrLibaTargetoptionResult"/> |
| | | </resultMap> |
| | | |
| | |
| | | targettype, |
| | | targetname, |
| | | targetdesc, language, version, isenable, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, assortid, |
| | | isAvailable, suitDisease, suitWay |
| | | isAvailable, suitDisease, suitWay,parameter |
| | | from ivr_liba_target |
| | | </sql> |
| | | |
| | |
| | | <include refid="selectIvrLibaTargetVo"/> |
| | | <where> |
| | | del_flag != 1 |
| | | <if test="targetID != null ">and targetID = #{targetID}</if> |
| | | <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | |
| | | <if test="isAvailable != null">and isAvailable=#{isAvailable},</if> |
| | | <if test="suitDisease != null and suitDisease != ''">and suitDisease = #{suitDisease},</if> |
| | | <if test="suitWay != null and suitWay != ''">and suitWay = #{suitWay},</if> |
| | | <if test="parameter != null and parameter != ''">and parameter = #{parameter},</if> |
| | | |
| | | </where> |
| | | </select> |
| | |
| | | a.isAvailable, |
| | | a.suitDisease, |
| | | a.suitWay, |
| | | a.parameter, |
| | | b.targetoptionid, |
| | | b.targettype, |
| | | b.categoryName, |
| | |
| | | <if test="isAvailable != null">a.isAvailable=#{isAvailable},</if> |
| | | <if test="suitDisease != null and suitDisease != ''">a.suitDisease = #{suitDisease},</if> |
| | | <if test="suitWay != null and suitWay != ''">a.suitWay = #{suitWay},</if> |
| | | <if test="parameter != null and parameter != ''">a.parameter = #{parameter},</if> |
| | | </where> |
| | | ORDER BY a.targetID |
| | | </select> |
| | |
| | | <if test="isAvailable != null">isAvailable,</if> |
| | | <if test="suitDisease != null and suitDisease != ''">suitDisease,</if> |
| | | <if test="suitWay != null and suitWay != ''">suitWay,</if> |
| | | <if test="parameter != null and parameter != ''">parameter,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="groupid != null">#{groupid},</if> |
| | |
| | | <if test="isAvailable != null">#{isAvailable},</if> |
| | | <if test="suitDisease != null and suitDisease != ''">#{suitDisease},</if> |
| | | <if test="suitWay != null and suitWay != ''">#{suitWay},</if> |
| | | <if test="parameter != null and parameter != ''">#{parameter},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="suitDisease != null and suitDisease != ''">suitDisease = #{suitDisease},</if> |
| | | <if test="suitWay != null and suitWay != ''">suitWay = #{suitWay},</if> |
| | | <if test="isAvailable != null and isAvailable != ''">isAvailable = #{isAvailable},</if> |
| | | <if test="parameter != null and parameter != ''">parameter = #{parameter},</if> |
| | | </trim> |
| | | where targetID = #{targetID} |
| | | </update> |