| | |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="scripttype" column="script_type"/> |
| | | <result property="scriptcode" column="script_code"/> |
| | | <result property="script" column="script"/> |
| | | <result property="scriptDesc" column="script_desc"/> |
| | | <result property="scriptPicture" column="script_picture"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="ismandatory" column="ismandatory"/> |
| | |
| | | <result property="scoretype" column="scoretype"/> |
| | | <result property="score" column="score"/> |
| | | <result property="icd10Name" column="icd10_name"/> |
| | | <result property="topic" column="topic"/> |
| | | <result property="scriptTopic" column="script_topic"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibScriptVo"> |
| | |
| | | svyid, |
| | | script_type, |
| | | script_code, |
| | | script, |
| | | topic, |
| | | script_desc, |
| | | script_topic, |
| | | sort, |
| | | ismandatory, |
| | | ishide, |
| | |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="scoretype != null and scoretype != ''">and scoretype = #{scoretype}</if> |
| | | <if test="score != null and score != ''">and score = #{score}</if> |
| | | <if test="topic != null and topic != ''">and topic = #{topic}</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic = #{scriptTopic}</if> |
| | | </where> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <select id="selectSvyLibScriptByScriptid" parameterType="Long" resultMap="SvyLibScriptResult"> |
| | |
| | | <if test="svyid != null">svyid,</if> |
| | | <if test="scripttype != null">script_type,</if> |
| | | <if test="scriptcode != null">script_code,</if> |
| | | <if test="script != null">script,</if> |
| | | <if test="scriptDesc != null">script_desc,</if> |
| | | <if test="sort != null">sort,</if> |
| | | <if test="ismandatory != null">ismandatory,</if> |
| | | <if test="ishide != null">ishide,</if> |
| | |
| | | <if test="score != null and score!=''">score,</if> |
| | | <if test="icd10Name != null and icd10Name!=''">icd10_name,</if> |
| | | <if test="scriptPicture != null and scriptPicture != ''">script_picture,</if> |
| | | <if test="topic != null and topic != ''">topic,</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">script_topic,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | | <if test="svyid != null">#{svyid},</if> |
| | | <if test="scripttype != null">#{scripttype},</if> |
| | | <if test="scriptcode != null">#{scriptcode},</if> |
| | | <if test="script != null">#{script},</if> |
| | | <if test="scriptDesc != null">#{scriptDesc},</if> |
| | | <if test="sort != null">#{sort},</if> |
| | | <if test="ismandatory != null">#{ismandatory},</if> |
| | | <if test="ishide != null">#{ishide},</if> |
| | |
| | | <if test="score != null and score!=''">#{score},</if> |
| | | <if test="icd10Name != null and icd10Name!=''">#{icd10Name},</if> |
| | | <if test="scriptPicture != null and scriptPicture != ''">#{scriptPicture},</if> |
| | | <if test="topic != null and topic != ''">#{topic},</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">#{scriptTopic},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="svyid != null">svyid = #{svyid},</if> |
| | | <if test="scripttype != null">script_type = #{scripttype},</if> |
| | | <if test="scriptcode != null">script_code = #{scriptcode},</if> |
| | | <if test="script != null">script = #{script},</if> |
| | | <if test="scriptDesc != null">script_desc = #{scriptDesc},</if> |
| | | <if test="sort != null">sort = #{sort},</if> |
| | | <if test="ismandatory != null">ismandatory = #{ismandatory},</if> |
| | | <if test="ishide != null">ishide = #{ishide},</if> |
| | |
| | | <if test="score != null and score!=''">score = #{score},</if> |
| | | <if test="icd10Name != null and icd10Name!=''">icd10_name = #{icd10Name},</if> |
| | | <if test="scriptPicture != null and scriptPicture != ''">script_picture = #{scriptPicture},</if> |
| | | <if test="topic != null and topic != ''">topic = #{topic},</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">script_topic = #{scriptTopic},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |