| | |
| | | <select id="selectSvyTaskTemplateList" parameterType="com.smartor.domain.SvyTaskTemplate" |
| | | resultMap="SvyTaskTemplateResult"> |
| | | <include refid="selectSvyTaskTemplateVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="svycode != null and svycode != ''">and svycode = #{svycode}</if> |
| | | <if test="svyname != null and svyname != ''">and svyname like concat('%', #{svyname}, '%')</if> |
| | | <if test="description != null and description != ''">and description = #{description}</if> |
| | | <if test="introduce != null and introduce != ''">and introduce = #{introduce}</if> |
| | | <if test="submitprompt != null and submitprompt != ''">and submitprompt = #{submitprompt}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="version != null ">and version = #{version}</if> |
| | | <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode = |
| | | #{centerlibrarycode} |
| | | </if> |
| | | <if test="centerlibraryid != null ">and centerlibraryid = #{centerlibraryid}</if> |
| | | <if test="islocal != null ">and islocal = #{islocal}</if> |
| | | <if test="isenable != null and isenable != ''">and isenable = #{isenable}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="taskScriptId != null and taskScriptId != ''">and task_script_id = #{taskScriptId}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="deptNames != null and deptNames != ''">and dept_names = #{deptNames}</if> |
| | | <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if> |
| | | <if test="campus != null and campus != ''">and campus = #{campus}</if> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> |
| | | <if test="reply != null and reply != ''">and reply = #{reply}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="deptCode != null ">and dept_code = #{deptCode}</if> |
| | | <if test="longTemp != null ">and long_temp = #{longTemp}</if> |
| | | <if test="sendDay != null ">and send_day = #{sendDay}</if> |
| | | </where> |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="svycode != null and svycode != ''">and svycode = #{svycode}</if> |
| | | <if test="svyname != null and svyname != ''">and svyname like concat('%', #{svyname}, '%')</if> |
| | | <if test="description != null and description != ''">and description = #{description}</if> |
| | | <if test="introduce != null and introduce != ''">and introduce = #{introduce}</if> |
| | | <if test="submitprompt != null and submitprompt != ''">and submitprompt = #{submitprompt}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="version != null ">and version = #{version}</if> |
| | | <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode = |
| | | #{centerlibrarycode} |
| | | </if> |
| | | <if test="centerlibraryid != null ">and centerlibraryid = #{centerlibraryid}</if> |
| | | <if test="islocal != null ">and islocal = #{islocal}</if> |
| | | <if test="isenable != null and isenable != ''">and isenable = #{isenable}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="taskScriptId != null and taskScriptId != ''">and task_script_id = #{taskScriptId}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="deptNames != null and deptNames != ''">and dept_names = #{deptNames}</if> |
| | | <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if> |
| | | <if test="campus != null and campus != ''">and campus = #{campus}</if> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> |
| | | <if test="reply != null and reply != ''">and reply = #{reply}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="deptCode != null ">and dept_code = #{deptCode}</if> |
| | | <if test="longTemp != null ">and long_temp = #{longTemp}</if> |
| | | <if test="sendDay != null ">and send_day = #{sendDay}</if> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskTemplateBySvyid" parameterType="Long" resultMap="SvyTaskTemplateResult"> |
| | | <include refid="selectSvyTaskTemplateVo"/> |
| | | where del_flag=0 and id = #{id} |
| | | where del_flag=0 and id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTaskTemplate" parameterType="com.smartor.domain.SvyTaskTemplate" useGeneratedKeys="true" |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskTemplateBySvyid" parameterType="Long"> |
| | | delete |
| | | from svy_task_template |
| | | update svy_task_template |
| | | set del_flag=1 |
| | | where id = #{id} |
| | | </delete> |
| | | |