Merge remote-tracking branch 'origin/master'
commit
3e1b1b3ab5
@ -0,0 +1,37 @@
|
|||||||
|
<?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="com.wayn.admin.api.mapper.shop.BannerMapper">
|
||||||
|
|
||||||
|
<resultMap type="com.wayn.admin.api.domain.shop.ShopBanner" id="ShopBannerResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="page" column="page" />
|
||||||
|
<result property="jumpUrl" column="jump_url" />
|
||||||
|
<result property="imgUrl" column="img_url" />
|
||||||
|
<result property="sort" column="sort" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectBannerVo">
|
||||||
|
select b.id, b.title, b.page, b.jump_url, b.img_url, b.sort,
|
||||||
|
b.del_flag, b.create_time, b.update_by, b.update_time, b.remark
|
||||||
|
from shop_banner b
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectBannerList" parameterType="com.wayn.admin.api.domain.shop.ShopBanner" resultMap="ShopBannerResult">
|
||||||
|
<include refid="selectBannerVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="title != null and title != ''">
|
||||||
|
AND title like concat('%', #{title}, '%')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue