Administrator
yesterday 2fb72d56082e2ee19aa187707751dd0dacd34f4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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="cc.mrbird.febs.ai.mapper.AiProductCategoryMapper">
 
    <select id="selectPageListByQuery" resultType="cc.mrbird.febs.ai.res.productCategory.ApiProductCategoryVo">
        select
            a.id as id,
            a.name as name,
            a.back_img as backImg,
            a.icon_img as iconImg
        from ai_product_category a
        where
            a.state = 1
            <if test="record.parentId != null and record.parentId != ''">
                and a.parent_id = #{record.parentId}
            </if>
        order by a.sort asc
    </select>
</mapper>