| | |
| | | <result property="showTimeNoon" column="show_time_noon"/> |
| | | <result property="showTimeNight" column="show_time_night"/> |
| | | <result property="textParam" column="text_param"/> |
| | | <result property="serviceType" column="service_type"/> |
| | | <result property="longTask" column="long_task"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceTaskVo"> |
| | | select taskid, |
| | | task_name, |
| | | long_task, |
| | | show_date, |
| | | show_time_morn, |
| | | show_time_noon, |
| | |
| | | send_type, |
| | | send_state, |
| | | send_time_slot, |
| | | service_type, |
| | | orgid |
| | | from service_task |
| | | </sql> |
| | |
| | | '%') |
| | | </if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="longTask != null and longTask != ''">and long_task = #{longTask}</if> |
| | | <if test="serviceType != null and serviceType != ''">and service_type = #{serviceType}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | '%') |
| | | </if> |
| | |
| | | <if test="checktime != null ">and checktime = #{checktime}</if> |
| | | <if test="type != null and type != ''">and type = #{type}</if> |
| | | <if test="typename != null and typename != ''">and typename like concat('%', #{typename}, '%')</if> |
| | | <if test="bgeinTime != null ">and date_format(update_time,'%y%m%d') >= date_format(#{endTime},'%y%m%d') |
| | | <if test="beginTime != null ">and date_format(update_time,'%y%m%d') >= date_format(#{beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="endTime != null ">and date_format(update_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') |
| | | </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> |
| | | <if test="serviceType != null and serviceType != ''">service_type,</if> |
| | | <if test="longTask != null and longTask != ''">long_task,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskName != null">#{taskName},</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> |
| | | <if test="serviceType != null and serviceType != ''">#{serviceType},</if> |
| | | <if test="longTask != null and longTask != ''">#{longTask},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <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> |
| | | <if test="serviceType != null and serviceType != ''">service_type = #{serviceType},</if> |
| | | <if test="longTask != null and longTask != ''">long_task = #{longTask},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |