无关风月
2025-04-11 75942ecc2e438012c5ea876715966ace593565a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.study.mapper.TCategoryMapper">
 
 
    <select id="listAll" resultType="com.ruoyi.study.vo.CategoryVO">
        select *
        from t_category
        where 1=1
 
        <if test="req.state !=null">
            AND state = #{req.state}
        </if>
        <if test="null != req.firstIds and req.firstIds.size()>0" >
            and id in
            <foreach collection="req.firstIds" close=")" open="(" item="item" separator=",">
                #{item}
            </foreach>
        </if>
        and type = 1
        and disabled = 0
        order by createTime desc
    </select>
</mapper>