fix(out): 修复出库单查询字段映射和日志表格显示问题
- 修复出库单查询中产品号字段从 phase 改为 power - 调整出库单表格中代号和产品号列的显示顺序 - 修复接口日志表格中请求ID列标题显示问题 - 移除接口日志表格中请求URL和请求头列的显示 - 优化数据库查询中产品号和相位字段的模糊匹配搜索 - 优化数据库查询中错误详情字段的模糊匹配搜索
This commit is contained in:
@@ -54,8 +54,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 = #{spare5}</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 = #{spare6}</if>
|
||||
<if test="voltage != null and voltage != ''"> and voltage = #{voltage}</if>
|
||||
<if test="power != null and power != ''"> and power = #{power}</if>
|
||||
<if test="phase != null and phase != ''"> and phase = #{phase}</if>
|
||||
<if test="power != null and power != ''"> and power like concat('%',#{power}, '%')</if>
|
||||
<if test="phase != null and phase != ''"> and phase like concat('%',#{phase}, '%')</if>
|
||||
<if test="distribution != null and distribution != ''"> and distribution like concat('%', #{distribution}, '%')</if>
|
||||
<if test="orderId != null and orderId != ''"> and order_id like concat('%', #{orderId}, '%')</if>
|
||||
<if test="spare8 != null and spare8 != ''"> and spare8 = #{spare8}</if>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.log.mapper.RequestLogMapper">
|
||||
|
||||
|
||||
<resultMap type="RequestLog" id="RequestLogResult">
|
||||
<result property="requestId" column="request_id" />
|
||||
<result property="requestTime" column="request_time" />
|
||||
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectRequestLogList" parameterType="RequestLog" resultMap="RequestLogResult">
|
||||
<include refid="selectRequestLogVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="requestTime != null and requestTime != ''"> and request_time = #{requestTime}</if>
|
||||
<if test="sourceSystem != null and sourceSystem != ''"> and source_system = #{sourceSystem}</if>
|
||||
<if test="targetSystem != null and targetSystem != ''"> and target_system = #{targetSystem}</if>
|
||||
@@ -36,16 +36,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="requestUrl != null and requestUrl != ''"> and request_url = #{requestUrl}</if>
|
||||
<if test="requestMethod != null and requestMethod != ''"> and request_method = #{requestMethod}</if>
|
||||
<if test="requestHeaders != null and requestHeaders != ''"> and request_headers = #{requestHeaders}</if>
|
||||
<if test="requestBody != null and requestBody != ''"> and request_body = #{requestBody}</if>
|
||||
<if test="requestBody != null and requestBody != ''"> and request_body like concat('%',#{requestBody},'%') </if>
|
||||
<if test="responseTime != null and responseTime != ''"> and response_time = #{responseTime}</if>
|
||||
<if test="responseBody != null and responseBody != ''"> and response_body = #{responseBody}</if>
|
||||
<if test="responseStatus != null and responseStatus != ''"> and response_status = #{responseStatus}</if>
|
||||
<if test="errorDetails != null and errorDetails != ''"> and error_details = #{errorDetails}</if>
|
||||
<if test="errorDetails != null and errorDetails != ''"> and error_details like concat('%',#{errorDetails},'%') </if>
|
||||
<if test="duration != null and duration != ''"> and duration = #{duration}</if>
|
||||
<if test="isSuccessful != null and isSuccessful != ''"> and Is_successful = #{isSuccessful}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectRequestLogByRequestId" parameterType="Long" resultMap="RequestLogResult">
|
||||
<include refid="selectRequestLogVo"/>
|
||||
where request_id = #{requestId}
|
||||
@@ -113,9 +113,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteRequestLogByRequestIds" parameterType="String">
|
||||
delete from request_log where request_id in
|
||||
delete from request_log where request_id in
|
||||
<foreach item="requestId" collection="array" open="(" separator="," close=")">
|
||||
#{requestId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user