From 3caa0b05a620aa7714de0d63c804e43aa6486c9b Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Fri, 11 Jul 2025 18:07:44 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' into xin --- oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml | 10 ++++++++-- 1 files changed, 8 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 a72896c..c975d0e 100644 --- a/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml +++ b/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml @@ -22,8 +22,8 @@ <include refid="Base_Column_List"/> from sh_order_operation_log <where> - <if test="criteria.userId != null"> - and user_id = #{criteria.userId} + <if test="criteria.username != null"> + and username like concat('%',#{criteria.username},'%') </if> <if test="criteria.userType != null"> and user_type = #{criteria.userType} @@ -37,4 +37,10 @@ </where> order by log_id desc </select> + <select id="getByOrderNum" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List"/> + from sh_order_operation_log + where order_num = #{orderNum} order by log_id desc + </select> </mapper> -- Gitblit v1.9.3