| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.aps.job.mapper.ApsWorkOrderJobLogMapper"> |
| | | |
| | | <resultMap type="ApsWorkOrderJobLog" id="ApsWorkOrderJobLogResult"> |
| | | <resultMap type="com.aps.job.domain.ApsWorkOrderJobLog" id="ApsWorkOrderJobLogResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="pageNum" column="page_num" /> |
| | | <result property="pageCount" column="page_count" /> |
| | |
| | | <result property="requestData" column="request_data" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="bizType" column="biz_type" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsWorkOrderJobLogVo"> |
| | |
| | | from aps_work_order_job_log |
| | | </sql> |
| | | |
| | | <select id="selectApsWorkOrderJobLogList" parameterType="ApsWorkOrderJobLog" resultMap="ApsWorkOrderJobLogResult"> |
| | | <select id="selectApsWorkOrderJobLogList" parameterType="com.aps.job.domain.ApsWorkOrderJobLog" resultMap="ApsWorkOrderJobLogResult"> |
| | | <include refid="selectApsWorkOrderJobLogVo"/> |
| | | <where> |
| | | <where> |
| | | <if test="pageNum != null "> and page_num = #{pageNum}</if> |
| | | <if test="pageCount != null "> and page_count = #{pageCount}</if> |
| | | <if test="responseData != null and responseData != ''"> and response_data = #{responseData}</if> |
| | | <if test="result != null and result != ''"> and result = #{result}</if> |
| | | <if test="orderId != null and orderId != ''"> and order_id = #{orderId}</if> |
| | | <if test="requestData != null and requestData != ''"> and request_data = #{requestData}</if> |
| | | <if test="responseData != null and responseData != ''"> and response_data like '%' || #{responseData}|| '%'</if> |
| | | <if test="result != null and result != ''"> and result like '%' || #{result} ||'%' </if> |
| | | <if test="requestData != null and requestData != ''"> and request_data like '%' || #{requestData} || '%'</if> |
| | | <if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if> |
| | | <if test="bizType != null and bizType != ''"> and biz_type = #{bizType}</if> |
| | | and ( biz_type is not null and biz_type !='' ) |
| | | </where> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <select id="selectApsWorkOrderJobLogById" parameterType="Long" resultMap="ApsWorkOrderJobLogResult"> |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsWorkOrderJobLog" parameterType="ApsWorkOrderJobLog" useGeneratedKeys="true" keyProperty="id"> |
| | | <insert id="insertApsWorkOrderJobLog" parameterType="com.aps.job.domain.ApsWorkOrderJobLog" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into aps_work_order_job_log |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="pageNum != null">page_num,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsWorkOrderJobLog" parameterType="ApsWorkOrderJobLog"> |
| | | <update id="updateApsWorkOrderJobLog" parameterType="com.aps.job.domain.ApsWorkOrderJobLog"> |
| | | update aps_work_order_job_log |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="pageNum != null">page_num = #{pageNum},</if> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |