From 23e3602b4f3ebde8665c3ab3a56ef81b8d671e0d Mon Sep 17 00:00:00 2001
From: zepengdev <lzpsmith@outlook.com>
Date: Wed, 17 Sep 2025 19:17:21 +0800
Subject: [PATCH] feat: 增加商品库存设置功能

---
 oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml b/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml
index 86f4724..21bb698 100644
--- a/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml
+++ b/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml
@@ -6,6 +6,7 @@
         <result column="username" property="username"/>
         <result column="user_type" property="userType"/>
         <result column="operation" property="operation"/>
+        <result column="operation_type" property="operationType"/>
         <result column="operation_describe" property="operationDescribe"/>
         <result column="remark" property="remark"/>
         <result column="snapshot_data" property="snapshotData"/>
@@ -14,7 +15,7 @@
     </resultMap>
 
     <sql id="Base_Column_List">
-        log_id, username, user_type, operation, operation_describe, remark, snapshot_data, operation_time, order_num
+        log_id, username, user_type, operation, operation_type, operation_describe, remark, snapshot_data, operation_time, order_num
     </sql>
 
     <select id="findAll" resultMap="BaseResultMap">
@@ -41,6 +42,10 @@
         select
         <include refid="Base_Column_List"/>
         from sh_order_operation_log
-        where order_num = #{orderNum} order by log_id
+        where order_num = #{orderNum}
+        <if test="type!= null and type != ''">
+           and operation_type = #{type}
+        </if>
+        order by log_id
     </select>
 </mapper>

--
Gitblit v1.9.3