| | |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="deptNames" column="dept_names"/> |
| | | <result property="labelInfo" column="label_info"/> |
| | | <result property="campus" column="campus"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | |
| | | <result property="reply" column="reply"/> |
| | | <result property="scriptScore" column="script_score"/> |
| | | <result property="scoreType" column="score_type"/> |
| | | <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, |
| | | value_type, |
| | | reply, |
| | | score_type, |
| | |
| | | isupload, |
| | | upload_time, |
| | | dept_names, |
| | | label_info, |
| | | campus, |
| | | suitway, |
| | | script_score, |
| | |
| | | resultMap="SvyLibTemplateResult"> |
| | | SELECT |
| | | a.svyid, |
| | | a.long_temp, |
| | | a.conclusion, |
| | | a.instruction, |
| | | a.prologue, |
| | | a.categoryid, |
| | | a.svycode, |
| | | a.svyname, |
| | |
| | | a.upload_time, |
| | | a.dept_names, |
| | | a.value_type, |
| | | a.label_info, |
| | | a.reply, |
| | | a.campus, |
| | | a.suitway, |
| | |
| | | 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 a.icdname like concat('%', #{description}, '%') |
| | | <if test="description != null and description != ''">and b.icd10name like concat('%', #{description}, '%') |
| | | </if> |
| | | </where> |
| | | order by a.create_time desc |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTemplateBySvyid" parameterType="Long" resultMap="SvyLibTemplateResult"> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="deptNames != null">dept_names,</if> |
| | | <if test="labelInfo != null">label_info,</if> |
| | | <if test="campus != null">campus,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | |
| | | <if test="reply != null">reply,</if> |
| | | <if test="scriptScore != null">script_score,</if> |
| | | <if test="scoreType != null">score_type,</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="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="deptNames != null">#{deptNames},</if> |
| | | <if test="labelInfo != null">#{labelInfo},</if> |
| | | <if test="campus != null">#{campus},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="scriptScore != null">#{scriptScore},</if> |
| | | <if test="scoreType != null">#{scoreType},</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="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="deptNames != null">dept_names=#{deptNames},</if> |
| | | <if test="labelInfo != null">label_info=#{labelInfo},</if> |
| | | <if test="campus != null">campus=#{campus},</if> |
| | | <if test="suitway != null">suitway=#{suitway},</if> |
| | | <if test="otherdata != null">otherdata=#{otherdata},</if> |
| | |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="scriptScore != null">script_score = #{scriptScore},</if> |
| | | <if test="scoreType != null">score_type = #{scoreType},</if> |
| | | <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> |