根据组织ids查询仓库;

This commit is contained in:
王奎兴
2026-06-25 11:04:58 +08:00
parent 3e90a8c5c4
commit f704038362
3 changed files with 10 additions and 0 deletions
@@ -127,4 +127,6 @@ public class WarehouseDO extends BaseVOEntity{
private Integer isEnable;
@ApiModelProperty("仓库id 集合")
private List<Long> warehouseIds;
@ApiModelProperty("组织id 集合")
private List<Long> orgIds;
}
@@ -132,4 +132,6 @@ public class WarehouseDTO extends BaseVOEntity{
@ApiModelProperty("是否启用: 1-否 2-是")
@Excel(name = "是否启用: 1-否 2-是")
private Integer isEnable;
@ApiModelProperty("组织id 集合")
private List<Long> orgIds;
}
@@ -130,6 +130,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item}
</foreach>
</if>
<if test="orgIds != null and orgIds.size > 0 ">
and organization_id in
<foreach collection="orgIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<choose>
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
<otherwise> and del_flag = 1 </otherwise>