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