Administrator
10 days ago f16f74cacb9ef0ae4be89ed15353b6a449479d8c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.mall.mapper.PlatformBannerMapper">
 
    <select id="findPlatformBannerInPage" resultType="cc.mrbird.febs.mall.entity.PlatformBanner">
        SELECT
            *
        FROM
            platform_banner
        <where>
            <if test="record != null" >
                <if test="record.type!=null and record.type!=0">
                    and type = #{record.type}
                </if>
            </if>
        </where>
        order by type asc,sort asc
    </select>
 
</mapper>