From 05e6a50c5b89931948077f5110e29e7ce9bc04b4 Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期五, 18 四月 2025 09:48:57 +0800
Subject: [PATCH] 日志表增加 biz_type 字段,记录接口类型
---
aps-modules/aps-job/src/main/java/com/aps/job/domain/ApsWorkOrderJobLog.java | 11 +++++++++++
aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobLogMapper.xml | 8 +++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/aps-modules/aps-job/src/main/java/com/aps/job/domain/ApsWorkOrderJobLog.java b/aps-modules/aps-job/src/main/java/com/aps/job/domain/ApsWorkOrderJobLog.java
index ceb892b..cc9404f 100644
--- a/aps-modules/aps-job/src/main/java/com/aps/job/domain/ApsWorkOrderJobLog.java
+++ b/aps-modules/aps-job/src/main/java/com/aps/job/domain/ApsWorkOrderJobLog.java
@@ -42,6 +42,10 @@
@Excel(name = "璇锋眰鏁版嵁")
private String requestData;
+
+
+ private String bizType;
+
public void setId(Long id)
{
this.id = id;
@@ -111,7 +115,13 @@
{
return requestData;
}
+ public String getBizType() {
+ return bizType;
+ }
+ public void setBizType(String bizType) {
+ this.bizType = bizType;
+ }
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -122,6 +132,7 @@
.append("result", getResult())
.append("orderId", getOrderId())
.append("requestData", getRequestData())
+ .append("bizType", getBizType())
.toString();
}
}
diff --git a/aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobLogMapper.xml b/aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobLogMapper.xml
index 867b048..c7ba7e4 100644
--- a/aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobLogMapper.xml
+++ b/aps-modules/aps-job/src/main/resources/mapper/job/ApsWorkOrderJobLogMapper.xml
@@ -17,7 +17,9 @@
</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">
@@ -29,6 +31,7 @@
<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="bizType != null and bizType != ''"> and biz_type = #{bizType}</if>
</where>
</select>
@@ -48,6 +51,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>
@@ -58,6 +62,7 @@
<if test="requestData != null">#{requestData},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
+ <if test="bizType != null">#{bizType},,</if>
</trim>
</insert>
@@ -72,6 +77,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>
--
Gitblit v1.9.3