| | |
| | | </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"--> |
| | |
| | | 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> |
| | | |
| | |
| | | <!-- 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> |
| | | |
| | |
| | | </if> |
| | | |
| | | </trim> |
| | | <!-- 获取主键 --> |
| | | <selectKey keyProperty="qid" resultType="String" order="AFTER"> |
| | | SELECT LAST_INSERT_ID() AS qid |
| | | </selectKey> |
| | | </insert> |
| | | |
| | | <!-- <insert id="batchTjSurveyOptions">--> |