|
@@ -2,7 +2,7 @@
|
|
|
<!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, a.backgroundColour, a.backgroundImage
|
|
|
+ select a.id, a.type, a.title, a.keywords, a.description, ifnull(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
|