liusheng
2024-11-27 dbbb114c25b2406b6d1fd52019d2f2228ffcacd0
smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
@@ -51,6 +51,7 @@
        <result property="answerps" column="answerps"/>
        <result property="comment" column="comment"/>
        <result property="patid" column="patid"/>
        <result property="extemplateText" column="extemplate_text"/>
    </resultMap>
    <sql id="selectServiceSubtaskDetailVo">
@@ -58,6 +59,7 @@
               sub_id,
               answerps,
               scriptid,
               extemplate_text,
               comment,
               patid,
               taskid,
@@ -108,6 +110,7 @@
        <include refid="selectServiceSubtaskDetailVo"/>
        <where>
            <if test="subId != null">and sub_id = #{subId}</if>
            <if test="extemplateText != null">and extemplate_text = #{extemplateText}</if>
            <if test="taskid != null">and taskid = #{taskid}</if>
            <if test="uuid != null  and uuid != ''">and uuid = #{uuid}</if>
            <if test="phone != null  and phone != ''">and phone = #{phone}</if>
@@ -206,6 +209,7 @@
            <if test="comment != null  and comment != ''">comment,</if>
            <if test="scriptid != null ">scriptid,</if>
            <if test=" patid != null">patid,</if>
            <if test=" extemplateText != null">extemplate_text,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},</if>
@@ -254,6 +258,7 @@
            <if test="comment != null  and comment != ''">#{comment},</if>
            <if test="scriptid != null ">#{scriptid},</if>
            <if test=" patid != null">#{patid},</if>
            <if test=" extemplateText != null">#{extemplateText},</if>
        </trim>
    </insert>
@@ -305,6 +310,7 @@
            <if test="comment != null  and comment != ''">comment = #{comment},</if>
            <if test="scriptid != null ">scriptid = #{scriptid},</if>
            <if test=" patid != null">patid = #{patid},</if>
            <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if>
        </trim>
        where id = #{id}
    </update>
@@ -358,6 +364,7 @@
            <if test="comment != null  and comment != ''">comment = #{comment},</if>
            <if test="scriptid != null ">scriptid = #{scriptid},</if>
            <if test=" patid != null">patid = #{patid},</if>
            <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if>
        </trim>
        where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId}
    </update>