zhanghl
2025-04-28 edc00f6fbafa9bb74f736e47cafd000fb33ef4f1
aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobLogMapper.xml
@@ -14,22 +14,28 @@
        <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">
        select id, page_num, page_count, response_data, result, order_id, request_data,create_time,  update_time  from aps_work_order_job_log
        select id, page_num, page_count, response_data, result, order_id, request_data,create_time,
               update_time  ,biz_type
        from aps_work_order_job_log
    </sql>
    <select id="selectApsWorkOrderJobLogList" parameterType="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">
@@ -48,6 +54,7 @@
            <if test="requestData != null">request_data,</if>
            <if test="createTime != null">create_time,</if>
            <if test="updateTime != null">update_time,</if>
            <if test="bizType != null">biz_type,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="pageNum != null">#{pageNum},</if>
@@ -56,8 +63,9 @@
            <if test="result != null">#{result},</if>
            <if test="orderId != null">#{orderId},</if>
            <if test="requestData != null">#{requestData},</if>
            <if test="createBy != null">#{createBy},</if>
            <if test="createTime != null">#{createTime},</if>
            <if test="updateTime != null">#{updateTime},</if>
            <if test="bizType != null">#{bizType},</if>
         </trim>
    </insert>
@@ -72,6 +80,7 @@
            <if test="requestData != null">request_data = #{requestData},</if>
            <if test="createTime != null">create_time = #{createTime},</if>
            <if test="updateTime != null">update_time = #{updateTime},</if>
            <if test="bizType != null">biz_type = #{bizType},</if>
        </trim>
        where id = #{id}
    </update>
@@ -86,4 +95,5 @@
            #{id}
        </foreach>
    </delete>
</mapper>