| | |
| | | <select id="selectServiceSubtaskDetailList" parameterType="com.smartor.domain.ServiceSubtaskDetail" |
| | | resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | <where> |
| | | where 1=1 |
| | | <if test="subId != null">and sub_id = #{subId}</if> |
| | | <if test="targetid != null">and targetid = #{targetid}</if> |
| | | <if test="extemplateText != null">and extemplate_text = #{extemplateText}</if> |
| | |
| | | <if test="comment != null and comment != ''">and comment = #{comment}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test=" patid != null">and patid = #{patid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectServiceSubtaskDetailByCalldetailid" parameterType="String" resultMap="ServiceSubtaskDetailResult"> |
| | |
| | | FROM service_subtask_detail |
| | | JOIN service_task |
| | | ON service_task.taskid = service_subtask_detail.taskid |
| | | JOIN ivr_liba_target ON ivr_liba_target.id = service_subtask_detail.targetid |
| | | JOIN ivr_liba_target ON ivr_liba_target.id = service_subtask_detail.targetid |
| | | WHERE |
| | | targetid = #{targetid} |
| | | GROUP BY service_task.taskid, |