From fdf1b9c1e4489a0c2615fa596268b2f71fad7b4c Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期一, 15 四月 2024 09:08:10 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/IvrTaskcallMapper.xml | 88 ++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 80 insertions(+), 8 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/IvrTaskcallMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrTaskcallMapper.xml index 2fb37cd..c3222e9 100644 --- a/smartor/src/main/resources/mapper/smartor/IvrTaskcallMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/IvrTaskcallMapper.xml @@ -55,6 +55,8 @@ <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"> @@ -104,9 +106,11 @@ guid, text_param, serviceform, - badNo, - icdName, - medicalRecordNo, + bad_no, + icd_name, + send_type, + medical_record_no, + send_time_slot, preachcontent from ivr_taskcall </sql> @@ -153,13 +157,15 @@ <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> @@ -168,10 +174,9 @@ 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> @@ -221,9 +226,9 @@ <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> @@ -273,6 +278,7 @@ <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> @@ -328,6 +334,7 @@ <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> @@ -340,4 +347,69 @@ 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> \ No newline at end of file -- Gitblit v1.9.3