于继渤 il y a 1 an
Parent
commit
4909dae584
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/main/java/com/dk/mdm/mapper/common/CommonMapper.xml

+ 2 - 2
src/main/java/com/dk/mdm/mapper/common/CommonMapper.xml

@@ -1693,10 +1693,10 @@
         from dkic_b.t_psi_inventory as tpi
         from dkic_b.t_psi_inventory as tpi
         inner join dkic_b.t_mst_warehouse as tmw on tmw.wh_id = tpi.wh_id
         inner join dkic_b.t_mst_warehouse as tmw on tmw.wh_id = tpi.wh_id
         where tpi.flg_valid
         where tpi.flg_valid
-        AND tpi.cp_id = #{cpId}
+        AND tpi.cp_id = #{cpId} AND
         <foreach collection="skuIdNonStdCodeWhIdList" item="condition" separator=" OR ">
         <foreach collection="skuIdNonStdCodeWhIdList" item="condition" separator=" OR ">
             <if test="condition.skuId != null">
             <if test="condition.skuId != null">
-                AND tpi.sku_id = #{condition.skuId} ::uuid
+                 tpi.sku_id = #{condition.skuId} ::uuid
             </if>
             </if>
             <if test="condition.nonStdCode != null">
             <if test="condition.nonStdCode != null">
                 AND tpi.non_std_code = #{condition.nonStdCode}
                 AND tpi.non_std_code = #{condition.nonStdCode}