|
@@ -5,26 +5,28 @@
|
5
|
5
|
|
6
|
6
|
<select id="selectPopStoreGridList" resultType="com.oqpo.api.entity.stinfo.StoreBaseInfoEntity">
|
7
|
7
|
select /* selectPopStoreGridList */
|
8
|
|
- brand_id, fn_brand_nm(brand_id) as brand_nm, store_id, store_nm, store_st_cd, fn_code_nm('STORE_ST_CD',store_st_cd) as store_st_nm
|
9
|
|
- from store_base_info
|
|
8
|
+ A.brand_id, fn_brand_nm(A.brand_id) as brand_nm,
|
|
9
|
+ A.store_id, A.store_nm, A.store_st_cd, fn_code_nm('STORE_ST_CD', A.store_st_cd) as store_st_nm,
|
|
10
|
+ A.loan_dvsn
|
|
11
|
+ from store_base_info A
|
10
|
12
|
where 1=1
|
11
|
|
- and brand_id = #{sBrandId}
|
|
13
|
+ and A.brand_id = #{sBrandId}
|
12
|
14
|
<if test="sStoreNm != null and sStoreNm != ''">
|
13
|
|
- and store_nm like concat('%',#{sStoreNm},'%')
|
|
15
|
+ and A.store_nm like concat('%',#{sStoreNm},'%')
|
14
|
16
|
</if>
|
15
|
17
|
<choose>
|
16
|
18
|
<when test="gridRequest.sidx != null and gridRequest.sidx != ''">
|
17
|
19
|
<if test="gridRequest.sidx == 'VIEW_NUM'.toString()">
|
18
|
20
|
<if test="gridRequest.sord == 'asc'.toString()">
|
19
|
|
- order by store_nm asc
|
|
21
|
+ order by A.store_nm asc
|
20
|
22
|
</if>
|
21
|
23
|
<if test="gridRequest.sord == 'desc'.toString()">
|
22
|
|
- order by store_nm desc
|
|
24
|
+ order by A.store_nm desc
|
23
|
25
|
</if>
|
24
|
26
|
</if>
|
25
|
27
|
</when>
|
26
|
28
|
<otherwise>
|
27
|
|
- order by store_nm asc
|
|
29
|
+ order by A.store_nm asc
|
28
|
30
|
</otherwise>
|
29
|
31
|
</choose>
|
30
|
32
|
<if test="gridRequest.pagingYn == true">
|