Explorar o código

Merge branch 'master' of http://106.246.249.162:13000/orderqueen/oqpo-api

dwkim %!s(int64=2) %!d(string=hai) anos
pai
achega
6ad6163527
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/main/resources/mybatis/sqlmaps/inoutmng/ShmtOdr.xml

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

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