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