浏览代码

정렬수정

dwkim 2 年之前
父节点
当前提交
b157e9b356

+ 24 - 0
src/main/resources/mybatis/sqlmaps/loanmng/UnpaidMng.xml

@@ -69,6 +69,30 @@
69 69
                         ORDER BY stl.sttl_req_dt DESC
70 70
                     </if>
71 71
                 </if>
72
+                <if test="gridRequest.sidx == 'loanDvsnNm'.toString()">
73
+                    <if test="gridRequest.sord == 'asc'.toString()">
74
+                        ORDER BY loan_dvsn_nm asc
75
+                    </if>
76
+                    <if test="gridRequest.sord == 'desc'.toString()">
77
+                        ORDER BY loan_dvsn_nm desc
78
+                    </if>
79
+                </if>
80
+                <if test="gridRequest.sidx == 'sttlMgntUnqNo'.toString()">
81
+                    <if test="gridRequest.sord == 'asc'.toString()">
82
+                        ORDER BY stl.sttl_mgnt_unq_no asc
83
+                    </if>
84
+                    <if test="gridRequest.sord == 'desc'.toString()">
85
+                        ORDER BY stl.sttl_mgnt_unq_no desc
86
+                    </if>
87
+                </if>
88
+                <if test="gridRequest.sidx == 'storeNm'.toString()">
89
+                    <if test="gridRequest.sord == 'asc'.toString()">
90
+                        ORDER BY store.store_nm asc
91
+                    </if>
92
+                    <if test="gridRequest.sord == 'desc'.toString()">
93
+                        ORDER BY store.store_nm desc
94
+                    </if>
95
+                </if>
72 96
             </when>
73 97
             <otherwise>
74 98
                 ORDER BY store.store_nm ASC, loan_dvsn_nm asc, stl.sttl_mgnt_unq_no asc

+ 16 - 0
src/main/resources/mybatis/sqlmaps/sttlmng/SttlReq.xml

@@ -107,6 +107,22 @@
107 107
                         ORDER BY stl.sttl_st_nm DESC
108 108
                     </if>
109 109
                 </if>
110
+                <if test="gridRequest.sidx == 'storeNm'.toString()">
111
+                    <if test="gridRequest.sord == 'asc'.toString()">
112
+                        ORDER BY stl.store_nm ASC
113
+                    </if>
114
+                    <if test="gridRequest.sord == 'desc'.toString()">
115
+                        ORDER BY stl.store_nm DESC
116
+                    </if>
117
+                </if>
118
+                <if test="gridRequest.sidx == 'itemNm'.toString()">
119
+                    <if test="gridRequest.sord == 'asc'.toString()">
120
+                        ORDER BY stl.item_nm ASC
121
+                    </if>
122
+                    <if test="gridRequest.sord == 'desc'.toString()">
123
+                        ORDER BY stl.item_nm DESC
124
+                    </if>
125
+                </if>
110 126
             </when>
111 127
             <otherwise>
112 128
                 ORDER BY stl.store_nm asc , stl.item_nm asc

+ 24 - 0
src/main/resources/mybatis/sqlmaps/sttlmng/SttlState.xml

@@ -58,6 +58,30 @@
58 58
                         ORDER BY A.sttl_dt DESC
59 59
                     </if>
60 60
                 </if>
61
+                <if test="gridRequest.sidx == 'sttlMgntUnqNo'.toString()">
62
+                    <if test="gridRequest.sord == 'asc'.toString()">
63
+                        ORDER BY A.sttl_mgnt_unq_no ASC
64
+                    </if>
65
+                    <if test="gridRequest.sord == 'desc'.toString()">
66
+                        ORDER BY A.sttl_mgnt_unq_no DESC
67
+                    </if>
68
+                </if>
69
+                <if test="gridRequest.sidx == 'storeNm'.toString()">
70
+                    <if test="gridRequest.sord == 'asc'.toString()">
71
+                        ORDER BY store_nm ASC
72
+                    </if>
73
+                    <if test="gridRequest.sord == 'desc'.toString()">
74
+                        ORDER BY store_nm DESC
75
+                    </if>
76
+                </if>
77
+                <if test="gridRequest.sidx == 'spplyNm'.toString()">
78
+                    <if test="gridRequest.sord == 'asc'.toString()">
79
+                        ORDER BY spply_nm ASC
80
+                    </if>
81
+                    <if test="gridRequest.sord == 'desc'.toString()">
82
+                        ORDER BY spply_nm DESC
83
+                    </if>
84
+                </if>
61 85
             </when>
62 86
             <otherwise>
63 87
                 ORDER BY A.sttl_mgnt_unq_no DESC, store_nm asc, spply_nm asc