| | |
| | | <result property="assigntime" column="assigntime"/> |
| | | <result property="starttime" column="starttime"/> |
| | | <result property="answertime" column="answertime"/> |
| | | |
| | | <result property="silent" column="silent"/> |
| | | <result property="dtmfKey" column="dtmf_key"/> |
| | | <result property="musicpath" column="musicpath"/> |
| | |
| | | <result property="patid" column="patid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="extemplateText" column="extemplate_text"/> |
| | | <result property="templateType" column="template_type"/> |
| | | <result property="libTemplateid" column="lib_templateid"/> |
| | | <result property="score" column="score"/> |
| | | </resultMap> |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskDetailTarget" id="ServiceSubtaskDetailTargetResult"> |
| | | <result property="targetid" column="targetid"/> |
| | |
| | | <sql id="selectServiceSubtaskDetailVo"> |
| | | select id, |
| | | sub_id, |
| | | lib_templateid, |
| | | targetid, |
| | | answerps, |
| | | scriptid, |
| | |
| | | update_by, |
| | | update_time, |
| | | value_type, |
| | | template_type, |
| | | score, |
| | | create_by |
| | | from service_subtask_detail |
| | | </sql> |
| | |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | where 1=1 |
| | | <if test="subId != null">and sub_id = #{subId}</if> |
| | | <if test="templateType != null">and template_type = #{templateType}</if> |
| | | <if test="libTemplateid != null">and lib_templateid = #{libTemplateid}</if> |
| | | <if test="targetid != null">and targetid = #{targetid}</if> |
| | | <if test="extemplateText != null">and extemplate_text = #{extemplateText}</if> |
| | | <if test="taskid != null">and taskid = #{taskid}</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> |
| | | <if test="score != null">and score = #{score}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectServiceSubtaskDetailByCalldetailid" parameterType="String" resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <select id="queryFillCount" resultType="com.smartor.domain.DTO.ServiceSubtaskDetailDTO"> |
| | | select id,questiontext,matchedtext,targetvalue,score |
| | | from service_subtask_detail |
| | | where del_flag = 0 |
| | | and sub_id in |
| | | <foreach item="subid" collection="subids" open="(" separator="," close=")"> |
| | | #{subid} |
| | | </foreach> |
| | | <if test="questiontext != null">and questiontext = #{questiontext}</if> |
| | | </select> |
| | | |
| | | <select id="isExistServiceSubtaskDetail" resultType="com.smartor.domain.DTO.ServiceSubtaskDetailDTO"> |
| | | select id, questiontext, matchedtext, score |
| | | from service_subtask_detail |
| | | where del_flag = 0 |
| | | <if test="subid != null ">and sub_id = #{subid}</if> |
| | | <if test="scriptid != null">and scriptid = #{scriptid}</if> |
| | | </select> |
| | | |
| | | <insert id="insertServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail" |
| | |
| | | <if test=" extemplateText != null">extemplate_text,</if> |
| | | <if test=" guid != null">guid,</if> |
| | | <if test=" categoryid != null">categoryid,</if> |
| | | <if test="templateType != null">template_type,</if> |
| | | <if test="libTemplateid != null">lib_templateid,</if> |
| | | <if test="score != null">score,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="extemplateText != null">#{extemplateText},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | <if test="templateType != null">#{templateType},</if> |
| | | <if test="libTemplateid != null">#{libTemplateid},</if> |
| | | <if test="score != null">#{score},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="scriptid != null ">scriptid = #{scriptid},</if> |
| | | <if test=" patid != null">patid = #{patid},</if> |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | <if test="libTemplateid != null">lib_templateid = #{libTemplateid},</if> |
| | | <if test=" guid != null">guid = #{guid},</if> |
| | | <if test=" categoryid != null">categoryid = #{categoryid},</if> |
| | | <if test="templateType != null">template_type = #{templateType},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | <if test=" guid != null">guid = #{guid},</if> |
| | | <if test=" categoryid != null">categoryid = #{categoryid},</if> |
| | | <if test="templateType != null">template_type = #{templateType},</if> |
| | | <if test="libTemplateid != null">lib_templateid = #{libTemplateid},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | </trim> |
| | | where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId} |
| | | </update> |