| | |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTask" id="IvrTaskResult"> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="taskName" column="taskname"/> |
| | | <result property="taskName" column="task_name"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="templatename" column="templatename"/> |
| | | <result property="labelinfo" column="labelinfo"/> |
| | |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="preachform" column="preachform"/> |
| | | <result property="isSend" column="is_send"/> |
| | | <result property="sendType" column="send_type"/> |
| | | <result property="sendState" column="send_state"/> |
| | | <result property="param" column="param"/> |
| | | <result property="hospType" column="hosp_type"/> |
| | | <result property="hospno" column="hospno"/> |
| | | <result property="taskDesc" column="task_desc"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskVo"> |
| | | select taskid, |
| | | taskname, |
| | | task_name, |
| | | templateid, |
| | | templatename, |
| | | labelinfo, |
| | |
| | | checkusername, |
| | | checktime, |
| | | type, |
| | | task_desc, |
| | | hosp_type, |
| | | hospno, |
| | | typename, |
| | |
| | | pid, |
| | | guid, |
| | | preachform, |
| | | is_send, |
| | | send_type, |
| | | send_state, |
| | | param, |
| | | orgid |
| | |
| | | <select id="selectIvrTaskList" parameterType="com.smartor.domain.IvrTask" resultMap="IvrTaskResult"> |
| | | <include refid="selectIvrTaskVo"/> |
| | | <where> |
| | | <if test="taskName != null and taskName != ''">and taskname like concat('%', #{taskName}, '%')</if> |
| | | <if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | '%') |
| | |
| | | keyProperty="taskid"> |
| | | insert into ivr_task |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskName != null">taskname,</if> |
| | | <if test="taskName != null">task_name,</if> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="templatename != null">templatename,</if> |
| | | <if test="labelinfo != null">labelinfo,</if> |
| | |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="preachform != null">preachform,</if> |
| | | <if test="isSend != null">is_send,</if> |
| | | <if test="sendType != null">send_type,</if> |
| | | <if test="sendState != null">send_state,</if> |
| | | <if test="param != null">param,</if> |
| | | <if test="hospType != null and hospType != ''">hosp_type,</if> |
| | | <if test="hospno != null and hospno != ''">hospno,</if> |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskName != null">#{taskName},</if> |
| | |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="preachform != null">#{preachform},</if> |
| | | <if test="isSend != null">#{isSend},</if> |
| | | <if test="sendType != null">#{sendType},</if> |
| | | <if test="sendState != null">#{sendState},</if> |
| | | <if test="param != null">#{param},</if> |
| | | <if test="hospType != null and hospType != ''">#{hospType},</if> |
| | | <if test="hospno != null and hospno != ''">#{hospno},</if> |
| | | <if test="taskDesc != null and taskDesc != ''">#{taskDesc},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTask" parameterType="com.smartor.domain.IvrTask"> |
| | | update ivr_task |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskName != null">taskname = #{taskName},</if> |
| | | <if test="taskName != null">task_name = #{taskName},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="templatename != null">templatename = #{templatename},</if> |
| | | <if test="labelinfo != null">labelinfo = #{labelinfo},</if> |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="preachform != null">preachform = #{preachform},</if> |
| | | <if test="isSend != null">is_send = #{isSend},</if> |
| | | <if test="sendType != null">send_type = #{sendType},</if> |
| | | <if test="sendState != null">send_state = #{sendState},</if> |
| | | <if test="param != null">param = #{param},</if> |
| | | <if test="hospType != null and hospType != ''">hosp_type = #{hospType},</if> |
| | | <if test="hospno != null and hospno != ''">hospno = #{hospno},</if> |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc= #{taskDesc},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |