| | |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="scriptScore" column="script_score"/> |
| | | <result property="scoreType" column="score_type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateVo"> |
| | |
| | | categoryid, |
| | | value_type, |
| | | reply, |
| | | score_type, |
| | | svycode, |
| | | svyname, |
| | | description, |
| | |
| | | label_info, |
| | | campus, |
| | | suitway, |
| | | script_score, |
| | | otherdata |
| | | from svy_lib_template |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTemplateList" parameterType="com.smartor.domain.SvyLibTemplateReq" resultMap="SvyLibTemplateResult"> |
| | | <select id="selectSvyLibTemplateList" parameterType="com.smartor.domain.SvyLibTemplateReq" |
| | | resultMap="SvyLibTemplateResult"> |
| | | select a.svyid, a.categoryid, a.svycode, a.svyname, a.description, a.introduce,a.submitprompt, a.templateid, |
| | | a.version,a.centerlibrarycode, a.centerlibraryid, a.islocal, a.isenable, a.orgid, a.del_flag, a.create_by, |
| | | a.create_time, a.update_by, a.update_time, a.isupload, |
| | | a.upload_time,a.dept_names,a.value_type,a.label_info,a.reply, |
| | | a.campus,a.suitway,a.otherdata |
| | | a.campus,a.suitway,a.script_score,a.score_type,a.otherdata |
| | | ,c.icdname from svy_lib_template |
| | | a,icd10_association b,icd10 c |
| | | <where> |
| | |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="reply != null">reply,</if> |
| | | value_type, |
| | | reply, |
| | | <if test="scriptScore != null">script_score,</if> |
| | | <if test="scoreType != null">score_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="scriptScore != null">#{scriptScore},</if> |
| | | <if test="scoreType != null">#{scoreType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="otherdata != null">otherdata=#{otherdata},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="scriptScore != null">script_score = #{scriptScore},</if> |
| | | <if test="scoreType != null">score_type = #{scoreType},</if> |
| | | </trim> |
| | | where svyid = #{svyid} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTemplateBySvyid" parameterType="Long"> |
| | | delete |
| | | from svy_lib_template |
| | | update svy_lib_template |
| | | set del_flag=1 |
| | | where svyid = #{svyid} |
| | | </delete> |
| | | |