Authored by wangnan

规范dao方法名

... ... @@ -121,29 +121,4 @@
<result column="product_skn" property="productSkn" jdbcType="INTEGER"/>
<result column="activity" property="activity" jdbcType="VARCHAR"/>
</resultMap>
<select id="selectProductActivity" resultMap="ProductActivity">
<![CDATA[
SELECT
`ap`.`product_skn` AS `product_skn`,
concat(
'{"activity_id":',
`ap`.`id`,
',"template_id":',
`ap`.`template_id`,
',"order_by":',
`ap`.`order_by`,
',"is_recommend":',
`ap`.`is_recommend`,
',"status":',
`ap`.`status`,
'}'
) AS `activity`
FROM
`activity_product` `ap`
where product_skn in]]>
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
... ...
... ... @@ -252,28 +252,6 @@
]]>
</select>
<resultMap id="ProductColors" type="com.yoho.search.dal.model.ProductColors">
<result column="product_id" property="productId" jdbcType="INTEGER"/>
<result column="color_ids" property="colorIds" jdbcType="VARCHAR"/>
<result column="color_names" property="colorNames" jdbcType="VARCHAR"/>
</resultMap>
<select id="selectProductColors" resultMap="ProductColors" timeout="20000">
<![CDATA[
SELECT
`a`.`product_id` AS `product_id`,
group_concat(`a`.`color_id` SEPARATOR ',') AS `color_ids`,
group_concat(
`a`.`color_name` SEPARATOR ','
) AS `color_names`
FROM
`goods` `a` where product_id in]]>
<foreach item="item" index="index" collection="list"
open="(" separator="," close=")">
#{item}
</foreach>
GROUP BY
`a`.`product_id`
</select>
<resultMap id="ids" type="Integer">
<result column="id" property="Id" jdbcType="INTEGER"/>
</resultMap>
... ...
... ... @@ -5,7 +5,7 @@
<result column="product_skn" property="productSkn" jdbcType="INTEGER"/>
<result column="activity" property="activity" jdbcType="VARCHAR"/>
</resultMap>
<select id="getProductActivity" resultMap="ProductActivity">
<select id="selectProductActivity" resultMap="ProductActivity">
<![CDATA[
SELECT
`ap`.`product_skn` AS `product_skn`,
... ...
... ... @@ -6,7 +6,7 @@
<result column="color_ids" property="colorIds" jdbcType="VARCHAR"/>
<result column="color_names" property="colorNames" jdbcType="VARCHAR"/>
</resultMap>
<select id="getProductColors" resultMap="ProductColors" timeout="20000">
<select id="selectProductColors" resultMap="ProductColors" timeout="20000">
<![CDATA[
SELECT
`a`.`product_id` AS `product_id`,
... ...
... ... @@ -6,7 +6,7 @@
<result column="product_skn" property="productSkn" jdbcType="INTEGER"/>
<result column="brand_weight_id" property="brandWeightId" jdbcType="INTEGER"/>
</resultMap>
<select id="getProductSearchBrand" resultMap="ProductSearchBrand">
<select id="selectProductSearchBrand" resultMap="ProductSearchBrand">
<![CDATA[
SELECT
`product_search`.`product_skn` AS `product_skn`,
... ...
... ... @@ -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" />
... ...