| | |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="stopState" column="stop_state"/> |
| | | <result property="showDate" column="show_date"/> |
| | | <result property="showTimeMorn" column="show_time_morn"/> |
| | | <result property="showTimeNoon" column="show_time_noon"/> |
| | | <result property="showTimeNight" column="show_time_night"/> |
| | | <result property="textParam" column="text_param"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskVo"> |
| | | select taskid, |
| | | task_name, |
| | | show_date, |
| | | show_time_morn, |
| | | show_time_noon, |
| | | show_time_night, |
| | | libtemplateid, |
| | | libtemplatename, |
| | | stop_state, |
| | | text_param, |
| | | templateid, |
| | | templatename, |
| | | labelinfo, |
| | |
| | | <include refid="selectIvrTaskVo"/> |
| | | <where> |
| | | <if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and sendTimeSlot like concat('%', #{sendTimeSlot}, |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and send_time_slot like concat('%', #{sendTimeSlot}, |
| | | '%') |
| | | </if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | |
| | | <if test="hospType != null and hospType != ''">and hosp_type = #{hospType}</if> |
| | | <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">and libtemplatename = #{libtemplatename}</if> |
| | | <if test="stopState != null ">and stop_state = #{stopState}</if> |
| | | </where> |
| | | order by update_time desc,taskid desc |
| | | </select> |
| | |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc,</if> |
| | | <if test="libtemplateid != null ">libtemplateid,</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">libtemplatename,</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">sendTimeSlot,</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">send_time_slot,</if> |
| | | <if test="stopState != null">stop_state,</if> |
| | | <if test="showDate != null and showDate != ''">show_date,</if> |
| | | <if test="showTimeNight != null and showTimeNight != ''">show_time_night,</if> |
| | | <if test="showTimeNoon != null and showTimeNoon != ''">show_time_noon,</if> |
| | | <if test="showTimeMorn != null and showTimeMorn != ''">show_time_morn,</if> |
| | | <if test="textParam != null and textParam != ''">text_param,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskName != null">#{taskName},</if> |
| | |
| | | <if test="libtemplatename != null and libtemplatename != ''">#{libtemplatename},</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">#{sendTimeSlot},</if> |
| | | <if test="stopState != null">#{stopState},</if> |
| | | <if test="showDate != null and showDate != ''">#{showDate},</if> |
| | | <if test="showTimeNight != null and showTimeNight != ''">#{showTimeNight},</if> |
| | | <if test="showTimeNoon != null and showTimeNoon != ''">#{showTimeNoon},</if> |
| | | <if test="showTimeMorn != null and showTimeMorn != ''">#{showTimeMorn},</if> |
| | | <if test="textParam != null and textParam != ''">#{textParam},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="libtemplatename != null and libtemplatename != ''">libtemplatename = #{libtemplatename},</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">send_time_slot=#{sendTimeSlot},</if> |
| | | <if test="stopState != null ">stop_state=#{stopState},</if> |
| | | <if test="showDate != null and showDate != ''">show_date=#{showDate},</if> |
| | | <if test="showTimeNight != null and showTimeNight != ''">show_time_night=#{showTimeNight},</if> |
| | | <if test="showTimeNoon != null and showTimeNoon != ''">show_time_noon=#{showTimeNoon},</if> |
| | | <if test="showTimeMorn != null and showTimeMorn != ''">show_time_morn=#{showTimeMorn},</if> |
| | | <if test="textParam != null and textParam != ''">text_param=#{textParam},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |