Showing
6 changed files
with
3 additions
and
83 deletions
@@ -121,29 +121,4 @@ | @@ -121,29 +121,4 @@ | ||
121 | <result column="product_skn" property="productSkn" jdbcType="INTEGER"/> | 121 | <result column="product_skn" property="productSkn" jdbcType="INTEGER"/> |
122 | <result column="activity" property="activity" jdbcType="VARCHAR"/> | 122 | <result column="activity" property="activity" jdbcType="VARCHAR"/> |
123 | </resultMap> | 123 | </resultMap> |
124 | - <select id="selectProductActivity" resultMap="ProductActivity"> | ||
125 | - <![CDATA[ | ||
126 | - SELECT | ||
127 | - `ap`.`product_skn` AS `product_skn`, | ||
128 | - concat( | ||
129 | - '{"activity_id":', | ||
130 | - `ap`.`id`, | ||
131 | - ',"template_id":', | ||
132 | - `ap`.`template_id`, | ||
133 | - ',"order_by":', | ||
134 | - `ap`.`order_by`, | ||
135 | - ',"is_recommend":', | ||
136 | - `ap`.`is_recommend`, | ||
137 | - ',"status":', | ||
138 | - `ap`.`status`, | ||
139 | - '}' | ||
140 | - ) AS `activity` | ||
141 | - FROM | ||
142 | - `activity_product` `ap` | ||
143 | - where product_skn in]]> | ||
144 | - <foreach item="item" index="index" collection="list" | ||
145 | - open="(" separator="," close=")"> | ||
146 | - #{item} | ||
147 | - </foreach> | ||
148 | - </select> | ||
149 | </mapper> | 124 | </mapper> |
@@ -252,28 +252,6 @@ | @@ -252,28 +252,6 @@ | ||
252 | 252 | ||
253 | ]]> | 253 | ]]> |
254 | </select> | 254 | </select> |
255 | - <resultMap id="ProductColors" type="com.yoho.search.dal.model.ProductColors"> | ||
256 | - <result column="product_id" property="productId" jdbcType="INTEGER"/> | ||
257 | - <result column="color_ids" property="colorIds" jdbcType="VARCHAR"/> | ||
258 | - <result column="color_names" property="colorNames" jdbcType="VARCHAR"/> | ||
259 | - </resultMap> | ||
260 | - <select id="selectProductColors" resultMap="ProductColors" timeout="20000"> | ||
261 | - <![CDATA[ | ||
262 | - SELECT | ||
263 | - `a`.`product_id` AS `product_id`, | ||
264 | - group_concat(`a`.`color_id` SEPARATOR ',') AS `color_ids`, | ||
265 | - group_concat( | ||
266 | - `a`.`color_name` SEPARATOR ',' | ||
267 | - ) AS `color_names` | ||
268 | - FROM | ||
269 | - `goods` `a` where product_id in]]> | ||
270 | - <foreach item="item" index="index" collection="list" | ||
271 | - open="(" separator="," close=")"> | ||
272 | - #{item} | ||
273 | - </foreach> | ||
274 | - GROUP BY | ||
275 | - `a`.`product_id` | ||
276 | - </select> | ||
277 | <resultMap id="ids" type="Integer"> | 255 | <resultMap id="ids" type="Integer"> |
278 | <result column="id" property="Id" jdbcType="INTEGER"/> | 256 | <result column="id" property="Id" jdbcType="INTEGER"/> |
279 | </resultMap> | 257 | </resultMap> |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | <result column="product_skn" property="productSkn" jdbcType="INTEGER"/> | 5 | <result column="product_skn" property="productSkn" jdbcType="INTEGER"/> |
6 | <result column="activity" property="activity" jdbcType="VARCHAR"/> | 6 | <result column="activity" property="activity" jdbcType="VARCHAR"/> |
7 | </resultMap> | 7 | </resultMap> |
8 | - <select id="getProductActivity" resultMap="ProductActivity"> | 8 | + <select id="selectProductActivity" resultMap="ProductActivity"> |
9 | <![CDATA[ | 9 | <![CDATA[ |
10 | SELECT | 10 | SELECT |
11 | `ap`.`product_skn` AS `product_skn`, | 11 | `ap`.`product_skn` AS `product_skn`, |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <result column="color_ids" property="colorIds" jdbcType="VARCHAR"/> | 6 | <result column="color_ids" property="colorIds" jdbcType="VARCHAR"/> |
7 | <result column="color_names" property="colorNames" jdbcType="VARCHAR"/> | 7 | <result column="color_names" property="colorNames" jdbcType="VARCHAR"/> |
8 | </resultMap> | 8 | </resultMap> |
9 | - <select id="getProductColors" resultMap="ProductColors" timeout="20000"> | 9 | + <select id="selectProductColors" resultMap="ProductColors" timeout="20000"> |
10 | <![CDATA[ | 10 | <![CDATA[ |
11 | SELECT | 11 | SELECT |
12 | `a`.`product_id` AS `product_id`, | 12 | `a`.`product_id` AS `product_id`, |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <result column="product_skn" property="productSkn" jdbcType="INTEGER"/> | 6 | <result column="product_skn" property="productSkn" jdbcType="INTEGER"/> |
7 | <result column="brand_weight_id" property="brandWeightId" jdbcType="INTEGER"/> | 7 | <result column="brand_weight_id" property="brandWeightId" jdbcType="INTEGER"/> |
8 | </resultMap> | 8 | </resultMap> |
9 | - <select id="getProductSearchBrand" resultMap="ProductSearchBrand"> | 9 | + <select id="selectProductSearchBrand" resultMap="ProductSearchBrand"> |
10 | <![CDATA[ | 10 | <![CDATA[ |
11 | SELECT | 11 | SELECT |
12 | `product_search`.`product_skn` AS `product_skn`, | 12 | `product_search`.`product_skn` AS `product_skn`, |
@@ -167,39 +167,6 @@ product_skn | @@ -167,39 +167,6 @@ product_skn | ||
167 | GROUP BY | 167 | GROUP BY |
168 | `product_search`.`product_skn` | 168 | `product_search`.`product_skn` |
169 | </select> | 169 | </select> |
170 | - <resultMap id="ProductSearchBrand" type="com.yoho.search.dal.model.ProductSearchBrand"> | ||
171 | - <id column="id" property="id" jdbcType="INTEGER" /> | ||
172 | - <result column="product_skn" property="productSkn" jdbcType="INTEGER" /> | ||
173 | - <result column="brand_weight_id" property="brandWeightId" jdbcType="INTEGER" /> | ||
174 | - </resultMap> | ||
175 | - <select id="selectProductSearchBrand" resultMap="ProductSearchBrand"> | ||
176 | - <![CDATA[ | ||
177 | - SELECT | ||
178 | - `product_search`.`product_skn` AS `product_skn`, | ||
179 | - max(`product_search`.`id`) AS `brand_weight_id` | ||
180 | -FROM | ||
181 | - `product_search` | ||
182 | -WHERE | ||
183 | - ( | ||
184 | - ( | ||
185 | - `product_search`.`model_id` = 1 | ||
186 | - ) | ||
187 | - AND ( | ||
188 | - `product_search`.`project_id` = 1 | ||
189 | - ) | ||
190 | - )AND | ||
191 | -product_skn | ||
192 | - in]]> | ||
193 | -<foreach item="item" index="index" collection="list" | ||
194 | - open="(" separator="," close=")"> | ||
195 | - #{item} | ||
196 | -</foreach> | ||
197 | - | ||
198 | -GROUP BY | ||
199 | - `product_search`.`product_skn` | ||
200 | - | ||
201 | - </select> | ||
202 | - | ||
203 | <resultMap id="ProductSearchShop" type="com.yoho.search.dal.model.ProductSearchShop"> | 170 | <resultMap id="ProductSearchShop" type="com.yoho.search.dal.model.ProductSearchShop"> |
204 | <id column="id" property="id" jdbcType="INTEGER" /> | 171 | <id column="id" property="id" jdbcType="INTEGER" /> |
205 | <result column="product_skn" property="productSkn" jdbcType="INTEGER" /> | 172 | <result column="product_skn" property="productSkn" jdbcType="INTEGER" /> |
-
Please register or login to post a comment