Selaa lähdekoodia

매장 정산타입

marseyes 2 vuotta sitten
vanhempi
commit
770a87756c

+ 1 - 0
src/main/java/com/oqpo/api/service/stinfo/StoreBaseInfoService.java

@@ -74,6 +74,7 @@ public class StoreBaseInfoService extends CommonService {
74 74
                         .storeNm(m.getStoreNm())
75 75
                         .storeStCd(m.getStoreStCd())
76 76
                         .storeStNm(m.getStoreStNm())
77
+                        .loanDvsn(m.getLoanDvsn())      // 정산타입
77 78
                         .build())
78 79
                 .collect(Collectors.toList());
79 80
         return GridResponse.toDTO(gridPage, gridTotal, gridRecords, gridRows);

+ 3 - 0
src/main/java/com/oqpo/api/web/dto/response/stinfo/store/StorePopSearchResponse.java

@@ -31,4 +31,7 @@ public class StorePopSearchResponse {
31 31
 
32 32
     @ApiModelProperty(value = "상태명")
33 33
     private String storeStNm;
34
+
35
+    @ApiModelProperty(value = "정산타입")
36
+    private String loanDvsn;
34 37
 }

+ 9 - 7
src/main/resources/mybatis/sqlmaps/stinfo/Store.xml

@@ -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">