a.id AS "id",
a.type AS "type",
a.typeSort AS "typeSort",
a.title AS "title",
a.keywords AS "keywords",
a.description AS "description",
a.precisehKey AS "precisehKey",
a.docBoost AS "docBoost",
a.headImage AS "headImage",
a.crmHeadImage AS "crmHeadImage",
a.headLink AS "headLink",
a.headText AS "headText",
a.bottomImage AS "bottomImage",
a.crmBottomImage1 AS "crmBottomImage1",
a.crmBottomImage2 AS "crmBottomImage2",
a.bottomText AS "bottomText",
a.buttonName AS "buttonName",
a.buttonLink AS "buttonLink",
a.enabledStatus AS "enabledStatus",
a.createBy AS "createBy.id",
a.createDate AS "createDate",
a.updateBy AS "updateBy.id",
a.updateDate AS "updateDate",
a.contentLabel as "contentLabel",
a.backgroundType AS "backgroundType",
a.backgroundColour AS "backgroundColour",
a.backgroundImage AS "backgroundImage",
a.backgroundImageWay AS "backgroundImageWay",
a.redPacketBeginTime,
a.redPacketEndTime,
a.infoBarStatus
INSERT INTO cm_page(
type,
title,
typeSort,
keywords,
description,
precisehKey,
docBoost,
headImage,
crmHeadImage,
headLink,
headText,
bottomImage,
crmBottomImage1,
crmBottomImage2,
bottomText,
buttonName,
buttonLink,
enabledStatus,
createBy,
createDate,
updateBy,
updateDate,
contentLabel,
backgroundType,
backgroundColour,
backgroundImage,
backgroundImageWay,
redPacketBeginTime,
redPacketEndTime,
infoBarStatus
) VALUES (
#{type},
#{title},
#{typeSort},
#{keywords},
#{description},
#{precisehKey},
#{docBoost},
#{headImage},
#{crmHeadImage},
#{headLink},
#{headText},
#{bottomImage},
#{crmBottomImage1},
#{crmBottomImage2},
#{bottomText},
#{buttonName},
#{buttonLink},
#{enabledStatus},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{contentLabel},
#{backgroundType},
#{backgroundColour},
#{backgroundImage},
#{backgroundImageWay},
#{redPacketBeginTime},
#{redPacketEndTime},
#{infoBarStatus}
)
UPDATE cm_page SET
title = #{title},
typeSort = #{typeSort},
keywords = #{keywords},
description = #{description},
precisehKey = #{precisehKey},
docBoost = #{docBoost},
headImage = #{headImage},
crmHeadImage = #{crmHeadImage},
headLink = #{headLink},
headText = #{headText},
bottomImage = #{bottomImage},
crmBottomImage1 = #{crmBottomImage1},
crmBottomImage2 = #{crmBottomImage2},
bottomText = #{bottomText},
buttonName = #{buttonName},
buttonLink = #{buttonLink},
enabledStatus = #{enabledStatus},
createBy = #{createBy.id},
createDate = #{createDate},
updateBy = #{updateBy.id},
updateDate = #{updateDate},
contentLabel = #{contentLabel},
backgroundType = #{backgroundType},
backgroundColour = #{backgroundColour},
backgroundImage = #{backgroundImage},
backgroundImageWay = #{backgroundImageWay},
redPacketBeginTime = #{redPacketBeginTime},
redPacketEndTime = #{redPacketEndTime},
infoBarStatus = #{infoBarStatus}
WHERE id = #{id}
DELETE FROM cm_page
WHERE id = #{id}
UPDATE cm_page a SET a.enabledStatus = #{param1}
WHERE a.id IN
#{id}
DELETE FROM cm_page_hot_search WHERE pageId = #{pageId}
INSERT INTO `cm_page_hot_search` (
`pageId`, `name`, `link`, `sort`, `pcStatus`,
`appletsStatus`, `isHot`, `creationTime`
)
VALUES
(
#{pageId}, #{name}, #{link}, #{sort}, #{pcStatus},
#{appletsStatus}, #{isHot}, now()
)