姜永辉 1 год назад
Родитель
Сommit
626926d3fd

+ 4 - 0
src/main/java/com/dk/mdm/mapper/ivt/InventoryMapper.xml

@@ -71,6 +71,10 @@
             <if test="whId != null and whId != ''">
                 AND tpi.wh_id = #{whId}::UUID
             </if>
+            <if test="whIds != null and whIds.size()>0">
+                AND tpi.wh_id =
+                any(#{whIds, typeHandler=UuidListTypeHandler})
+            </if>
             <if test="skuId != null and skuId != ''">
                 AND tpi.sku_id = #{skuId}
             </if>

+ 8 - 0
src/main/java/com/dk/mdm/model/query/ivt/InventoryQuery.java

@@ -18,6 +18,7 @@ import lombok.experimental.Accessors;
 import java.io.Serializable;
 import java.math.BigDecimal;
 import java.time.LocalDateTime;
+import java.util.List;
 
 /**
  *  库存明细
@@ -36,6 +37,13 @@ public class InventoryQuery extends PageInfo<InventoryQuery>{
     @ApiModelProperty(value = "库存ID")
     @TableField(typeHandler = UuidTypeHandler.class)
     private String invId;
+
+    /**
+     * @desc   : 库存IDlist
+     * @date   : 2024/3/2 9:27
+     */
+    @ApiModelProperty(value = "库存ID")
+    private List<String> whIds;
     /**
      * 商品种类
      */