| | |
| | | <result property="operatorNo" column="operator_no"/> |
| | | <result property="hospno" column="hospno"/> |
| | | <result property="hospType" column="hosp_type"/> |
| | | <result property="wechat" column="wechat"/> |
| | | <result property="diagname" column="diagname"/> |
| | | <result property="deptname" column="deptname"/> |
| | | <result property="admindate" column="admindate"/> |
| | | <result property="roomno" column="roomno"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskcallVo"> |
| | | select id, |
| | | sendname, |
| | | hosp_type, |
| | | hospno, |
| | | phone, |
| | |
| | | task_desc, |
| | | operator_no, |
| | | operator, |
| | | wechat, |
| | | sendname, |
| | | roomno, |
| | | admindate, |
| | | deptname, |
| | | diagname, |
| | | preachcontent |
| | | from ivr_taskcall |
| | | from ivr_task_single |
| | | </sql> |
| | | |
| | | <select id="selectIvrTaskcallList" parameterType="com.smartor.domain.IvrTaskSingle" resultMap="IvrTaskcallResult"> |
| | |
| | | <if test="sendType != null and sendType != ''">and send_type = #{sendType}</if> |
| | | <if test="operator != null and operator != ''">and operator = #{operator}</if> |
| | | <if test="operatorNo != null and operatorNo != ''">and operator_no = #{operatorNo}</if> |
| | | <if test="wechat != null and wechat != ''">and wechat = #{wechat}</if> |
| | | </where> |
| | | order by update_time desc,id desc |
| | | </select> |
| | |
| | | |
| | | <insert id="insertIvrTaskcall" parameterType="com.smartor.domain.IvrTaskSingle" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into ivr_taskcall |
| | | insert into ivr_task_single |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="sendname != null">sendname,</if> |
| | | <if test="phone != null">phone,</if> |
| | |
| | | <if test="operatorNo != null and operatorNo != ''">operator_no,</if> |
| | | <if test="hospType != null and hospType != ''">hosp_type,</if> |
| | | <if test="hospno != null and hospno != ''">hospno,</if> |
| | | <if test="wechat != null and wechat != ''">wechat,</if> |
| | | <if test="roomno != null and roomno != ''">roomno,</if> |
| | | <if test="admindate != null and admindate != ''">admindate,</if> |
| | | <if test="deptname != null and deptname != ''">deptname,</if> |
| | | <if test="diagname != null and diagname != ''">diagname,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="sendname != null">#{sendname},</if> |
| | |
| | | <if test="operatorNo != null and operatorNo != ''">#{operatorNo},</if> |
| | | <if test="hospType != null and hospType != ''">#{hospType},</if> |
| | | <if test="hospno != null and hospno != ''">#{hospno},</if> |
| | | <if test="wechat != null and wechat != ''">#{wechat},</if> |
| | | <if test="roomno != null and roomno != ''">#{roomno},</if> |
| | | <if test="admindate != null and admindate != ''">#{admindate},</if> |
| | | <if test="deptname != null and deptname != ''">#{deptname},</if> |
| | | <if test="diagname != null and diagname != ''">#{diagname},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTaskcall" parameterType="com.smartor.domain.IvrTaskSingle"> |
| | | update ivr_taskcall |
| | | update ivr_task_single |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="sendname != null">sendname = #{sendname},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | |
| | | <if test="operator != null and operator != ''">operator = #{operator},</if> |
| | | <if test="hospType != null and hospType != ''">hosp_type = #{hospType},</if> |
| | | <if test="hospno != null and hospno != ''">hospno = #{hospno},</if> |
| | | <if test="wechat != null and wechat != ''">wechat = #{wechat},</if> |
| | | <if test="roomno != null and roomno != ''">roomno = #{roomno},</if> |
| | | <if test="admindate != null and admindate != ''">admindate = #{admindate},</if> |
| | | <if test="deptname != null and deptname != ''">deptname = #{deptname},</if> |
| | | <if test="diagname != null and diagname != ''">diagname = #{diagname},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteIvrTaskcallById" parameterType="Long"> |
| | | update ivr_taskcall |
| | | update ivr_task_single |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | |
| | | operator, |
| | | hospno, |
| | | hosp_type, |
| | | wechat, |
| | | roomno, |
| | | admindate, |
| | | deptname, |
| | | diagname, |
| | | send_time_slot |
| | | FROM ivr_taskcall, |
| | | FROM ivr_task_single, |
| | | JSON_TABLE(send_time_slot, '$[*]' COLUMNS ( |
| | | begantime DATETIME PATH '$.begantime', |
| | | endtime DATETIME PATH '$.endtime' |