| | |
| | | <result property="icdName" column="icd_name"/> |
| | | <result property="medicalRecordNo" column="medical_record_no"/> |
| | | <result property="preachcontent" column="preachcontent"/> |
| | | <result property="sendType" column="send_type"/> |
| | | <result property="sendTimeSlot" column="send_time_slot"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskcallVo"> |
| | |
| | | guid, |
| | | text_param, |
| | | serviceform, |
| | | badNo, |
| | | icdName, |
| | | medicalRecordNo, |
| | | bad_no, |
| | | icd_name, |
| | | send_type, |
| | | medical_record_no, |
| | | send_time_slot, |
| | | preachcontent |
| | | from ivr_taskcall |
| | | </sql> |
| | |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="piserviceformd != null ">and serviceform = #{serviceform}</if> |
| | | <if test="serviceform != null ">and serviceform = #{serviceform}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="textParam != null and textParam != ''">and text_param = #{textParam}</if> |
| | | <if test="badNo != null">and bad_no = #{badNo}</if> |
| | | <if test="icdName != null and icdName != ''">and icd_name = #{icdName}</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">and medical_record_no = #{medicalRecordNo}</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">and medical_record_no = #{medicalRecordNo} |
| | | </if> |
| | | <if test="preachcontent != null and preachcontent != ''">and preachcontent = #{preachcontent}</if> |
| | | <if test="sendType != null and sendType != ''">and send_type = #{sendType}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskcall" parameterType="com.smartor.domain.IvrTaskcall"> |
| | | <insert id="insertIvrTaskcall" parameterType="com.smartor.domain.IvrTaskcall" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into ivr_taskcall |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="sendname != null">sendname,</if> |
| | | <if test="phone != null">phone,</if> |
| | | <if test="sex != null">sex,</if> |
| | |
| | | <if test="icdName != null and icdName != ''">icd_name,</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">medical_record_no,</if> |
| | | <if test="preachcontent != null and preachcontent != ''">preachcontent,</if> |
| | | <if test="sendType != null and sendType != ''">send_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="sendname != null">#{sendname},</if> |
| | | <if test="phone != null">#{phone},</if> |
| | | <if test="sex != null">#{sex},</if> |
| | |
| | | <if test="icdName != null and icdName != ''">#{icdName},</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">#{medicalRecordNo},</if> |
| | | <if test="preachcontent != null and preachcontent != ''">#{preachcontent},</if> |
| | | <if test="sendType != null and sendType != ''">#{sendType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="icdName != null and icdName != ''">icd_name = #{icdName},</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">medical_record_no = #{medicalRecordNo},</if> |
| | | <if test="preachcontent != null and preachcontent != ''">preachcontent = #{preachcontent},</if> |
| | | <if test="sendType != null and sendType != ''">send_type = #{sendType},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <select id="getDataByTime" resultMap="IvrTaskcallResult"> |
| | | |
| | | select id, |
| | | sendname, |
| | | phone, |
| | | sex, |
| | | age, |
| | | sfzh, |
| | | addr, |
| | | senderdetail, |
| | | type, |
| | | taskid, |
| | | templateid, |
| | | templatename, |
| | | senddate, |
| | | sendlimitabegin, |
| | | sendlimitaend, |
| | | sendlimitpbegin, |
| | | sendlimitpend, |
| | | sendlimitnbegin, |
| | | sendlimitnend, |
| | | sendstate, |
| | | senduuid, |
| | | result, |
| | | finishtime, |
| | | userid, |
| | | username, |
| | | outbounduuid, |
| | | recordid, |
| | | recallcount, |
| | | exrecallcount, |
| | | pulltime, |
| | | bqsms, |
| | | bhsms, |
| | | deptcode, |
| | | labelstatus, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid, |
| | | pid, |
| | | guid, |
| | | text_param, |
| | | serviceform, |
| | | bad_no, |
| | | icd_name, |
| | | send_type, |
| | | medical_record_no, |
| | | preachcontent, |
| | | send_time_slot |
| | | FROM ivr_taskcall, |
| | | JSON_TABLE(send_time_slot, '$[*]' COLUMNS ( |
| | | begantime DATETIME PATH '$.begantime', |
| | | endtime DATETIME PATH '$.endtime' |
| | | )) AS jt |
| | | WHERE jt.begantime > #{beganTime} |
| | | AND jt.begantime <= #{endTime} |
| | | AND sendstate IS NULL |
| | | </select> |
| | | |
| | | |
| | | </mapper> |