ProductIMapper.xml
5.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yoho.search.dal.ProductIMapper" >
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.ProductI" >
<result column="id" property="id" jdbcType="INTEGER" />
<result column="product_id" property="productId" jdbcType="INTEGER" />
<result column="shop_id" property="shopId" jdbcType="INTEGER" />
<result column="shelve_time" property="shelveTime" jdbcType="INTEGER" />
<result column="shelve_day" property="shelveDay" jdbcType="VARCHAR" />
<result column="cn_alphabet" property="cnAlphabet" jdbcType="VARCHAR" />
<result column="product_name" property="productName" jdbcType="VARCHAR" />
<result column="style" property="style" jdbcType="VARCHAR" />
<result column="sales_phrase" property="salesPhrase" jdbcType="VARCHAR" />
<result column="max_sort_id" property="maxSortId" jdbcType="SMALLINT" />
<result column="max_sort_name" property="maxSortName" jdbcType="VARCHAR" />
<result column="middle_sort_id" property="middleSortId" jdbcType="SMALLINT" />
<result column="middle_sort_name" property="middleSortName" jdbcType="VARCHAR" />
<result column="small_sort_id" property="smallSortId" jdbcType="SMALLINT" />
<result column="small_sort_name" property="smallSortName" jdbcType="VARCHAR" />
<result column="gender" property="gender" jdbcType="CHAR" />
<result column="gender_s" property="genderS" jdbcType="VARCHAR" />
<result column="brand_id" property="brandId" jdbcType="SMALLINT" />
<result column="is_special" property="isSpecial" jdbcType="CHAR" />
<result column="status" property="status" jdbcType="TINYINT" />
<result column="seasons_s" property="seasonsS" jdbcType="INTEGER" />
<result column="isspecial" property="isspecial" jdbcType="INTEGER" />
<result column="is_hot" property="isHot" jdbcType="CHAR" />
<result column="folder_id" property="folderId" jdbcType="INTEGER" />
<result column="ishot" property="ishot" jdbcType="INTEGER" />
<result column="ispromotion" property="ispromotion" jdbcType="SMALLINT" />
<result column="series_id" property="seriesId" jdbcType="INTEGER" />
<result column="is_sales" property="isSales" jdbcType="CHAR" />
<result column="issales" property="issales" jdbcType="INTEGER" />
<result column="is_advance" property="isAdvance" jdbcType="CHAR" />
<result column="isadvance" property="isadvance" jdbcType="INTEGER" />
<result column="is_auditing" property="isAuditing" jdbcType="CHAR" />
<result column="isauditing" property="isauditing" jdbcType="INTEGER" />
<result column="attribute" property="attribute" jdbcType="TINYINT" />
<result column="seasons" property="seasons" jdbcType="CHAR" />
<result column="is_down" property="isDown" jdbcType="CHAR" />
<result column="isdown" property="isdown" jdbcType="INTEGER" />
<result column="isrecommend" property="isrecommend" jdbcType="INTEGER" />
<result column="is_outlets" property="isOutlets" jdbcType="INTEGER" />
<result column="first_shelve_time" property="firstShelveTime" jdbcType="INTEGER" />
<result column="sell_channels" property="sellChannels" jdbcType="CHAR" />
<result column="product_skn" property="productSkn" jdbcType="INTEGER" />
<result column="brand_name_cn" property="brandNameCn" jdbcType="VARCHAR" />
<result column="brand_name_en" property="brandNameEn" jdbcType="VARCHAR" />
<result column="brand_keyword" property="brandKeyword" jdbcType="VARCHAR" />
<result column="hot_keyword" property="hotKeyword" jdbcType="VARCHAR" />
<result column="brand_name" property="brandName" jdbcType="VARCHAR" />
<result column="brand_domain" property="brandDomain" jdbcType="VARCHAR" />
<result column="brand_alif" property="brandAlif" jdbcType="VARCHAR" />
<result column="edit_time" property="editTime" jdbcType="INTEGER" />
<result column="islimited" property="islimited" jdbcType="CHAR" />
<result column="max_sort" property="maxSort" jdbcType="VARCHAR" />
<result column="middle_sort" property="middleSort" jdbcType="VARCHAR" />
<result column="small_sort" property="smallSort" jdbcType="VARCHAR" />
<result column="age_level" property="ageLevel" jdbcType="VARCHAR" />
<result column="app_type" property="appType" jdbcType="INTEGER" />
<result column="is_instalment" property="isInstalment" jdbcType="VARCHAR" />
<result column="is_seckill" property="isSeckill" jdbcType="CHAR" />
<result column="country_id" property="countryId" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
id, product_id, shop_id,shelve_time, shelve_day,
cn_alphabet, product_name, style,sales_phrase, max_sort_id,
max_sort_name,middle_sort_id, middle_sort_name, small_sort_id,small_sort_name,
gender, gender_s, brand_id, is_special, status,
seasons_s, isspecial, is_hot, folder_id, ishot,
ispromotion, series_id, is_sales, issales, is_advance,
isadvance, is_auditing, isauditing, attribute, seasons,
is_down, isdown, isrecommend, is_outlets, first_shelve_time,
sell_channels, product_skn,brand_name_cn, brand_name_en,
brand_keyword, hot_keyword, brand_name,brand_domain,brand_alif,
edit_time,islimited,max_sort,middle_sort,small_sort,
age_level,app_type,is_instalment,is_seckill,country_id
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" timeout="20000">
select
<include refid="Base_Column_List" />
from product_i
where id = #{id,jdbcType=INTEGER}
</select>
<select id="count" resultType="java.lang.Integer" timeout="20000">
SELECT count(*) FROM product_i
</select>
<select id="getPageLists" resultMap="BaseResultMap" timeout="20000">
select
<include refid="Base_Column_List" />
from product_i limit #{offset},#{pageSize}
</select>
</mapper>