| | |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="targetoptions" column="targetoptions"/> |
| | | <result property="dimension" column="dimension"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibScriptVo"> |
| | | select id, |
| | | scoretype, |
| | | dimension, |
| | | targetid, |
| | | targetname, |
| | | targettype, |
| | |
| | | and del_flag = 0 |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="scriptType != null and scriptType != ''">and script_type = #{scriptType}</if> |
| | | <if test="dimension != null and dimension != ''">and dimension = #{dimension}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content like concat('%', |
| | | #{scriptContent}, '%') |
| | |
| | | <if test="targettype != null and targettype != ''">targettype,</if> |
| | | <if test="targetoptions != null and targetoptions != ''">targetoptions,</if> |
| | | <if test="guid != null and guid != ''">guid,</if> |
| | | <if test="dimension != null and dimension != ''">dimension,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptType != null">#{scriptType},</if> |
| | |
| | | <if test="targettype != null and targettype != ''">#{targettype},</if> |
| | | <if test="targetoptions != null and targetoptions != ''">#{targetoptions},</if> |
| | | <if test="guid != null and guid != ''">#{guid},</if> |
| | | <if test="dimension != null and dimension != ''">#{dimension},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="targetname != null and targetname != ''">targetname = #{targetname},</if> |
| | | <if test="targettype != null and targettype != ''">targettype = #{targettype},</if> |
| | | <if test="targetoptions != null and targetoptions != ''">targetoptions = #{targetoptions},</if> |
| | | <if test="dimension != null and dimension != ''">dimension = #{dimension},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |