| | |
| | | |
| | | <!--查询当前任务未接通的人员信息(包含水库编号)-MYSQL--> |
| | | <select id="getNotConnectPatrolPersonList" resultType="java.util.Map"> |
| | | select ctc.callee_number as userPhone,ctc.task_id as taskId, |
| | | select ctc.callee_number as userPhone,ctc.task_id as taskId,ctc.call_id callId, |
| | | TRIM(BOTH '"' FROM JSON_EXTRACT(ctc.call_task_callee_content,'$."$水库编码$"')) as waterCode, |
| | | TRIM(BOTH '"' FROM JSON_EXTRACT(ctc.call_task_callee_content,'$."$水库名称$"')) as waterName, |
| | | TRIM(BOTH '"' FROM JSON_EXTRACT(ctc.call_task_callee_content,'$."$用户名$"')) as userName |
| | | from call_task_callee ctc left join call_task_result ctr on ctc.call_id = ctr.call_id |
| | | where ctc.task_id = #{taskId} |
| | | and ctc.call_status = 4 and ctr.call_result!='200000' |
| | | <if test="phone!=null and phone!=''"> |
| | | and ctc.callee_number = #{phone} |
| | | <if test="callId!=null and callId!=''"> |
| | | and ctc.call_id = #{callId} |
| | | </if> |
| | | </select> |
| | | </mapper> |