根据组织ids查询仓库;
This commit is contained in:
+2
@@ -127,4 +127,6 @@ public class WarehouseDO extends BaseVOEntity{
|
|||||||
private Integer isEnable;
|
private Integer isEnable;
|
||||||
@ApiModelProperty("仓库id 集合")
|
@ApiModelProperty("仓库id 集合")
|
||||||
private List<Long> warehouseIds;
|
private List<Long> warehouseIds;
|
||||||
|
@ApiModelProperty("组织id 集合")
|
||||||
|
private List<Long> orgIds;
|
||||||
}
|
}
|
||||||
+2
@@ -132,4 +132,6 @@ public class WarehouseDTO extends BaseVOEntity{
|
|||||||
@ApiModelProperty("是否启用: 1-否 2-是")
|
@ApiModelProperty("是否启用: 1-否 2-是")
|
||||||
@Excel(name = "是否启用: 1-否 2-是")
|
@Excel(name = "是否启用: 1-否 2-是")
|
||||||
private Integer isEnable;
|
private Integer isEnable;
|
||||||
|
@ApiModelProperty("组织id 集合")
|
||||||
|
private List<Long> orgIds;
|
||||||
}
|
}
|
||||||
@@ -130,6 +130,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</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>
|
<choose>
|
||||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||||
<otherwise> and del_flag = 1 </otherwise>
|
<otherwise> and del_flag = 1 </otherwise>
|
||||||
|
|||||||
Reference in New Issue
Block a user