This commit is contained in:
yandanyang
2021-10-11 20:06:42 +08:00
parent da046ba20e
commit d0086cf68d
25 changed files with 263 additions and 1312 deletions

View File

@@ -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>