| | |
| | | <result property="scripttype" column="script_type"/> |
| | | <result property="scriptcode" column="script_code"/> |
| | | <result property="script" column="script"/> |
| | | <result property="scriptPicture" column="script_picture"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="ismandatory" column="ismandatory"/> |
| | | <result property="ishide" column="ishide"/> |
| | |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="scoretype" column="scoretype"/> |
| | | <result property="score" column="score"/> |
| | | <result property="icd10Name" column="icd10_name"/> |
| | | <result property="topic" column="topic"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibScriptVo"> |
| | | select id, |
| | | oldid, |
| | | scoretype, |
| | | score, |
| | | value_type, |
| | | reply, |
| | | svyid, |
| | | script_type, |
| | | script_code, |
| | | script, |
| | | topic, |
| | | sort, |
| | | ismandatory, |
| | | ishide, |
| | |
| | | suitway, |
| | | isavailable, |
| | | otherdata, |
| | | script_picture, |
| | | language, |
| | | icd10_name, |
| | | svy_scriptid as svyscriptId |
| | | from svy_lib_script |
| | | </sql> |
| | |
| | | <if test="scripttype != null and scripttype != ''">and script_type = #{scripttype}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="script != null and script != ''">and script like concat('%', #{script}, '%')</if> |
| | | <if test="icd10Name != null and icd10Name != ''">and icd10_name like concat('%', #{icd10Name}, '%')</if> |
| | | |
| | | <if test="ishide != null ">and ishide = #{ishide}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="isavailable != null and isavailable != ''">and isavailable = #{isavailable}</if> |
| | | <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> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="otherdata != null and otherdata!=''">otherdata,</if> |
| | | <if test="valueType != null and valueType!=''">value_type,</if> |
| | | <if test="reply != null and reply!=''">otherdata,</if> |
| | | <if test="scoretype != null and scoretype!=''">scoretype,</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> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | |
| | | <if test="otherdata != null and otherdata!=''">#{otherdata},</if> |
| | | <if test="valueType != null and valueType!=''">#{valueType},</if> |
| | | <if test="reply != null and reply!=''">#{therdata},</if> |
| | | <if test="scoretype != null and scoretype!=''">#{scoretype},</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> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="otherdata != null and otherdata!=''">otherdata = #{otherdata},</if> |
| | | <if test="valueType != null and valueType!=''">value_type = #{valueType},</if> |
| | | <if test="reply != null and reply!=''">therdata =#{therdata},</if> |
| | | <if test="scoretype != null and scoretype!=''">scoretype = #{scoretype},</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> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |