|
@@ -1,32 +1,32 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?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">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.caimei.www.mapper.SinglePageDao">
|
|
<mapper namespace="com.caimei.www.mapper.SinglePageDao">
|
|
- <select id="getFreePageById" resultType="com.caimei.www.pojo.content.PageContent">
|
|
|
|
|
|
+ <select id="getFreePageById" resultType="com.caimei.www.pojo.page.PageContent">
|
|
select a.id, a.type, a.title, a.keywords, a.description, f.content
|
|
select a.id, a.type, a.title, a.keywords, a.description, f.content
|
|
from cm_page a
|
|
from cm_page a
|
|
left join cm_page_freedom f on a.id=f.pageId
|
|
left join cm_page_freedom f on a.id=f.pageId
|
|
where a.type=4 and a.enabledStatus=1 and f.type=1
|
|
where a.type=4 and a.enabledStatus=1 and f.type=1
|
|
and a.id=#{id}
|
|
and a.id=#{id}
|
|
</select>
|
|
</select>
|
|
- <select id="getTopicPageById" resultType="com.caimei.www.pojo.content.PageContent">
|
|
|
|
|
|
+ <select id="getTopicPageById" resultType="com.caimei.www.pojo.page.PageContent">
|
|
select a.id, a.type, a.title, a.keywords, a.description, a.headImage as image, a.headText as content
|
|
select a.id, a.type, a.title, a.keywords, a.description, a.headImage as image, a.headText as content
|
|
from cm_page a
|
|
from cm_page a
|
|
where a.type=1 and a.enabledStatus=1
|
|
where a.type=1 and a.enabledStatus=1
|
|
and a.id=#{id}
|
|
and a.id=#{id}
|
|
</select>
|
|
</select>
|
|
- <select id="getLivePageData" resultType="com.caimei.www.pojo.content.PageContent">
|
|
|
|
|
|
+ <select id="getLivePageData" resultType="com.caimei.www.pojo.page.PageContent">
|
|
select a.id, a.type, a.title, a.keywords, a.description, a.headImage as image, a.headText as content
|
|
select a.id, a.type, a.title, a.keywords, a.description, a.headImage as image, a.headText as content
|
|
from cm_page a
|
|
from cm_page a
|
|
where a.id=1 and a.type=3 and a.enabledStatus=1
|
|
where a.id=1 and a.type=3 and a.enabledStatus=1
|
|
</select>
|
|
</select>
|
|
- <select id="getFloorByPageId" resultType="com.caimei.www.pojo.content.PageFloor">
|
|
|
|
|
|
+ <select id="getFloorByPageId" resultType="com.caimei.www.pojo.page.PageFloor">
|
|
select id, pageId as type, title, link
|
|
select id, pageId as type, title, link
|
|
from cm_page_centre
|
|
from cm_page_centre
|
|
where pageId=#{id}
|
|
where pageId=#{id}
|
|
and enabledStatus=1
|
|
and enabledStatus=1
|
|
order by sort desc,createDate desc
|
|
order by sort desc,createDate desc
|
|
</select>
|
|
</select>
|
|
- <select id="getDataByFloorId" resultType="com.caimei.www.pojo.content.ImageLink">
|
|
|
|
|
|
+ <select id="getDataByFloorId" resultType="com.caimei.www.pojo.page.ImageLink">
|
|
select a.id as id,
|
|
select a.id as id,
|
|
a.title as title,
|
|
a.title as title,
|
|
a.link as link,
|
|
a.link as link,
|
|
@@ -38,7 +38,7 @@
|
|
where b.centreId=#{floorId} and a.enabledStatus=1
|
|
where b.centreId=#{floorId} and a.enabledStatus=1
|
|
order by a.sort desc,a.createDate desc
|
|
order by a.sort desc,a.createDate desc
|
|
</select>
|
|
</select>
|
|
- <select id="getPromotionsList" resultType="com.caimei.www.pojo.content.ImageLink">
|
|
|
|
|
|
+ <select id="getPromotionsList" resultType="com.caimei.www.pojo.page.ImageLink">
|
|
select a.id as id,
|
|
select a.id as id,
|
|
a.title as title,
|
|
a.title as title,
|
|
a.link as link,
|
|
a.link as link,
|
|
@@ -49,7 +49,7 @@
|
|
where a.type=4 and a.enabledStatus=1
|
|
where a.type=4 and a.enabledStatus=1
|
|
order by a.sort desc,a.createDate desc
|
|
order by a.sort desc,a.createDate desc
|
|
</select>
|
|
</select>
|
|
- <select id="getLiveTeachers" resultType="com.caimei.www.pojo.content.ImageLink">
|
|
|
|
|
|
+ <select id="getLiveTeachers" resultType="com.caimei.www.pojo.page.ImageLink">
|
|
select a.id as id,
|
|
select a.id as id,
|
|
a.title as title,
|
|
a.title as title,
|
|
a.link as link,
|
|
a.link as link,
|