12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?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.BaikeDao">
- <select id="getBaikeProductDetail" resultType="com.caimei.www.pojo.baike.BaikeProduct">
- select a.id AS "id",
- a.commodityType AS "commodityType",
- a.name AS "name",
- a.alias AS "alias",
- a.discription AS "discription",
- a.image AS "image",
- a.advantage AS "advantage",
- a.disadvantage AS "disadvantage",
- a.principle AS "principle",
- a.brand AS "brand",
- a.producePlace AS "producePlace",
- a.marketTime AS "marketTime",
- a.company AS "company",
- a.nmpaTime AS "nmpaTime",
- a.adaptiveMan AS "adaptiveMan",
- a.unAdaptiveMan AS "unAdaptiveMan",
- a.aroundOperation AS "aroundOperation",
- a.publishTime AS "publishTime",
- a.basePv AS "basePv",
- a.actualPv AS "actualPv",
- a.typeId AS "typeId",
- a.topPosition AS "topPosition",
- a.status AS "status",
- a.addTime AS "addTime",
- cbt.name as "typeName"
- from cm_baike_product a
- left join cm_baike_type cbt on a.typeId = cbt.id
- where a.id = #{productId} and status =1;
- </select>
- <select id="findParamList" resultType="com.caimei.www.pojo.baike.BaikeProductParam">
- select productId, name, content from cm_baike_product_param where productId = #{id}
- </select>
- <select id="findImageList" resultType="java.lang.String">
- select image from cm_baike_product_image where productId = #{productId} and type = #{imageType}
- </select>
- <select id="findQuestionList" resultType="com.caimei.www.pojo.baike.BaikeProductQuestion">
- select productId, question, answer
- from cm_baike_product_question
- where productId = #{productId}
- </select>
- </mapper>
|