-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpm-mapping.xml
More file actions
144 lines (116 loc) · 5.1 KB
/
Copy pathpm-mapping.xml
File metadata and controls
144 lines (116 loc) · 5.1 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
<?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="pm">
<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="shop_phone" column="shop_phone" />
<result property="angel_name" column="angel_name" />
<result property="angel_code" column="angel_code" />
<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-130131" resultClass="int" parameterClass="java.util.Map">
SELECT
count(*)
<include refid="pmQuery.from-130131"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY
rdate DESC
</select>
<select id="onePageData-130131" resultMap="UserList" parameterClass="java.util.Map">
<include refid="pmQuery.select-130131"/>
<include refid="pmQuery.from-130131"/>
<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="pmQuery.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="pmQuery.select-130401"/>
<include refid="pmQuery.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-130430" resultClass="int" parameterClass="java.util.Map">
SELECT
count(*)
<include refid="pmQuery.from-130430"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY
rdate DESC
</select>
<select id="onePageData-130430" resultMap="UserList" parameterClass="java.util.Map">
<include refid="pmQuery.select-130430"/>
<include refid="pmQuery.from-130430"/>
<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="pmQuery.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="pmQuery.select-Other"/>
<include refid="pmQuery.from-Other"/>
<include refid="condition" /> <!-- where조건절 입니다. 아이바티스로 넘어온 param 값으로 비교하여 where절을 리턴함 -->
ORDER BY rdate DESC
<isNotEmpty property="startNo">
LIMIT
$startNo$
,$endNo$
</isNotEmpty>
</select>
<!-- onePageData 끝 -->
</sqlMap>