From 3a458e0c4e7e5a5fa20f31ade2278a78abb4d3e3 Mon Sep 17 00:00:00 2001 From: flower Date: Fri, 11 Jan 2019 22:27:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=BE=E7=A8=8B=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E9=80=92=E5=BD=92=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/train/course/TrainCourseMapper.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ruoyi-train/src/main/resources/mapper/train/course/TrainCourseMapper.xml b/ruoyi-train/src/main/resources/mapper/train/course/TrainCourseMapper.xml index 04d2b0040..49f9b6f3c 100644 --- a/ruoyi-train/src/main/resources/mapper/train/course/TrainCourseMapper.xml +++ b/ruoyi-train/src/main/resources/mapper/train/course/TrainCourseMapper.xml @@ -31,7 +31,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and id = #{id} and dept_id = #{deptId} - and train_course_category_id = #{trainCourseCategoryId} + + and (train_course_category_id in + (select id from train_course_category where FIND_IN_SET(#{trainCourseCategoryId},parent_ids)) + or train_course_category_id = #{trainCourseCategoryId} ) + and name = #{name} and cover = #{cover} and description = #{description}