Browse Source

쿼리수정

dwkim 2 years ago
parent
commit
61c5c029a6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/resources/mybatis/sqlmaps/inoutmng/ColOdr.xml

+ 2 - 2
src/main/resources/mybatis/sqlmaps/inoutmng/ColOdr.xml

@@ -694,7 +694,7 @@
694
             and   mgnt.spply_id = #{sSpplyId}
694
             and   mgnt.spply_id = #{sSpplyId}
695
         </if>
695
         </if>
696
         <if test="sWhsId != null and sWhsId != ''">
696
         <if test="sWhsId != null and sWhsId != ''">
697
-            and   dtl.whs_id = #{sWhsId}
697
+            and   mgnt.whs_id = #{sWhsId}
698
         </if>
698
         </if>
699
         <if test="sItemNm != null and sItemNm != ''">
699
         <if test="sItemNm != null and sItemNm != ''">
700
             and   (mgnt.col_pick_unq_no like concat('%',#{sItemNm},'%') or dtl.item_id like concat('%',#{sItemNm},'%') or dtl.item_nm  like concat('%',#{sItemNm},'%') )
700
             and   (mgnt.col_pick_unq_no like concat('%',#{sItemNm},'%') or dtl.item_id like concat('%',#{sItemNm},'%') or dtl.item_nm  like concat('%',#{sItemNm},'%') )
@@ -741,7 +741,7 @@
741
             and   mgnt.spply_id = #{sSpplyId}
741
             and   mgnt.spply_id = #{sSpplyId}
742
         </if>
742
         </if>
743
         <if test="sWhsId != null and sWhsId != ''">
743
         <if test="sWhsId != null and sWhsId != ''">
744
-            and   dtl.whs_id = #{sWhsId}
744
+            and   mgnt.whs_id = #{sWhsId}
745
         </if>
745
         </if>
746
         <if test="sItemNm != null and sItemNm != ''">
746
         <if test="sItemNm != null and sItemNm != ''">
747
             and   (mgnt.col_pick_unq_no like concat('%',#{sItemNm},'%') or dtl.item_id like concat('%',#{sItemNm},'%') or dtl.item_nm  like concat('%',#{sItemNm},'%') )
747
             and   (mgnt.col_pick_unq_no like concat('%',#{sItemNm},'%') or dtl.item_id like concat('%',#{sItemNm},'%') or dtl.item_nm  like concat('%',#{sItemNm},'%') )