5 天以前 9e097fb25f494424ad79800c78b635fc94175f37
feat(stock): 添加库存查询按型号过滤功能

- 在StockInventoryMapper.xml中添加型号过滤条件
- 支持通过ew.model参数进行型号模糊匹配查询
- 保持与其他过滤条件的兼容性
已修改1个文件
3 ■■■■■ 文件已修改
src/main/resources/mapper/stock/StockInventoryMapper.xml 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -165,6 +165,9 @@
                where p.product_name like concat('%',#{ew.productName},'%') or pm.model like concat('%',#{ew.productName},'%')
                )
            </if>
            <if test="ew.model != null and ew.model !=''">
                and combined.model like concat('%',#{ew.model},'%')
            </if>
            <if test="ew.topParentProductId != null and ew.topParentProductId > 0">
                and combined.product_id in (select id from product_tree)
            </if>