bug更改

This commit is contained in:
秦鸿展
2026-04-22 15:21:36 +08:00
parent 1cb6b79a52
commit 882aa8740e
4 changed files with 23 additions and 42 deletions
@@ -49,9 +49,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="warehouseId != null ">
and a.warehouse_id = #{warehouseId}
</if>
<!-- 查询含 is_default=2 的默认仓关联行;is_default=2 仅在删除/保存绑定时在 Service 中过滤,不再在 SQL 中排除 -->
<!--
<if test="excludeDefaultWarehouse != null and excludeDefaultWarehouse">
and (a.is_default is null or a.is_default &lt;&gt; 2)
</if>
-->
<if test="warehouseCode != null and warehouseCode != ''">
and a.warehouse_code = #{warehouseCode}
</if>