zjh
2024-05-16 adaaa23c789be3313a0e554fbf7beaa8ab261e68
ltkj-hosp/src/main/resources/mapper/hosp/TjSurveyQuestionMapper.xml
@@ -150,9 +150,9 @@
    </select>
    <select id="selectOptionsByQid" parameterType="String" resultType="TjSurveyOptions">
    <select id="selectOptionsByQid" parameterType="java.lang.String" resultType="TjSurveyOptions">
        select oid,qid,ooption,score,remark,create_by,create_time,update_by,update_time,deleted from tj_survey_options
        where qid = #{qid}
        where qid = #{qid} and deleted=0
    </select>
<!--    <insert id="insertTjSurveyQuestion" parameterType="TjSurveyQuestion" useGeneratedKeys="true"-->
@@ -302,7 +302,7 @@
        where qid = #{qid}
    </update>
    <update id="deleteTjSurveyQuestionByQid" parameterType="TjSurveyQuestion">
    <update id="deleteTjSurveyQuestionByQid" parameterType="java.lang.Long">
        update tj_survey_question SET deleted = 1 where qid = #{qid}
    </update>
@@ -352,7 +352,7 @@
<!--        where qid = #{qid}-->
<!--    </delete>-->
    <update id="deleteTjSurveyOptionsByQid" parameterType="TjSurveyOptions">
    <update id="deleteTjSurveyOptionsByQid"  parameterType="java.lang.Long">
        update tj_survey_options SET deleted = 1 where qid = #{qid}
    </update>
@@ -397,6 +397,10 @@
            </if>
        </trim>
        <!-- 获取主键 -->
        <selectKey keyProperty="qid" resultType="String" order="AFTER">
            SELECT LAST_INSERT_ID() AS qid
        </selectKey>
    </insert>
<!--    <insert id="batchTjSurveyOptions">-->