| | |
| | | <result property="isSend" column="is_send" /> |
| | | <result property="sendState" column="send_state" /> |
| | | <result property="param" column="param" /> |
| | | <result property="textParam" column="text_param"/> |
| | | <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="sendTimeSlot" column="send_time_slot"/> |
| | | <result property="libtemplateid" column="libtemplateid"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskVo"> |
| | | select taskid, svrtaskid, taskname, templateid, templatename, labelinfo, state, count, executed, unexecuted, fail, patientid, patientname, addtime, checkuserid, checkusername, checktime, type, typename, usebqsms, usebhsms, usesendsms, deptcode, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, preachform, is_send, send_state, param from svy_task |
| | | select taskid, |
| | | send_time_slot, |
| | | libtemplateid, |
| | | libtemplatename, |
| | | show_date, |
| | | show_time_morn, |
| | | show_time_noon, |
| | | show_time_night, |
| | | stop_state, |
| | | svrtaskid, |
| | | text_param, |
| | | taskname, |
| | | templateid, |
| | | templatename, |
| | | labelinfo, |
| | | state, |
| | | count, |
| | | executed, |
| | | unexecuted, |
| | | fail, |
| | | patientid, |
| | | patientname, |
| | | addtime, |
| | | checkuserid, |
| | | checkusername, |
| | | checktime, |
| | | type, |
| | | typename, |
| | | usebqsms, |
| | | usebhsms, |
| | | usesendsms, |
| | | deptcode, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid, |
| | | pid, |
| | | guid, |
| | | preachform, |
| | | is_send, |
| | | send_state, |
| | | param |
| | | from svy_task |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskList" parameterType="com.smartor.domain.SvyTask" resultMap="SvyTaskResult"> |
| | |
| | | <if test="svrtaskid != null "> and svrtaskid = #{svrtaskid}</if> |
| | | <if test="taskname != null and taskname != ''"> and taskname 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}, '%')</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | '%') |
| | | </if> |
| | | <if test="labelinfo != null and labelinfo != ''"> and labelinfo = #{labelinfo}</if> |
| | | <if test="state != null "> and state = #{state}</if> |
| | | <if test="count != null "> and count = #{count}</if> |
| | |
| | | <if test="unexecuted != null "> and unexecuted = #{unexecuted}</if> |
| | | <if test="fail != null "> and fail = #{fail}</if> |
| | | <if test="patientid != null and patientid != ''"> and patientid = #{patientid}</if> |
| | | <if test="patientname != null and patientname != ''"> and patientname like concat('%', #{patientname}, '%')</if> |
| | | <if test="patientname != null and patientname != ''">and patientname like concat('%', #{patientname}, |
| | | '%') |
| | | </if> |
| | | <if test="addtime != null "> and addtime = #{addtime}</if> |
| | | <if test="checkuserid != null and checkuserid != ''"> and checkuserid = #{checkuserid}</if> |
| | | <if test="checkusername != null and checkusername != ''"> and checkusername like concat('%', #{checkusername}, '%')</if> |
| | | <if test="checkusername != null and checkusername != ''">and checkusername like concat('%', |
| | | #{checkusername}, '%') |
| | | </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="isSend != null "> and is_send = #{isSend}</if> |
| | | <if test="sendState != null and sendState != ''"> and send_state = #{sendState}</if> |
| | | <if test="param != null and param != ''"> and param = #{param}</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and send_time_slot like concat('%', #{sendTimeSlot}, |
| | | '%') |
| | | </if> |
| | | <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">and libtemplatename = #{libtemplatename}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="isSend != null">is_send,</if> |
| | | <if test="sendState != null">send_state,</if> |
| | | <if test="param != null">param,</if> |
| | | <if test="textParam != null">text_param,</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="libtemplateid != null ">libtemplateid,</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">libtemplatename,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="svrtaskid != null">#{svrtaskid},</if> |
| | |
| | | <if test="isSend != null">#{isSend},</if> |
| | | <if test="sendState != null">#{sendState},</if> |
| | | <if test="param != null">#{param},</if> |
| | | <if test="textParam != null">#{textParam},</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="libtemplateid != null ">#{libtemplateid},</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">#{libtemplatename},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="isSend != null">is_send = #{isSend},</if> |
| | | <if test="sendState != null">send_state = #{sendState},</if> |
| | | <if test="param != null">param = #{param},</if> |
| | | <if test="textParam != null">text_param = #{textParam},</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="libtemplateid != null ">libtemplateid = #{libtemplateid},</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">libtemplatename = #{libtemplatename},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskByTaskid" parameterType="Long"> |
| | | delete from svy_task where taskid = #{taskid} |
| | | delete |
| | | from svy_task |
| | | where taskid = #{taskid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskByTaskids" parameterType="String"> |