|
@@ -2,14 +2,14 @@
|
|
|
<!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">
|
|
|
<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, a.backgroundColour, a.backgroundImage
|
|
|
from cm_page a
|
|
|
left join cm_page_freedom f on a.id=f.pageId
|
|
|
where a.type=4 and a.enabledStatus=1 and f.type=1
|
|
|
and a.id=#{id}
|
|
|
</select>
|
|
|
<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, a.backgroundColour, a.backgroundImage
|
|
|
from cm_page a
|
|
|
where a.type=1 and a.enabledStatus=1
|
|
|
and a.id=#{id}
|