Kaynağa Gözat

쿼리수정

isna 2 yıl önce
ebeveyn
işleme
b380541a60

+ 3 - 1
src/main/resources/mybatis/sqlmaps/inoutmng/ShmtOdr.xml

@@ -810,7 +810,6 @@
810 810
         <if test="sItemNm != null and sItemNm != ''">
811 811
            and (whs.item_id like concat('%', #{sItemNm}, '%') or whs.item_nm like concat('%', #{sItemNm}, '%'))
812 812
         </if>
813
-
814 813
         <choose>
815 814
             <when test="gridRequest.sidx != null and gridRequest.sidx != ''">
816 815
                 <if test="gridRequest.sidx == 'VIEW_NUM'.toString()">
@@ -821,6 +820,9 @@
821 820
                         order by pch_req_unq_no desc
822 821
                     </if>
823 822
                 </if>
823
+                <if test="gridRequest.sidx != 'VIEW_NUM'.toString()">
824
+                    order by pch_req_unq_no desc
825
+                </if>
824 826
             </when>
825 827
             <otherwise>
826 828
                 order by pch_req_unq_no desc