浏览代码

selectStockHistGridList 쿼리 정렬변경

isna 2 年之前
父节点
当前提交
1a872c338d
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/main/resources/mybatis/sqlmaps/stockmng/StockMng.xml

+ 4 - 4
src/main/resources/mybatis/sqlmaps/stockmng/StockMng.xml

@@ -278,18 +278,18 @@
278 278
             <when test="gridRequest.sidx != null and gridRequest.sidx != ''">
279 279
                 <if test="gridRequest.sidx == 'VIEW_NUM'.toString()">
280 280
                     <if test="gridRequest.sord == 'asc'.toString()">
281
-                        ORDER BY histock.stck_mgnt_dtl_no ASC
281
+                        ORDER BY histock.sys_reg_dttm ASC
282 282
                     </if>
283 283
                     <if test="gridRequest.sord == 'desc'.toString()">
284
-                        ORDER BY histock.stck_mgnt_dtl_no DESC
284
+                        ORDER BY histock.sys_reg_dttm DESC
285 285
                     </if>
286 286
                 </if>
287 287
                  <if test="gridRequest.sidx != 'VIEW_NUM'.toString()">
288
-                    ORDER BY A.sys_reg_dttm DESC
288
+                    OORDER BY histock.sys_reg_dttm DESC
289 289
                 </if>
290 290
             </when>
291 291
             <otherwise>
292
-                ORDER BY histock.stck_mgnt_dtl_no ASC
292
+                ORDER BY histock.sys_reg_dttm ASC
293 293
             </otherwise>
294 294
         </choose>
295 295
         <if test="gridRequest.pagingYn == true">