Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
709b3987
Commit
709b3987
authored
Dec 09, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海空运出货列表查询bug修复
parent
a0e9e33b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
WarehouseService.java
...module/depository/service/warehouse/WarehouseService.java
+2
-0
WarehouseServiceImpl.java
...pository/service/warehouse/impl/WarehouseServiceImpl.java
+8
-0
BoxServiceImpl.java
...der/yudao/module/shipment/service/box/BoxServiceImpl.java
+12
-4
No files found.
yudao-module-depository/yudao-module-depository-core/src/main/java/cn/iocoder/yudao/module/depository/service/warehouse/WarehouseService.java
View file @
709b3987
...
...
@@ -153,6 +153,8 @@ public interface WarehouseService {
*/
List
<
WarehouseDO
>
findByCountryIdList
(
List
<
Long
>
countryIdList
);
List
<
WarehouseDO
>
findByCountryIdListAndCityIdList
(
List
<
Long
>
countryIdList
,
List
<
Long
>
cityIdList
);
List
<
WarehouseDO
>
getByIdList
(
List
<
Long
>
idList
);
List
<
WarehouseDO
>
getAvailableWarehouseAdjustmentList
(
Long
id
);
...
...
yudao-module-depository/yudao-module-depository-core/src/main/java/cn/iocoder/yudao/module/depository/service/warehouse/impl/WarehouseServiceImpl.java
View file @
709b3987
...
...
@@ -444,6 +444,14 @@ public class WarehouseServiceImpl implements WarehouseService {
);
}
@Override
public
List
<
WarehouseDO
>
findByCountryIdListAndCityIdList
(
List
<
Long
>
countryIdList
,
List
<
Long
>
cityIdList
)
{
return
warehouseMapper
.
selectList
(
new
LambdaQueryWrapperX
<
WarehouseDO
>()
.
in
(
StringUtils
.
isNotEmpty
(
countryIdList
),
WarehouseDO:
:
getGuojia
,
countryIdList
)
.
in
(
StringUtils
.
isNotEmpty
(
cityIdList
),
WarehouseDO:
:
getShi
,
cityIdList
)
);
}
@Override
public
List
<
WarehouseDO
>
getAvailableWarehouseAdjustmentList
(
Long
id
)
{
WarehouseDO
currentWarehouseDO
=
warehouseMapper
.
selectById
(
id
);
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/box/BoxServiceImpl.java
View file @
709b3987
...
...
@@ -1577,11 +1577,19 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
warehouseIdList
=
warehouseList
.
stream
().
map
(
WarehouseDO:
:
getId
).
collect
(
Collectors
.
toList
());
query
.
setWarehouseIdList
(
warehouseIdList
);
}
if
(
CollectionUtil
.
isNotEmpty
(
query
.
getCountryIdList
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
query
.
getCountryIdList
())
||
CollectionUtil
.
isNotEmpty
(
query
.
getDestCityIdList
()))
{
List
<
WarehouseDO
>
warehouseList
=
warehouseService
.
findByCountryIdList
(
query
.
getCountryIdList
());
warehouseIdList
=
warehouseList
.
stream
().
map
(
WarehouseDO:
:
getId
).
collect
(
Collectors
.
toList
());
query
.
setWarehouseIdList
(
warehouseIdList
);
warehouseService
.
findByCountryIdListAndCityIdList
(
query
.
getCountryIdList
(),
query
.
getDestCityIdList
());
if
(
CollectionUtil
.
isNotEmpty
(
warehouseList
)){
warehouseIdList
=
warehouseList
.
stream
().
map
(
WarehouseDO:
:
getId
).
collect
(
Collectors
.
toList
());
Set
<
Long
>
destWarehouseIdSet
=
new
HashSet
<>();
if
(
CollectionUtil
.
isNotEmpty
(
query
.
getDestWarehouseIdList
()))
{
destWarehouseIdSet
.
addAll
(
query
.
getDestWarehouseIdList
());
}
destWarehouseIdSet
.
addAll
(
warehouseIdList
);
query
.
setDestWarehouseIdList
(
new
ArrayList
<>(
destWarehouseIdSet
));
}
}
//上面都是处理查询条件相关逻辑
return
boxInfoQuery1
(
boxMapper
.
selectPage2
(
page
,
query
),
false
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment