|
@@ -161,23 +161,26 @@
|
|
|
|
|
|
<select id="bigDatainfo" resultMap="bigDatainfoMap" parameterType="java.lang.Long">
|
|
|
SELECT
|
|
|
- a.id,
|
|
|
- a.`name` AS 'name',
|
|
|
- a.pic AS pic,
|
|
|
- a.brand_name AS brandName,
|
|
|
- a.price AS price,
|
|
|
- a.spec AS spec,
|
|
|
- a.quality_guarantee_period AS qualityGuaranteePeriod,
|
|
|
- a.place_of_production AS placeOfProduction,
|
|
|
- a.ums_company_info AS umsCompanyInfo,
|
|
|
- a.description AS description,
|
|
|
- b.shop_type AS shopType,
|
|
|
- b.shop_img AS shopImg,
|
|
|
- b.shop_url AS shopUrl
|
|
|
+ a.id,
|
|
|
+ a.`name` AS 'name',
|
|
|
+ a.pic AS pic,
|
|
|
+ a.brand_name AS brandName,
|
|
|
+ a.price AS price,
|
|
|
+ a.spec AS spec,
|
|
|
+ a.quality_guarantee_period AS qualityGuaranteePeriod,
|
|
|
+ d.origin_name AS placeOfProduction,
|
|
|
+ c.comp_name AS umsCompanyInfo,
|
|
|
+ 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
|
|
|
+ pms_product a
|
|
|
+ LEFT JOIN ums_company_info c ON c.id = a.comp_id
|
|
|
+ LEFT JOIN ums_company_shop b ON b.comp_id = a.comp_id
|
|
|
+ LEFT JOIN ums_member_origin d ON d.comp_id = a.comp_id
|
|
|
+ WHERE
|
|
|
+ 1 = 1
|
|
|
AND a.id = #{id}
|
|
|
</select>
|
|
|
<select id="bigDataType" resultType="com.hwrj.cloud.admin.dto.param.SelectVo">
|
|
@@ -214,4 +217,14 @@
|
|
|
a.ums_company_info
|
|
|
) = #{check}
|
|
|
</select>
|
|
|
+ <select id="plOfProSelect" resultType="com.hwrj.cloud.admin.dto.param.SelectVo">
|
|
|
+ SELECT
|
|
|
+ a.id as lable,
|
|
|
+ a.origin_name as text
|
|
|
+ FROM
|
|
|
+ ums_member_origin a
|
|
|
+ WHERE
|
|
|
+ a.state = 0
|
|
|
+ AND a.comp_id = #{compId}
|
|
|
+ </select>
|
|
|
</mapper>
|