| | |
| | | <result property="prologue" column="prologue"/> |
| | | <result property="instruction" column="instruction"/> |
| | | <result property="conclusion" column="conclusion"/> |
| | | <result property="longTemp" column="long_temp"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateVo"> |
| | | select svyid, |
| | | categoryid, |
| | | long_temp, |
| | | instruction, |
| | | prologue, |
| | | conclusion, |
| | |
| | | resultMap="SvyLibTemplateResult"> |
| | | SELECT |
| | | a.svyid, |
| | | a.long_temp, |
| | | a.conclusion, |
| | | a.instruction, |
| | | a.prologue, |
| | |
| | | a.del_flag=0 |
| | | <if test="categoryid != null ">and a.categoryid = #{categoryid}</if> |
| | | <if test="svyid != null ">and a.svyid = #{svyid}</if> |
| | | <if test="longTemp != null ">and a.long_temp = #{longTemp}</if> |
| | | <if test="svyname != null and svyname != ''">and a.svyname like concat('%', #{svyname}, '%')</if> |
| | | <if test="description != null and description != ''">and b.icd10name like concat('%', #{description}, '%') |
| | | </if> |
| | |
| | | <if test="conclusion != null">conclusion,</if> |
| | | <if test="instruction != null">instruction,</if> |
| | | <if test="prologue != null">prologue,</if> |
| | | <if test="longTemp != null ">long_temp,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | |
| | | <if test="conclusion != null">#{conclusion},</if> |
| | | <if test="instruction != null">#{instruction},</if> |
| | | <if test="prologue != null">#{prologue},</if> |
| | | <if test="longTemp != null ">#{longTemp},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="conclusion != null">conclusion=#{conclusion},</if> |
| | | <if test="instruction != null">instruction=#{instruction},</if> |
| | | <if test="prologue != null">prologue=#{prologue},</if> |
| | | <if test="longTemp != null ">long_temp = #{longTemp},</if> |
| | | </trim> |
| | | where svyid = #{svyid} |
| | | </update> |