|
|
@@ -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}
|