From acf352921487e857810a943b008121e33404e9ae Mon Sep 17 00:00:00 2001 From: kongdeqiang <kongdeqiang960204@163.com> Date: 星期二, 15 四月 2025 16:56:50 +0800 Subject: [PATCH] fix:白名单新增bug --- src/main/resources/mapper/OutParkMapper.xml | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/OutParkMapper.xml b/src/main/resources/mapper/OutParkMapper.xml index 11e82cd..f4292b9 100644 --- a/src/main/resources/mapper/OutParkMapper.xml +++ b/src/main/resources/mapper/OutParkMapper.xml @@ -39,6 +39,9 @@ <if test="parkId != null and parkId != ''"> and park_id = #{parkId} </if> + <if test="status != null and status != ''"> + and status = #{status} + </if> <if test="date != null and date != ''"> and DATE_FORMAT(create_time,'%Y-%m-%d') >= DATE_FORMAT(#{date},'%Y-%m-%d') and DATE_FORMAT(create_time,'%Y-%m-%d') <= DATE_FORMAT(#{date},'%Y-%m-%d') @@ -60,6 +63,9 @@ <if test="parkId != null and parkId != ''"> and park_id = #{parkId} </if> + <if test="status != null and status != ''"> + and status = #{status} + </if> <if test="date != null and date != ''"> and DATE_FORMAT(create_time,'%Y-%m-%d') >= DATE_FORMAT(#{date},'%Y-%m-%d') and DATE_FORMAT(create_time,'%Y-%m-%d') <= DATE_FORMAT(#{date},'%Y-%m-%d') -- Gitblit v1.9.1