新建的仓库需要默认绑定当前登录账号
3.仓库绑定用户时只查询非默认用户IS_DEFAULT=1
This commit is contained in:
+8
-1
@@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="correlationId" column="correlation_id" />
|
||||
<result property="isDefault" column="is_default" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
@@ -25,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<sql id="selectAssociationWarehousePo">
|
||||
a.association_warehouse_id, a.organization_id, a.organization_name, a.top_organization_id,
|
||||
a.correlation_id, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.create_time,
|
||||
a.correlation_id, a.is_default, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.create_time,
|
||||
a.create_by, a.create_by_name, a.update_time, a.update_by, a.update_by_name, a.del_flag
|
||||
</sql>
|
||||
|
||||
@@ -42,9 +43,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="correlationId != null ">
|
||||
and a.correlation_id = #{correlationId}
|
||||
</if>
|
||||
<if test="isDefault != null ">
|
||||
and a.is_default = #{isDefault}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="excludeDefaultWarehouse != null and excludeDefaultWarehouse">
|
||||
and (a.is_default is null or a.is_default <> 2)
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user