| | |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="preachform" column="preachform"/> |
| | | <result property="preachformDesc" column="preachform_desc"/> |
| | | <result property="sendType" column="send_type"/> |
| | | <result property="sendState" column="send_state"/> |
| | | <result property="hospType" column="hosp_type"/> |
| | |
| | | text_param, |
| | | templateid, |
| | | templatename, |
| | | preachform_desc, |
| | | labelinfo, |
| | | count, |
| | | executed, |
| | |
| | | </if> |
| | | <if test="endTime != null ">and date_format(update_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') |
| | | </if> |
| | | |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | | <if test="deptcode != null and deptcode != ''"> |
| | | and deptcode REGEXP CONCAT('(^|,)', #{deptcode}, '(,|$)') |
| | | </if> |
| | | <if test="deptname != null and deptname != ''">and deptname = #{deptname}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | |
| | | <if test="leavehospitaldistrictname != null ">and leavehospitaldistrictname = |
| | | #{leavehospitaldistrictname} |
| | | </if> |
| | | <if test="leavehospitaldistrictcode != null ">and leavehospitaldistrictcode = |
| | | #{leavehospitaldistrictcode} |
| | | <if test="leavehospitaldistrictcode != null and leavehospitaldistrictcode != ''"> |
| | | and leavehospitaldistrictcode REGEXP CONCAT('(^|,)', #{leavehospitaldistrictcode}, '(,|$)') |
| | | </if> |
| | | |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size()>0"> |
| | | AND leavehospitaldistrictcode IN |
| | | <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," |
| | |
| | | service_task.pid, |
| | | service_task.guid, |
| | | service_task.preachform, |
| | | service_task.preachform_desc, |
| | | service_task.send_type, |
| | | service_task.send_state, |
| | | service_task.send_time_slot, |
| | |
| | | |
| | | <select id="selectServiceTaskByTaskid" parameterType="Long" resultMap="ServiceTaskResult"> |
| | | <include refid="selectServiceTaskVo"/> |
| | | where taskid = #{taskid} |
| | | where taskid = #{taskid} and del_flag=0 |
| | | </select> |
| | | |
| | | <insert id="insertServiceTask" parameterType="com.smartor.domain.ServiceTask" useGeneratedKeys="true" |
| | |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="preachform != null">preachform,</if> |
| | | <if test="preachformDesc != null">preachform_desc,</if> |
| | | <if test="sendType != null">send_type,</if> |
| | | <if test="sendState != null">send_state,</if> |
| | | <if test="hospType != null and hospType != ''">hosp_type,</if> |
| | |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="preachform != null">#{preachform},</if> |
| | | <if test="preachformDesc != null">#{preachformDesc},</if> |
| | | <if test="sendType != null">#{sendType},</if> |
| | | <if test="sendState != null">#{sendState},</if> |
| | | <if test="hospType != null and hospType != ''">#{hospType},</if> |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="preachform != null">preachform = #{preachform},</if> |
| | | <if test="preachformDesc != null">preachform_desc = #{preachformDesc},</if> |
| | | <if test="sendType != null">send_type = #{sendType},</if> |
| | | <if test="sendState != null">send_state = #{sendState},</if> |
| | | <if test="hospType != null and hospType != ''">hosp_type = #{hospType},</if> |
| | |
| | | </if> |
| | | <if test="leavehospitaldistrictcode != null ">leavehospitaldistrictcode = #{leavehospitaldistrictcode}, |
| | | </if> |
| | | <if test="compensateDate != null and compensateDate != ''">compensate_date = #{compensateDate}</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay}</if> |
| | | <if test="appltype != null ">appltype = #{appltype}</if> |
| | | <if test="patCycle != null ">pat_cycle = #{patCycle}</if> |
| | | <if test="compensateDate != null and compensateDate != ''">compensate_date = #{compensateDate},</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay},</if> |
| | | <if test="appltype != null ">appltype = #{appltype},</if> |
| | | <if test="patCycle != null ">pat_cycle = #{patCycle},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |