From 1085fd42401762f9d5b65f137d9ab758e413e3b9 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期三, 30 十一月 2022 16:04:53 +0800
Subject: [PATCH] fix: 图片管理视频管理 查询bug
---
ycl-platform/src/main/resources/mapper/resources/ImageResourcesMapper.xml | 3 +++
ycl-platform/src/main/resources/mapper/resources/VideoResourcesMapper.xml | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ycl-platform/src/main/resources/mapper/resources/ImageResourcesMapper.xml b/ycl-platform/src/main/resources/mapper/resources/ImageResourcesMapper.xml
index a68d10e..e4f5ee4 100644
--- a/ycl-platform/src/main/resources/mapper/resources/ImageResourcesMapper.xml
+++ b/ycl-platform/src/main/resources/mapper/resources/ImageResourcesMapper.xml
@@ -34,6 +34,9 @@
<if test="type == '03' and type != null and type !='' ">
t1.type='03'
</if>
+ <if test="type == null and type =='' ">
+ t1.type='02' or t1.type='01'
+ </if>
<if test="startTime != '' and endTime != '' and startTime != null and endTime != null">
and t1.create_time between #{startTime} and #{endTime}
</if>
diff --git a/ycl-platform/src/main/resources/mapper/resources/VideoResourcesMapper.xml b/ycl-platform/src/main/resources/mapper/resources/VideoResourcesMapper.xml
index 05bc44e..29414d0 100644
--- a/ycl-platform/src/main/resources/mapper/resources/VideoResourcesMapper.xml
+++ b/ycl-platform/src/main/resources/mapper/resources/VideoResourcesMapper.xml
@@ -34,6 +34,9 @@
<if test="type == '03' and type != null and type !='' ">
t1.type='03'
</if>
+ <if test="type == null and type =='' ">
+ t1.type='02' or t1.type='01'
+ </if>
<if test="startTime != '' and endTime != '' and startTime != null and endTime != null">
and t1.create_time between #{startTime} and #{endTime}
</if>
--
Gitblit v1.8.0