| | |
| | | <result property="score" column="score"/> |
| | | <result property="appendflag" column="appendflag"/> |
| | | <result property="appenddesc" column="appenddesc"/> |
| | | <result property="optionNo" column="option_no"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateTargetoptionVo"> |
| | | select id, |
| | | groupid, |
| | | score, |
| | | option_no, |
| | | appendflag, |
| | | appenddesc, |
| | | categoryName, |
| | |
| | | <if test="picturePath != null and picturePath != ''">and picture_path = #{picturePath}</if> |
| | | <if test="appendflag != null">and appendflag = #{appendflag}</if> |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | <if test="optionNo != null">and option_no = #{optionNo}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="score != null">score,</if> |
| | | <if test="appendflag != null">appendflag,</if> |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="optionNo != null">option_no,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="groupid != null">#{groupid},</if> |
| | |
| | | <if test="score != null">#{score},</if> |
| | | <if test="appendflag != null">#{appendflag},</if> |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="optionNo != null">#{optionNo},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="appendflag != null">appendflag = #{appendflag},</if> |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="optionNo != null">option_no = #{optionNo},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |