From 52461f1688e83970d4aa3aa6b835bdf7719f5769 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期二, 31 十二月 2024 14:17:02 +0800
Subject: [PATCH] 全部代码和数据库

---
 ruoyi-service/ruoyi-study/src/main/resources/mapper/sutdy/TSubjectMapper.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-study/src/main/resources/mapper/sutdy/TSubjectMapper.xml b/ruoyi-service/ruoyi-study/src/main/resources/mapper/sutdy/TSubjectMapper.xml
index 42cd39e..2dbd834 100644
--- a/ruoyi-service/ruoyi-study/src/main/resources/mapper/sutdy/TSubjectMapper.xml
+++ b/ruoyi-service/ruoyi-study/src/main/resources/mapper/sutdy/TSubjectMapper.xml
@@ -34,6 +34,13 @@
         <if test="req.type != null and req.type != ''">
             and `type` like concat('%',#{req.type},'%')
         </if>
+        <if test="null != req.ids and req.ids.size()>0" >
+            and firstCategory in
+            <foreach collection="req.ids" close=")" open="(" item="item" separator=",">
+                #{item}
+            </foreach>
+        </if>
+        and disabled=0
         order by createTime desc
     </select>
 

--
Gitblit v1.7.1