| 文件名从 smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml 修改 |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.ServiceSubtaskDetailMapper"> |
| | | <mapper namespace="com.ruoyi.task.mapper.ServiceSubtaskDetailMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskDetail" id="ServiceSubtaskDetailResult"> |
| | | <resultMap type="com.ruoyi.task.domain.ServiceSubtaskDetail" id="ServiceSubtaskDetailResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="subId" column="sub_id"/> |
| | | <result property="targetid" column="targetid"/> |
| | |
| | | <result property="libTemplateid" column="lib_templateid"/> |
| | | <result property="score" column="score"/> |
| | | </resultMap> |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskDetailTarget" id="ServiceSubtaskDetailTargetResult"> |
| | | <resultMap type="com.ruoyi.task.domain.ServiceSubtaskDetailTarget" id="ServiceSubtaskDetailTargetResult"> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="targetname" column="targetname"/> |
| | |
| | | from service_subtask_detail |
| | | </sql> |
| | | |
| | | <select id="selectServiceSubtaskDetailList" parameterType="com.smartor.domain.ServiceSubtaskDetail" |
| | | <select id="selectServiceSubtaskDetailList" parameterType="com.ruoyi.task.domain.ServiceSubtaskDetail" |
| | | resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | where 1=1 |
| | |
| | | group by scriptid |
| | | </select> |
| | | |
| | | <select id="getServiceSubtaskDetails" parameterType="com.smartor.domain.ServiceSubtaskDetailVO" |
| | | <select id="getServiceSubtaskDetails" parameterType="com.ruoyi.task.domain.ServiceSubtaskDetailVO" |
| | | resultType="java.util.HashMap"> |
| | | select |
| | | ssd.sub_id, |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <select id="queryFillCount" resultType="com.smartor.domain.DTO.ServiceSubtaskDetailDTO"> |
| | | <select id="queryFillCount" resultType="com.ruoyi.task.domain.DTO.ServiceSubtaskDetailDTO"> |
| | | select id,questiontext,matchedtext,targetvalue,score |
| | | from service_subtask_detail |
| | | where del_flag = 0 |
| | |
| | | <if test="questiontext != null">and questiontext = #{questiontext}</if> |
| | | </select> |
| | | |
| | | <select id="isExistServiceSubtaskDetail" resultType="com.smartor.domain.DTO.ServiceSubtaskDetailDTO"> |
| | | <select id="isExistServiceSubtaskDetail" resultType="com.ruoyi.task.domain.DTO.ServiceSubtaskDetailDTO"> |
| | | select id, questiontext, matchedtext, score |
| | | from service_subtask_detail |
| | | where del_flag = 0 |
| | |
| | | <if test="scriptid != null">and scriptid = #{scriptid}</if> |
| | | </select> |
| | | |
| | | <insert id="insertServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail" |
| | | <insert id="insertServiceSubtaskDetail" parameterType="com.ruoyi.task.domain.ServiceSubtaskDetail" |
| | | useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into service_subtask_detail |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail"> |
| | | <update id="updateServiceSubtaskDetail" parameterType="com.ruoyi.task.domain.ServiceSubtaskDetail"> |
| | | update service_subtask_detail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="isMydException != null">is_myd_exception = #{isMydException},</if> |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="updateSSDByCondition" parameterType="com.smartor.domain.ServiceSubtaskDetail"> |
| | | <update id="updateSSDByCondition" parameterType="com.ruoyi.task.domain.ServiceSubtaskDetail"> |
| | | update service_subtask_detail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="subId != null">sub_id = #{subId},</if> |