于继渤 hace 1 año
padre
commit
4909dae584
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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
         inner join dkic_b.t_mst_warehouse as tmw on tmw.wh_id = tpi.wh_id
         where tpi.flg_valid
-        AND tpi.cp_id = #{cpId}
+        AND tpi.cp_id = #{cpId} AND
         <foreach collection="skuIdNonStdCodeWhIdList" item="condition" separator=" OR ">
             <if test="condition.skuId != null">
-                AND tpi.sku_id = #{condition.skuId} ::uuid
+                 tpi.sku_id = #{condition.skuId} ::uuid
             </if>
             <if test="condition.nonStdCode != null">
                 AND tpi.non_std_code = #{condition.nonStdCode}