Merge branch 'dev_qinhongzhanWMS' into wms_dev
This commit is contained in:
+3
-3
@@ -43,9 +43,9 @@ public class WarehouseApplicationService {
|
|||||||
public List<WarehousePO> queryList(WarehouseDO warehouseDO) {
|
public List<WarehousePO> queryList(WarehouseDO warehouseDO) {
|
||||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||||
if (loginUser != null){
|
if (loginUser != null){
|
||||||
Long topOrganizationId = loginUser.getUserPo().getTopOrganizationId();
|
Long organizationId = loginUser.getUserPo().getOrganizationId();
|
||||||
if (topOrganizationId != null && topOrganizationId != 1){
|
if (organizationId != null && organizationId != 1){
|
||||||
warehouseDO.setTopOrganizationId(loginUser.getUserPo().getTopOrganizationId());
|
warehouseDO.setOrganizationId(loginUser.getUserPo().getOrganizationId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return warehouseDomainService.queryList(warehouseDO);
|
return warehouseDomainService.queryList(warehouseDO);
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
and top_organization_id = #{topOrganizationId}
|
and top_organization_id = #{topOrganizationId}
|
||||||
</if>
|
</if>
|
||||||
<if test="warehouseCode != null and warehouseCode != ''">
|
<if test="warehouseCode != null and warehouseCode != ''">
|
||||||
and warehouse_code = #{warehouseCode}
|
and warehouse_code like concat('%', #{warehouseCode}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="warehouseName != null and warehouseName != ''">
|
<if test="warehouseName != null and warehouseName != ''">
|
||||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||||
|
|||||||
Reference in New Issue
Block a user