| | |
| | | <result property="pid" column="pid"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | <result property="templateType" column="template_type"/> |
| | | <result property="isMydException" column="is_myd_exception"/> |
| | | <result property="dimension" column="dimension"/> |
| | | <result property="dutyDeptPersonName" column="duty_dept_person_name"/> |
| | | <result property="dutyDeptPersonCode" column="duty_dept_person_code"/> |
| | | <result property="reportDeptPersonCode" column="report_dept_person_name"/> |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceSubtaskDetailTtraceVo"> |
| | | select id, |
| | | duty_dept_person_name, |
| | | duty_dept_person_code, |
| | | report_dept_person_name, |
| | | report_dept_person_code, |
| | | detail_id, |
| | | is_myd_exception, |
| | | dimension, |
| | | template_type, |
| | | sub_id, |
| | | taskid, |
| | |
| | | from service_subtask_detail_trace |
| | | </sql> |
| | | |
| | | <select id="selectServiceSubtaskDetailTtraceList" parameterType="com.smartor.domain.ServiceSubtaskDetailTrace" |
| | | <select id="selectServiceSubtaskDetailTtraceList" parameterType="com.smartor.domain.VO.ServiceSubtaskDetailTraceVO" |
| | | resultMap="ServiceSubtaskDetailTtraceResult"> |
| | | <include refid="selectServiceSubtaskDetailTtraceVo"/> |
| | | where del_flag=0 |
| | |
| | | <if test="valueType != null and valueType != ''"> |
| | | and value_type = #{valueType} |
| | | </if> |
| | | <if test="scriptid != null "> |
| | | <if test="scriptid != null and scriptids==null "> |
| | | and scriptid = #{scriptid} |
| | | </if> |
| | | <if test="scriptids != null "> |
| | | and scriptid in |
| | | <foreach item="scriptid" collection="scriptids" open="(" separator="," close=")"> |
| | | #{scriptid} |
| | | </foreach> |
| | | </if> |
| | | <if test="answerps != null and answerps != ''"> |
| | | and answerps = #{answerps} |
| | |
| | | <if test="type != null and type != ''"> |
| | | and type = #{type} |
| | | </if> |
| | | <if test="dimension != null and dimension != ''"> |
| | | and dimension = #{dimension} |
| | | </if> |
| | | <if test="isMydException != null "> |
| | | and is_myd_exception = #{isMydException} |
| | | </if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''"> |
| | | and duty_dept_person_name like concat('%', #{dutyDeptPersonName}, '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''"> |
| | | and duty_dept_person_code like concat('%', #{dutyDeptPersonCode}, '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''"> |
| | | and report_dept_person_name like concat('%', #{reportDeptPersonName}, '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''"> |
| | | and report_dept_person_code like concat('%', #{reportDeptPersonCode}, '%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="tracedeallist" parameterType="com.smartor.domain.VO.DetailTraceDealVO" |
| | |
| | | <if test="type != null and type != ''"> |
| | | and type = #{type} |
| | | </if> |
| | | <if test="templateType != null"> |
| | | and template_type = #{templateType} |
| | | </if> |
| | | <if test="isMydException != null "> |
| | | and is_myd_exception = #{isMydException} |
| | | </if> |
| | | <if test="dimension != null and dimension != ''"> |
| | | and dimension = #{dimension} |
| | | </if> |
| | | <if test="dutyDeptPersonName != null and dutyDeptPersonName != ''"> |
| | | and duty_dept_person_name like concat('%', #{dutyDeptPersonName}, '%') |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''"> |
| | | and duty_dept_person_code like concat('%', #{dutyDeptPersonCode}, '%') |
| | | </if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''"> |
| | | and report_dept_person_name like concat('%', #{reportDeptPersonName}, '%') |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''"> |
| | | and report_dept_person_code like concat('%', #{reportDeptPersonCode}, '%') |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <select id="selectServiceSubtaskDetailTtraceById" parameterType="Long" |
| | |
| | | </if> |
| | | <if test="templateType != null">template_type, |
| | | </if> |
| | | <if test="dimension != null">dimension, |
| | | </if> |
| | | <if test="isMydException != null">is_myd_exception, |
| | | </if> |
| | | <if test="dutyDeptPersonName != null">duty_dept_person_name, |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null">duty_dept_person_code, |
| | | </if> |
| | | <if test="reportDeptPersonName != null">report_dept_person_name, |
| | | </if> |
| | | <if test="reportDeptPersonCode != null">report_dept_person_code, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="detailId != null">#{detailId}, |
| | |
| | | <if test="type != null">#{type}, |
| | | </if> |
| | | <if test="templateType != null">#{templateType}, |
| | | </if> |
| | | <if test="dimension != null">#{dimension}, |
| | | </if> |
| | | <if test="isMydException != null">#{isMydException}, |
| | | </if> |
| | | <if test="dutyDeptPersonName != null">#{dutyDeptPersonName}, |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null">#{dutyDeptPersonCode}, |
| | | </if> |
| | | <if test="reportDeptPersonName != null">#{reportDeptPersonName}, |
| | | </if> |
| | | <if test="reportDeptPersonCode != null">#{reportDeptPersonCode}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="templateType != null">template_type = |
| | | #{templateType}, |
| | | </if> |
| | | <if test="dimension != null">dimension = |
| | | #{dimension}, |
| | | </if> |
| | | <if test="isMydException != null">is_myd_exception = |
| | | #{isMydException}, |
| | | </if> |
| | | <if test="dutyDeptPersonName != null">duty_dept_person_name = |
| | | #{dutyDeptPersonName}, |
| | | </if> |
| | | <if test="dutyDeptPersonCode != null">duty_dept_person_code = |
| | | #{dutyDeptPersonCode}, |
| | | </if> |
| | | <if test="reportDeptPersonName != null">report_dept_person_name = |
| | | #{reportDeptPersonName}, |
| | | </if> |
| | | <if test="reportDeptPersonCode != null">report_dept_person_code = |
| | | #{reportDeptPersonCode}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |