mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-12-28 02:16:02 +08:00
cache
This commit is contained in:
@@ -9,9 +9,19 @@
|
||||
WHERE
|
||||
parent_id IN
|
||||
<foreach collection="parentIdList" open="(" separator="," close=")" item="id">#{id}</foreach>
|
||||
<if test="categoryType != null">
|
||||
AND category_type = #{categoryType}
|
||||
</if>
|
||||
AND deleted_flag = #{deletedFlag}
|
||||
ORDER BY sort ASC
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 根据父级id 查询子类 -->
|
||||
<select id="queryByParentIdAndType"
|
||||
resultType="net.lab1024.smartadmin.service.module.business.category.domain.CategoryEntity">
|
||||
SELECT * FROM t_category
|
||||
WHERE
|
||||
parent_id IN
|
||||
<foreach collection="parentIdList" open="(" separator="," close=")" item="id">#{id}</foreach>
|
||||
AND category_type = #{categoryType}
|
||||
AND deleted_flag = #{deletedFlag}
|
||||
ORDER BY sort ASC
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user