...
|
...
|
@@ -167,39 +167,6 @@ product_skn |
|
|
GROUP BY
|
|
|
`product_search`.`product_skn`
|
|
|
</select>
|
|
|
<resultMap id="ProductSearchBrand" type="com.yoho.search.dal.model.ProductSearchBrand">
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="product_skn" property="productSkn" jdbcType="INTEGER" />
|
|
|
<result column="brand_weight_id" property="brandWeightId" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<select id="selectProductSearchBrand" resultMap="ProductSearchBrand">
|
|
|
<![CDATA[
|
|
|
SELECT
|
|
|
`product_search`.`product_skn` AS `product_skn`,
|
|
|
max(`product_search`.`id`) AS `brand_weight_id`
|
|
|
FROM
|
|
|
`product_search`
|
|
|
WHERE
|
|
|
(
|
|
|
(
|
|
|
`product_search`.`model_id` = 1
|
|
|
)
|
|
|
AND (
|
|
|
`product_search`.`project_id` = 1
|
|
|
)
|
|
|
)AND
|
|
|
product_skn
|
|
|
in]]>
|
|
|
<foreach item="item" index="index" collection="list"
|
|
|
open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
|
|
|
GROUP BY
|
|
|
`product_search`.`product_skn`
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<resultMap id="ProductSearchShop" type="com.yoho.search.dal.model.ProductSearchShop">
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="product_skn" property="productSkn" jdbcType="INTEGER" />
|
...
|
...
|
|