1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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.caimei.www.mapper.InstrumentDao">
- <select id="getInstrumentById" resultType="com.caimei.www.pojo.content.InstrumentDetail">
- select id, type, title, keywords, description,
- headImage, bottomText, bottomImage, crmBottomImage1 as crmBottomImage
- from cm_page
- where id = #{instrumentId} and type='2' and enabledStatus=1
- </select>
- <select id="getParametersByInstrumentId" resultType="com.caimei.www.pojo.content.Parameter">
- select id,
- pageId as parentId,
- name,
- content,
- type
- from cm_page_name_content
- where pageId=#{instrumentId}
- </select>
- <select id="getInstrumentRecommendById" resultType="com.caimei.www.pojo.content.PageFloor">
- select id,
- pageId as type,
- title,
- link as detail
- from cm_page_centre
- where pageId=#{instrumentId}
- and enabledStatus=1
- order by sort desc,createDate desc
- </select>
- <select id="getFloorDataById" resultType="com.caimei.www.pojo.content.ImageLink">
- select a.id as id,
- a.title as title,
- a.link as link,
- d.image as image
- from cm_page_image a
- right join cm_page_centre_image b on b.imageId=a.id
- left join cm_page_image_activity c on c.imageId=a.id
- left join acttype d on d.acttypeId=c.acttypeId
- where b.centreId=#{id} and a.enabledStatus=1
- order by a.sort desc,a.createDate desc
- </select>
- </mapper>
|