Helius
2022-05-19 7e6bbd05a75b07cb0717812d0b51aad128361012
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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.MallActSetMapper">
 
    <select id="selectMallActsInPage" resultType="cc.mrbird.febs.mall.vo.AdminMallActSetVo">
        select
        a.id,
        a.act_code actCode,
        a.act_name actName,
        a.act_start_time actStartTime,
        a.act_end_time actEndTime,
        a.act_score_cnt actScoreCnt,
        a.act_status actStatus,
        a.act_remark actRemark
        from mall_act_set a
        <where>
            <if test="record != null">
                <if test="record.actName != null and record.actName != ''">
                    and a.act_name like CONCAT('%', CONCAT(#{record.actName}, '%'))
                </if>
            </if>
        </where>
        order by a.created_time desc
    </select>
 
</mapper>