|  |  | 
 |  |  |         <result property="targettype" column="targettype"/> | 
 |  |  |         <result property="targetoptions" column="targetoptions"/> | 
 |  |  |         <result property="prompt" column="prompt"/> | 
 |  |  |         <result property="groupName" column="group_name"/> | 
 |  |  |     </resultMap> | 
 |  |  |  | 
 |  |  |     <sql id="selectSvyLibTemplateScriptVo"> | 
 |  |  |         select id, | 
 |  |  |                script_type, | 
 |  |  |                targetid, | 
 |  |  |                group_name, | 
 |  |  |                targetname, | 
 |  |  |                score, | 
 |  |  |                prompt, | 
 |  |  | 
 |  |  |             <if test="targettype != null  and targettype != ''">and targettype = #{targettype}</if> | 
 |  |  |             <if test="targetoptions != null  and targetoptions != ''">and targetoptions = #{targetoptions}</if> | 
 |  |  |             <if test="score != null">and score = #{score}</if> | 
 |  |  |             <if test="groupName != null">and group_name = #{groupName}</if> | 
 |  |  |         </where> | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  | 
 |  |  |             <if test="targettype != null  and targettype != ''">targettype,</if> | 
 |  |  |             <if test="targetoptions != null  and targetoptions != ''">targetoptions,</if> | 
 |  |  |             <if test="prompt != null  and prompt != ''">prompt,</if> | 
 |  |  |             <if test="groupName != null  and groupName != ''">group_name,</if> | 
 |  |  |         </trim> | 
 |  |  |         <trim prefix="values (" suffix=")" suffixOverrides=","> | 
 |  |  |             <if test="nextScriptno != null">#{nextScriptno},</if> | 
 |  |  | 
 |  |  |             <if test="targettype != null  and targettype != ''">#{targettype},</if> | 
 |  |  |             <if test="targetoptions != null  and targetoptions != ''">#{targetoptions},</if> | 
 |  |  |             <if test="prompt != null  and prompt != ''">#{prompt},</if> | 
 |  |  |             <if test="groupName != null  and groupName != ''">#{groupName},</if> | 
 |  |  |         </trim> | 
 |  |  |     </insert> | 
 |  |  |  | 
 |  |  | 
 |  |  |             <if test="targettype != null  and targettype != ''">targettype = #{targettype},</if> | 
 |  |  |             <if test="targetoptions != null  and targetoptions != ''">targetoptions = #{targetoptions},</if> | 
 |  |  |             <if test="prompt != null  and prompt != ''">prompt = #{prompt},</if> | 
 |  |  |             <if test="groupName != null  and groupName != ''">group_name = #{groupName},</if> | 
 |  |  |         </trim> | 
 |  |  |         where id = #{id} | 
 |  |  |     </update> |