xiaoyong931011
2022-09-23 e0c1ebaa6a9bf2acd2bd32286fe488761e886ee2
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?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_image actImage,
        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>
 
 
    <select id="selectApiMallActListInPage" resultType="cc.mrbird.febs.mall.vo.ApiMallActListVo">
        select
        a.*
        from mall_act_set a
        <where>
            <if test="record != null">
                <if test="record.query != null and record.query != ''">
                    and a.act_name like CONCAT('%', CONCAT(#{record.query}, '%'))
                </if>
            </if>
        </where>
        order by a.act_start_time desc
    </select>
 
</mapper>