|
@@ -136,7 +136,26 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <select id="bigDatainfo" resultType="com.hwrj.cloud.admin.dto.param.BigDataListInfoVo" parameterType="java.lang.Long">
|
|
|
+ <resultMap id="bigDatainfoMap" type="com.hwrj.cloud.admin.dto.param.BigDataListInfoVo">
|
|
|
+ <id column="id" property="id"/>
|
|
|
+ <result column="name" property="name"/>
|
|
|
+ <result column="pic" property="pic"/>
|
|
|
+ <result column="brandName" property="brandName"/>
|
|
|
+ <result column="price" property="price"/>
|
|
|
+ <result column="spec" property="spec"/>
|
|
|
+ <result column="qualityGuaranteePeriod" property="qualityGuaranteePeriod"/>
|
|
|
+ <result column="placeOfProduction" property="placeOfProduction"/>
|
|
|
+ <result column="umsCompanyInfo" property="umsCompanyInfo"/>
|
|
|
+ <result column="description" property="description"/>
|
|
|
+ <collection property="buyUrls" javaType="java.util.List"
|
|
|
+ ofType="com.hwrj.cloud.admin.dto.param.BuyProductInfoVo">
|
|
|
+ <result column="shopType" property="shopType"/>
|
|
|
+ <result column="shopImg" property="shopImg"/>
|
|
|
+ <result column="shopUrl" property="shopUrl"/>
|
|
|
+ </collection>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="bigDatainfo" resultMap="bigDatainfoMap" parameterType="java.lang.Long">
|
|
|
SELECT
|
|
|
a.id,
|
|
|
a.`name` AS 'name',
|
|
@@ -147,9 +166,13 @@
|
|
|
a.quality_guarantee_period AS qualityGuaranteePeriod,
|
|
|
a.place_of_production AS placeOfProduction,
|
|
|
a.ums_company_info AS umsCompanyInfo,
|
|
|
- a.description AS description
|
|
|
+ a.description AS description,
|
|
|
+ b.shop_type AS shopType,
|
|
|
+ b.shop_img AS shopImg,
|
|
|
+ b.shop_url AS shopUrl
|
|
|
FROM
|
|
|
pms_product a
|
|
|
+ LEFT JOIN ums_company_shop b on a.ums_company_info_id=b.comp_id
|
|
|
WHERE 1=1
|
|
|
<if test="id != null">
|
|
|
AND a.id = #{id}
|