| | |
| | | <result property="deleted" column="deleted"/> |
| | | <result property="designId" column="design_id"/> |
| | | <result property="qybz" column="qybz"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="TjSurveyTemplateTjSurveyTempQuesResult" type="TjSurveyTemplate" extends="TjSurveyTemplateResult"> |
| | |
| | | a.deleted, |
| | | a.design_id, |
| | | a.qybz, |
| | | a.dept_id, |
| | | b.tqid as |
| | | sub_tqid, |
| | | b.mid as |
| | |
| | | </if> |
| | | <if test="qybz != null">qybz, |
| | | </if> |
| | | <if test="deptId != null">dept_id, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="tempName != null">#{tempName}, |
| | |
| | | </if> |
| | | <if test="designId != null">#{designId}, |
| | | </if> |
| | | <if test="qybz != null">#{qybz}, |
| | | </if> |
| | | <if test="qybz != null">#{qybz},</if> |
| | | <if test="deptId != null">#{deptId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="qybz != null">qybz = |
| | | #{qybz}, |
| | | </if> |
| | | <if test="deptId != null">dept_id= #{deptId}, |
| | | </if> |
| | | </trim> |
| | | where mid = #{mid} |
| | | </update> |