-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathat-mapping.xml
More file actions
202 lines (157 loc) · 6.69 KB
/
Copy pathat-mapping.xml
File metadata and controls
202 lines (157 loc) · 6.69 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="at">
<typeAlias alias="UserVO" type="com.amore.domain.UserVO" />
<resultMap class="UserVO" id="UserList">
<result property="user_no" column="user_no" />
<result property="uphone" column="uphone" />
<result property="name" column="name" />
<result property="shop_name" column="shop_name" />
<result property="angel_code" column="angel_code" />
<result property="angel_name" column="angel_name" />
<result property="coupon_cnt" column="coupon_cnt" />
<result property="fdate" column="fdate" />
<result property="eventVO.evt_code" column="evt_code" />
<result property="eventVO.brand" column="brand" />
<result property="eventVO.userno" column="userno" />
<result property="eventVO.phone" column="phone" />
<result property="eventVO.vcnt" column="vcnt" />
<result property="eventVO.rdate" column="rdate" />
<result property="eventVO.inst_dt" column="inst_dt" />
<result property="eventVO.inst_tm" column="inst_tm" />
</resultMap>
<typeAlias alias="selbox" type="com.amore.domain.Evt_CodeVO"/>
<resultMap class="selbox" id="selboxList">
<result property="evt_code" column="evt_code"/>
</resultMap>
<select id="getSelboxData" resultMap="selboxList" parameterClass="String">
<include refid="getSelboxDataQuery"/>
</select>
<!-- boardMaxCount 시작 -->
<select id="boardMaxCount-130301" resultClass="int" parameterClass="java.util.Map">
SELECT
count(*)
<include refid="atQuery.from-130301"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY
rdate DESC
</select>
<select id="onePageData-130301" resultMap="UserList" parameterClass="java.util.Map">
<include refid="atQuery.select-130301"/>
<include refid="atQuery.from-130301"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY rdate DESC
<isNotEmpty property="startNo">
LIMIT
$startNo$
,$endNo$
</isNotEmpty>
</select>
<!-- onePageData 끝 -->
<!-- boardMaxCount 시작 -->
<select id="boardMaxCount-130307" resultClass="int" parameterClass="java.util.Map">
SELECT
count(*)
<include refid="atQuery.from-130307"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY
rdate DESC
</select>
<select id="onePageData-130307" resultMap="UserList" parameterClass="java.util.Map">
<include refid="atQuery.select-130307"/>
<include refid="atQuery.from-130307"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY rdate DESC
<isNotEmpty property="startNo">
LIMIT
$startNo$
,$endNo$
</isNotEmpty>
</select>
<!-- onePageData 끝 -->
<!-- boardMaxCount 시작 -->
<select id="boardMaxCount-130401" resultClass="int" parameterClass="java.util.Map">
SELECT
count(*)
<include refid="atQuery.from-130401"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY
rdate DESC
</select>
<select id="onePageData-130401" resultMap="UserList" parameterClass="java.util.Map">
<include refid="atQuery.select-130401"/>
<include refid="atQuery.from-130401"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY rdate DESC
<isNotEmpty property="startNo">
LIMIT
$startNo$
,$endNo$
</isNotEmpty>
</select>
<!-- onePageData 끝 -->
<!-- boardMaxCount 시작 -->
<select id="boardMaxCount-130402" resultClass="int" parameterClass="java.util.Map">
SELECT
count(*)
<include refid="atQuery.from-130402"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY
rdate DESC
</select>
<select id="onePageData-130402" resultMap="UserList" parameterClass="java.util.Map">
<include refid="atQuery.select-130402"/>
<include refid="atQuery.from-130402"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY rdate DESC
<isNotEmpty property="startNo">
LIMIT
$startNo$
,$endNo$
</isNotEmpty>
</select>
<!-- onePageData 끝 -->
<!-- boardMaxCount 시작 -->
<select id="boardMaxCount-130404" resultClass="int" parameterClass="java.util.Map">
SELECT
count(*)
<include refid="atQuery.from-130404"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY
rdate DESC
</select>
<select id="onePageData-130404" resultMap="UserList" parameterClass="java.util.Map">
<include refid="atQuery.select-130404"/>
<include refid="atQuery.from-130404"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY rdate DESC
<isNotEmpty property="startNo">
LIMIT
$startNo$
,$endNo$
</isNotEmpty>
</select>
<!-- onePageData 끝 -->
<!-- boardMaxCount 시작 -->
<select id="boardMaxCount-Other" resultClass="int" parameterClass="java.util.Map">
SELECT
count(*)
<include refid="apQuery.from-Other"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY
rdate DESC
</select>
<select id="onePageData-Other" resultMap="UserList" parameterClass="java.util.Map">
<include refid="apQuery.select-Other"/>
<include refid="apQuery.from-Other"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY rdate DESC
<isNotEmpty property="startNo">
LIMIT
$startNo$
,$endNo$
</isNotEmpty>
</select>
<!-- onePageData 끝 -->
</sqlMap>